MediaWiki
1.28.0
|
Represents a revision, log entry or upload during the import process. More...
Public Member Functions | |
__construct (Config $config) | |
downloadSource () | |
getAction () | |
getArchiveName () | |
getComment () | |
getContent () | |
getContentHandler () | |
getFilename () | |
getFileSrc () | |
getFormat () | |
getID () | |
getMinor () | |
getModel () | |
getParams () | |
getSha1 () | |
getSize () | |
getSrc () | |
getText () | |
getTimestamp () | |
getTitle () | |
getType () | |
getUser () | |
getUserObj () | |
importLogItem () | |
importOldRevision () | |
importUpload () | |
isTempSrc () | |
setAction ($action) | |
setArchiveName ($archiveName) | |
setComment ($text) | |
setFilename ($filename) | |
setFileSrc ($src, $isTemp) | |
setFormat ($format) | |
setID ($id) | |
setMinor ($minor) | |
setModel ($model) | |
setNoUpdates ($noupdates) | |
setParams ($params) | |
setSha1Base36 ($sha1base36) | |
setSize ($size) | |
setSrc ($src) | |
setText ($text) | |
setTimestamp ($ts) | |
setTitle ($title) | |
setType ($type) | |
setUserIP ($ip) | |
setUsername ($user) | |
setUserObj ($user) | |
Public Attributes | |
string | $action = "" |
string | $archiveName = '' |
string | $comment = "" |
Content | $content = null |
$fileIsTemp | |
string | $fileSrc = '' |
string | $format = null |
int | $id = 0 |
$importer = null | |
bool | $isTemp = false |
bool | $minor = false |
string | $model = null |
string | $params = "" |
bool string | $sha1base36 = false |
string | $text = "" |
string | $timestamp = "20010115000000" |
Title | $title = null |
string | $type = "" |
int | $user = 0 |
string | $user_text = "" |
User | $userObj = null |
Protected Attributes | |
ContentHandler | $contentHandler = null |
$filename | |
int | $size |
mixed | $src |
Private Attributes | |
$config | |
bool | $mNoUpdates = false |
Represents a revision, log entry or upload during the import process.
This class sticks closely to the structure of the XML dump.
Definition at line 33 of file WikiRevision.php.
WikiRevision::__construct | ( | Config | $config | ) |
Definition at line 119 of file WikiRevision.php.
References $config.
WikiRevision::downloadSource | ( | ) |
Definition at line 691 of file WikiRevision.php.
References Http\get(), getSrc(), wfDebug(), and wfTempDir().
Referenced by importUpload().
WikiRevision::getAction | ( | ) |
Definition at line 448 of file WikiRevision.php.
References $action.
Referenced by importLogItem().
WikiRevision::getArchiveName | ( | ) |
Definition at line 427 of file WikiRevision.php.
References $archiveName.
Referenced by importUpload().
WikiRevision::getComment | ( | ) |
Definition at line 375 of file WikiRevision.php.
References $comment.
Referenced by importLogItem(), importOldRevision(), and importUpload().
WikiRevision::getContent | ( | ) |
Definition at line 341 of file WikiRevision.php.
References $content, $handler, content, getContentHandler(), getFormat(), and text.
Referenced by importOldRevision().
WikiRevision::getContentHandler | ( | ) |
Definition at line 330 of file WikiRevision.php.
References $contentHandler, ContentHandler\getForModelID(), and getModel().
Referenced by getContent(), and getFormat().
WikiRevision::getFilename | ( | ) |
WikiRevision::getFileSrc | ( | ) |
Definition at line 406 of file WikiRevision.php.
References $fileSrc.
Referenced by importUpload().
WikiRevision::getFormat | ( | ) |
Definition at line 364 of file WikiRevision.php.
References $format, format, and getContentHandler().
Referenced by getContent(), and importOldRevision().
WikiRevision::getID | ( | ) |
WikiRevision::getMinor | ( | ) |
WikiRevision::getModel | ( | ) |
Definition at line 353 of file WikiRevision.php.
References $model, and getTitle().
Referenced by getContentHandler(), and importOldRevision().
WikiRevision::getParams | ( | ) |
WikiRevision::getSha1 | ( | ) |
WikiRevision::getSize | ( | ) |
WikiRevision::getSrc | ( | ) |
Definition at line 389 of file WikiRevision.php.
References $src.
Referenced by downloadSource().
WikiRevision::getText | ( | ) |
Definition at line 321 of file WikiRevision.php.
References $text, and wfDeprecated().
WikiRevision::getTimestamp | ( | ) |
Definition at line 298 of file WikiRevision.php.
References $timestamp.
Referenced by importUpload().
WikiRevision::getTitle | ( | ) |
Definition at line 284 of file WikiRevision.php.
References $title.
Referenced by getModel(), importLogItem(), and importUpload().
WikiRevision::getType | ( | ) |
Definition at line 441 of file WikiRevision.php.
References $type.
Referenced by importLogItem().
WikiRevision::getUser | ( | ) |
Definition at line 305 of file WikiRevision.php.
References $user_text.
Referenced by importLogItem(), importOldRevision(), and importUpload().
WikiRevision::getUserObj | ( | ) |
Definition at line 312 of file WikiRevision.php.
References $userObj.
Referenced by importLogItem(), importOldRevision(), and importUpload().
WikiRevision::importLogItem | ( | ) |
Definition at line 561 of file WikiRevision.php.
References $action, $params, $type, DB_MASTER, getAction(), getComment(), getTitle(), getType(), getUser(), getUserObj(), User\newFromName(), wfDebug(), and wfGetDB().
WikiRevision::importOldRevision | ( | ) |
Definition at line 462 of file WikiRevision.php.
References $page, Title\clearCaches(), DB_MASTER, WikiPage\factory(), getComment(), getContent(), getFormat(), getModel(), getUser(), getUserObj(), User\newFromName(), serialize(), title, User, wfDebug(), and wfGetDB().
WikiRevision::importUpload | ( | ) |
Definition at line 620 of file WikiRevision.php.
References $flags, $source, $status, downloadSource(), getArchiveName(), getComment(), getFileSrc(), getSha1(), getTimestamp(), getTitle(), getUser(), getUserObj(), isTempSrc(), OldLocalFile\newFromArchiveName(), User\newFromName(), RepoGroup\singleton(), wfDebug(), and wfLocalFile().
WikiRevision::isTempSrc | ( | ) |
Definition at line 413 of file WikiRevision.php.
References $isTemp.
Referenced by importUpload().
WikiRevision::setAction | ( | $action | ) |
WikiRevision::setArchiveName | ( | $archiveName | ) |
string | $archiveName |
Definition at line 242 of file WikiRevision.php.
References $archiveName.
WikiRevision::setComment | ( | $text | ) |
string | $text |
Definition at line 198 of file WikiRevision.php.
WikiRevision::setFilename | ( | $filename | ) |
WikiRevision::setFileSrc | ( | $src, | |
$isTemp | |||
) |
string | $src | |
bool | $isTemp |
Definition at line 220 of file WikiRevision.php.
WikiRevision::setFormat | ( | $format | ) |
string | $format |
Definition at line 184 of file WikiRevision.php.
WikiRevision::setID | ( | $id | ) |
WikiRevision::setMinor | ( | $minor | ) |
bool | $minor |
Definition at line 205 of file WikiRevision.php.
WikiRevision::setModel | ( | $model | ) |
WikiRevision::setNoUpdates | ( | $noupdates | ) |
bool | $noupdates |
Definition at line 277 of file WikiRevision.php.
WikiRevision::setParams | ( | $params | ) |
WikiRevision::setSha1Base36 | ( | $sha1base36 | ) |
string | $sha1base36 |
Definition at line 228 of file WikiRevision.php.
References $sha1base36.
WikiRevision::setSize | ( | $size | ) |
int | $size |
Definition at line 249 of file WikiRevision.php.
WikiRevision::setSrc | ( | $src | ) |
WikiRevision::setText | ( | $text | ) |
WikiRevision::setTimestamp | ( | $ts | ) |
string | $ts |
Definition at line 148 of file WikiRevision.php.
References TS_MW, and wfTimestamp().
WikiRevision::setTitle | ( | $title | ) |
WikiRevision::setType | ( | $type | ) |
WikiRevision::setUserIP | ( | $ip | ) |
string | $ip |
Definition at line 170 of file WikiRevision.php.
WikiRevision::setUsername | ( | $user | ) |
WikiRevision::setUserObj | ( | $user | ) |
string WikiRevision::$action = "" |
Definition at line 85 of file WikiRevision.php.
Referenced by getAction(), importLogItem(), and setAction().
string WikiRevision::$archiveName = '' |
Definition at line 103 of file WikiRevision.php.
Referenced by getArchiveName(), and setArchiveName().
string WikiRevision::$comment = "" |
Definition at line 76 of file WikiRevision.php.
Referenced by getComment().
|
private |
Definition at line 117 of file WikiRevision.php.
Referenced by __construct().
Content WikiRevision::$content = null |
Definition at line 70 of file WikiRevision.php.
Referenced by getContent().
|
protected |
Definition at line 73 of file WikiRevision.php.
Referenced by getContentHandler().
WikiRevision::$fileIsTemp |
Definition at line 111 of file WikiRevision.php.
|
protected |
Definition at line 105 of file WikiRevision.php.
Referenced by getFilename(), and setFilename().
string WikiRevision::$fileSrc = '' |
Definition at line 91 of file WikiRevision.php.
Referenced by getFileSrc().
string WikiRevision::$format = null |
Definition at line 61 of file WikiRevision.php.
Referenced by getFormat(), and setFormat().
int WikiRevision::$id = 0 |
Definition at line 41 of file WikiRevision.php.
WikiRevision::$importer = null |
Definition at line 35 of file WikiRevision.php.
bool WikiRevision::$isTemp = false |
Definition at line 100 of file WikiRevision.php.
Referenced by isTempSrc(), and setFileSrc().
bool WikiRevision::$minor = false |
Definition at line 79 of file WikiRevision.php.
Referenced by getMinor().
|
private |
Definition at line 114 of file WikiRevision.php.
string WikiRevision::$model = null |
Definition at line 58 of file WikiRevision.php.
Referenced by getModel(), and setModel().
string WikiRevision::$params = "" |
Definition at line 88 of file WikiRevision.php.
Referenced by getParams(), importLogItem(), and setParams().
Definition at line 94 of file WikiRevision.php.
Referenced by setSha1Base36().
|
protected |
Definition at line 67 of file WikiRevision.php.
Referenced by getSize().
|
protected |
Definition at line 108 of file WikiRevision.php.
Referenced by getSrc(), setFileSrc(), and setSrc().
string WikiRevision::$text = "" |
Definition at line 64 of file WikiRevision.php.
Referenced by getText(), setComment(), and setText().
string WikiRevision::$timestamp = "20010115000000" |
Definition at line 44 of file WikiRevision.php.
Referenced by getTimestamp().
Title WikiRevision::$title = null |
Definition at line 38 of file WikiRevision.php.
Referenced by getTitle(), and setTitle().
string WikiRevision::$type = "" |
Definition at line 82 of file WikiRevision.php.
Referenced by getType(), importLogItem(), and setType().
int WikiRevision::$user = 0 |
Definition at line 49 of file WikiRevision.php.
Referenced by setUsername(), and setUserObj().
string WikiRevision::$user_text = "" |
Definition at line 52 of file WikiRevision.php.
Referenced by getUser().
User WikiRevision::$userObj = null |
Definition at line 55 of file WikiRevision.php.
Referenced by getUserObj().