MediaWiki REL1_40
|
Represents a revision, log entry or upload during the import process. More...
Inherits ImportableUploadRevision, and ImportableOldRevision.
Public Member Functions | |
__construct () | |
getAction () | |
getArchiveName () | |
getComment () | |
getContent ( $role=SlotRecord::MAIN) | |
getContentHandler () | |
getFilename () | |
getFileSrc () | |
getFormat () | |
getID () | |
getMinor () | |
getModel () | |
getParams () | |
getSha1 () | |
getSha1Base36 () | |
getSize () | |
getSlot ( $role) | |
getSlotRoles () | |
getSrc () | |
getTags () | |
getText () | |
getTimestamp () | |
getTitle () | |
getType () | |
getUser () | |
getUserObj () | |
importLogItem () | |
importOldRevision () | |
isTempSrc () | |
setAction ( $action) | |
setArchiveName ( $archiveName) | |
setComment (string $text) | |
setContent ( $role, $content) | |
setFilename ( $filename) | |
setFileSrc ( $src, $isTemp) | |
setFormat ( $format) | |
setID ( $id) | |
setMinor ( $minor) | |
setModel ( $model) | |
setNoUpdates ( $noupdates) | |
setParams ( $params) | |
setSha1Base36 ( $sha1base36) | |
setSize ( $size) | |
setSrc ( $src) | |
setTags (array $tags) | |
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 |
string | $fileSrc = '' |
string | $format = null |
int | $id = 0 |
bool | $isTemp = false |
bool | $minor = false |
string | $model = null |
string | $params = "" |
string | $text = "" |
string | $timestamp = "20010115000000" |
Title | $title = null |
string | $type = "" |
string | $user_text = "" |
User null | $userObj = null |
Protected Attributes | |
ContentHandler | $contentHandler = null |
string null | $filename |
int | $size |
string null | $src = null |
string[] | $tags = [] |
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 40 of file WikiRevision.php.
WikiRevision::__construct | ( | ) |
Definition at line 193 of file WikiRevision.php.
WikiRevision::getAction | ( | ) |
WikiRevision::getArchiveName | ( | ) |
Implements ImportableUploadRevision.
Definition at line 602 of file WikiRevision.php.
WikiRevision::getComment | ( | ) |
Implements ImportableUploadRevision.
Definition at line 527 of file WikiRevision.php.
WikiRevision::getContent | ( | $role = SlotRecord::MAIN | ) |
string | $role | added in 1.35 |
Implements ImportableOldRevision.
Definition at line 480 of file WikiRevision.php.
Referenced by DumpRenderer\handleRevision(), CompareParsers\processRevision(), and SearchDump\processRevision().
WikiRevision::getContentHandler | ( | ) |
MWUnknownContentModelException |
Definition at line 467 of file WikiRevision.php.
References $contentHandler, and getModel().
Referenced by getFormat().
WikiRevision::getFilename | ( | ) |
Definition at line 594 of file WikiRevision.php.
Referenced by BackupReader\handleUpload().
WikiRevision::getFileSrc | ( | ) |
Implements ImportableUploadRevision.
Definition at line 578 of file WikiRevision.php.
WikiRevision::getFormat | ( | ) |
Implements ImportableOldRevision.
Definition at line 517 of file WikiRevision.php.
References $format, and getContentHandler().
WikiRevision::getID | ( | ) |
WikiRevision::getMinor | ( | ) |
Implements ImportableOldRevision.
Definition at line 535 of file WikiRevision.php.
WikiRevision::getModel | ( | ) |
Implements ImportableOldRevision.
Definition at line 506 of file WikiRevision.php.
References $model, and getTitle().
Referenced by getContentHandler(), and setText().
WikiRevision::getParams | ( | ) |
WikiRevision::getSha1 | ( | ) |
Implements ImportableUploadRevision.
Definition at line 551 of file WikiRevision.php.
WikiRevision::getSha1Base36 | ( | ) |
Implements ImportableOldRevision.
Definition at line 562 of file WikiRevision.php.
WikiRevision::getSize | ( | ) |
WikiRevision::getSlot | ( | $role | ) |
string | $role |
Implements ImportableOldRevision.
Definition at line 489 of file WikiRevision.php.
WikiRevision::getSlotRoles | ( | ) |
Implements ImportableOldRevision.
Definition at line 497 of file WikiRevision.php.
WikiRevision::getSrc | ( | ) |
Implements ImportableUploadRevision.
Definition at line 543 of file WikiRevision.php.
WikiRevision::getTags | ( | ) |
Implements ImportableOldRevision.
Definition at line 570 of file WikiRevision.php.
WikiRevision::getText | ( | ) |
WikiRevision::getTimestamp | ( | ) |
Implements ImportableUploadRevision.
Definition at line 432 of file WikiRevision.php.
References $timestamp.
Referenced by SearchDump\processRevision().
WikiRevision::getTitle | ( | ) |
Implements ImportableUploadRevision.
Definition at line 416 of file WikiRevision.php.
References $title.
Referenced by getModel(), BackupReader\handleLogItem(), BackupReader\handleRevision(), DumpRenderer\handleRevision(), BackupReader\handleUpload(), CompareParsers\processRevision(), and SearchDump\processRevision().
WikiRevision::getType | ( | ) |
WikiRevision::getUser | ( | ) |
Implements ImportableUploadRevision.
Definition at line 440 of file WikiRevision.php.
References $user_text.
WikiRevision::getUserObj | ( | ) |
Implements ImportableUploadRevision.
Definition at line 449 of file WikiRevision.php.
References $userObj.
WikiRevision::importLogItem | ( | ) |
Definition at line 656 of file WikiRevision.php.
References $type, DB_PRIMARY, getTitle(), getUser(), User\newFromName(), wfDebug(), and wfGetDB().
WikiRevision::importOldRevision | ( | ) |
Definition at line 643 of file WikiRevision.php.
WikiRevision::isTempSrc | ( | ) |
Implements ImportableUploadRevision.
Definition at line 586 of file WikiRevision.php.
WikiRevision::setAction | ( | $action | ) |
string | $action |
Definition at line 392 of file WikiRevision.php.
References $action.
WikiRevision::setArchiveName | ( | $archiveName | ) |
string | $archiveName |
Definition at line 368 of file WikiRevision.php.
References $archiveName.
WikiRevision::setComment | ( | string | $text | ) |
string | $text |
Definition at line 310 of file WikiRevision.php.
References $text.
WikiRevision::setContent | ( | $role, | |
$content ) |
string | $role | |
Content | $content |
Definition at line 294 of file WikiRevision.php.
References $content, Content\getDefaultFormat(), Content\getModel(), and Content\serialize().
Referenced by setText().
WikiRevision::setFilename | ( | $filename | ) |
string | $filename |
Definition at line 360 of file WikiRevision.php.
References $filename.
WikiRevision::setFileSrc | ( | $src, | |
$isTemp ) |
WikiRevision::setFormat | ( | $format | ) |
string | $format |
Definition at line 274 of file WikiRevision.php.
References $format.
WikiRevision::setID | ( | $id | ) |
WikiRevision::setMinor | ( | $minor | ) |
bool | $minor |
Definition at line 318 of file WikiRevision.php.
References $minor.
WikiRevision::setModel | ( | $model | ) |
string | $model |
Definition at line 265 of file WikiRevision.php.
References $model.
WikiRevision::setNoUpdates | ( | $noupdates | ) |
WikiRevision::setParams | ( | $params | ) |
string | $params |
Definition at line 400 of file WikiRevision.php.
References $params.
WikiRevision::setSha1Base36 | ( | $sha1base36 | ) |
WikiRevision::setSize | ( | $size | ) |
WikiRevision::setSrc | ( | $src | ) |
string | null | $src |
Definition at line 326 of file WikiRevision.php.
References $src.
WikiRevision::setTags | ( | array | $tags | ) |
string[] | $tags |
Definition at line 352 of file WikiRevision.php.
References $tags.
WikiRevision::setText | ( | $text | ) |
string | $text |
Definition at line 283 of file WikiRevision.php.
References $content, $text, getModel(), and setContent().
WikiRevision::setTimestamp | ( | $ts | ) |
string | $ts |
Definition at line 225 of file WikiRevision.php.
References wfTimestamp().
WikiRevision::setTitle | ( | $title | ) |
Title | $title |
MWException |
Definition at line 202 of file WikiRevision.php.
References $title.
WikiRevision::setType | ( | $type | ) |
string | $type |
Definition at line 384 of file WikiRevision.php.
References $type.
WikiRevision::setUserIP | ( | $ip | ) |
string | $ip |
Definition at line 256 of file WikiRevision.php.
WikiRevision::setUsername | ( | $user | ) |
WikiRevision::setUserObj | ( | $user | ) |
User | $user |
Definition at line 243 of file WikiRevision.php.
string WikiRevision::$action = "" |
string WikiRevision::$archiveName = '' |
string WikiRevision::$comment = "" |
Definition at line 117 of file WikiRevision.php.
Content WikiRevision::$content = null |
Definition at line 105 of file WikiRevision.php.
Referenced by setContent(), and setText().
|
protected |
|
protected |
string WikiRevision::$fileSrc = '' |
Definition at line 152 of file WikiRevision.php.
string WikiRevision::$format = null |
Definition at line 85 of file WikiRevision.php.
Referenced by getFormat(), and setFormat().
int WikiRevision::$id = 0 |
bool WikiRevision::$isTemp = false |
bool WikiRevision::$minor = false |
string WikiRevision::$model = null |
Definition at line 78 of file WikiRevision.php.
Referenced by getModel(), and setModel().
string WikiRevision::$params = "" |
|
protected |
|
protected |
Definition at line 181 of file WikiRevision.php.
Referenced by setFileSrc(), and setSrc().
|
protected |
string WikiRevision::$text = "" |
Definition at line 92 of file WikiRevision.php.
Referenced by getText(), setComment(), and setText().
string WikiRevision::$timestamp = "20010115000000" |
Definition at line 58 of file WikiRevision.php.
Referenced by getTimestamp().
Title WikiRevision::$title = null |
string WikiRevision::$type = "" |
string WikiRevision::$user_text = "" |
User null WikiRevision::$userObj = null |
Definition at line 71 of file WikiRevision.php.
Referenced by getUserObj().