MediaWiki REL1_35
|
Represents a revision, log entry or upload during the import process. More...
Public Member Functions | |
__construct (Config $config) | |
downloadSource () | |
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 () | |
importUpload () | |
isTempSrc () | |
setAction ( $action) | |
setArchiveName ( $archiveName) | |
setComment ( $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 |
$fileIsTemp | |
string | $fileSrc = '' |
string | $format = null |
int | $id = 0 |
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 = "" |
string | $user_text = "" |
User | $userObj = null |
Protected Attributes | |
ContentHandler | $contentHandler = null |
$filename | |
int | $size |
string null | $src = null |
string[] | $tags = [] |
Private Attributes | |
Config | $config |
bool | $mNoUpdates = false |
MutableRevisionSlots | $slots |
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 39 of file WikiRevision.php.
WikiRevision::__construct | ( | Config | $config | ) |
Config | $config | Deprecated since 1.31, along with self::downloadSource(). Just pass an empty HashConfig. |
Definition at line 209 of file WikiRevision.php.
References $config.
WikiRevision::downloadSource | ( | ) |
Definition at line 735 of file WikiRevision.php.
WikiRevision::getAction | ( | ) |
Definition at line 646 of file WikiRevision.php.
References $action.
Referenced by importLogItem().
WikiRevision::getArchiveName | ( | ) |
Implements ImportableUploadRevision.
Definition at line 622 of file WikiRevision.php.
References $archiveName.
WikiRevision::getComment | ( | ) |
Implements ImportableUploadRevision.
Definition at line 544 of file WikiRevision.php.
References $comment.
Referenced by importLogItem().
WikiRevision::getContent | ( | $role = SlotRecord::MAIN | ) |
string | $role | added in 1.35 |
Implements ImportableOldRevision.
Definition at line 493 of file WikiRevision.php.
Referenced by DumpRenderer\handleRevision(), CompareParsers\processRevision(), SearchDump\processRevision(), and PreprocessDump\processRevision().
WikiRevision::getContentHandler | ( | ) |
MWUnknownContentModelException |
Definition at line 478 of file WikiRevision.php.
References $contentHandler, and getModel().
Referenced by getFormat().
WikiRevision::getFilename | ( | ) |
Definition at line 614 of file WikiRevision.php.
References $filename.
Referenced by BackupReader\handleUpload().
WikiRevision::getFileSrc | ( | ) |
Implements ImportableUploadRevision.
Definition at line 598 of file WikiRevision.php.
References $fileSrc.
WikiRevision::getFormat | ( | ) |
Implements ImportableOldRevision.
Definition at line 532 of file WikiRevision.php.
References $format, and getContentHandler().
WikiRevision::getID | ( | ) |
WikiRevision::getMinor | ( | ) |
Implements ImportableOldRevision.
Definition at line 552 of file WikiRevision.php.
References $minor.
WikiRevision::getModel | ( | ) |
Implements ImportableOldRevision.
Definition at line 519 of file WikiRevision.php.
References $model, and getTitle().
Referenced by getContentHandler().
WikiRevision::getParams | ( | ) |
WikiRevision::getSha1 | ( | ) |
Implements ImportableUploadRevision.
Definition at line 568 of file WikiRevision.php.
WikiRevision::getSha1Base36 | ( | ) |
Implements ImportableOldRevision.
Definition at line 579 of file WikiRevision.php.
References $sha1base36.
WikiRevision::getSize | ( | ) |
WikiRevision::getSlot | ( | $role | ) |
string | $role |
Implements ImportableOldRevision.
Definition at line 502 of file WikiRevision.php.
WikiRevision::getSlotRoles | ( | ) |
Implements ImportableOldRevision.
Definition at line 510 of file WikiRevision.php.
WikiRevision::getSrc | ( | ) |
Implements ImportableUploadRevision.
Definition at line 560 of file WikiRevision.php.
References $src.
WikiRevision::getTags | ( | ) |
Implements ImportableOldRevision.
Definition at line 590 of file WikiRevision.php.
References $tags.
WikiRevision::getText | ( | ) |
WikiRevision::getTimestamp | ( | ) |
Implements ImportableUploadRevision.
Definition at line 444 of file WikiRevision.php.
References $timestamp.
Referenced by SearchDump\processRevision().
WikiRevision::getTitle | ( | ) |
Implements ImportableUploadRevision.
Definition at line 428 of file WikiRevision.php.
References $title.
Referenced by getModel(), BackupReader\handleLogItem(), BackupReader\handleRevision(), DumpRenderer\handleRevision(), BackupReader\handleUpload(), importLogItem(), CompareParsers\processRevision(), SearchDump\processRevision(), and PreprocessDump\processRevision().
WikiRevision::getType | ( | ) |
Definition at line 638 of file WikiRevision.php.
References $type.
Referenced by importLogItem().
WikiRevision::getUser | ( | ) |
Implements ImportableUploadRevision.
Definition at line 452 of file WikiRevision.php.
References $user_text.
Referenced by importLogItem().
WikiRevision::getUserObj | ( | ) |
Implements ImportableUploadRevision.
Definition at line 460 of file WikiRevision.php.
References $userObj.
Referenced by importLogItem().
WikiRevision::importLogItem | ( | ) |
Definition at line 676 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 663 of file WikiRevision.php.
WikiRevision::importUpload | ( | ) |
Definition at line 724 of file WikiRevision.php.
WikiRevision::isTempSrc | ( | ) |
Implements ImportableUploadRevision.
Definition at line 606 of file WikiRevision.php.
References $isTemp.
WikiRevision::setAction | ( | $action | ) |
string | $action |
Definition at line 404 of file WikiRevision.php.
References $action.
WikiRevision::setArchiveName | ( | $archiveName | ) |
string | $archiveName |
Definition at line 380 of file WikiRevision.php.
References $archiveName.
WikiRevision::setComment | ( | $text | ) |
string | $text |
Definition at line 321 of file WikiRevision.php.
References $text.
WikiRevision::setContent | ( | $role, | |
$content | |||
) |
string | $role | |
Content | $content |
Definition at line 305 of file WikiRevision.php.
References $content, Content\getDefaultFormat(), Content\getModel(), and Content\serialize().
Referenced by setText().
WikiRevision::setFilename | ( | $filename | ) |
string | $filename |
Definition at line 372 of file WikiRevision.php.
References $filename.
WikiRevision::setFileSrc | ( | $src, | |
$isTemp | |||
) |
WikiRevision::setFormat | ( | $format | ) |
string | $format |
Definition at line 285 of file WikiRevision.php.
References $format.
WikiRevision::setID | ( | $id | ) |
WikiRevision::setMinor | ( | $minor | ) |
bool | $minor |
Definition at line 329 of file WikiRevision.php.
References $minor.
WikiRevision::setModel | ( | $model | ) |
string | $model |
Definition at line 276 of file WikiRevision.php.
References $model.
WikiRevision::setNoUpdates | ( | $noupdates | ) |
WikiRevision::setParams | ( | $params | ) |
string | $params |
Definition at line 412 of file WikiRevision.php.
References $params.
WikiRevision::setSha1Base36 | ( | $sha1base36 | ) |
string | $sha1base36 |
Definition at line 356 of file WikiRevision.php.
References $sha1base36.
WikiRevision::setSize | ( | $size | ) |
WikiRevision::setSrc | ( | $src | ) |
string | null | $src |
Definition at line 337 of file WikiRevision.php.
References $src.
WikiRevision::setTags | ( | array | $tags | ) |
string[] | $tags |
Definition at line 364 of file WikiRevision.php.
References $tags.
WikiRevision::setText | ( | $text | ) |
string | $text |
Definition at line 294 of file WikiRevision.php.
References $content, $text, and setContent().
WikiRevision::setTimestamp | ( | $ts | ) |
string | $ts |
Definition at line 242 of file WikiRevision.php.
References wfTimestamp().
WikiRevision::setTitle | ( | $title | ) |
Title | $title |
MWException |
Definition at line 219 of file WikiRevision.php.
References $title.
WikiRevision::setType | ( | $type | ) |
string | $type |
Definition at line 396 of file WikiRevision.php.
References $type.
WikiRevision::setUserIP | ( | $ip | ) |
WikiRevision::setUsername | ( | $user | ) |
WikiRevision::setUserObj | ( | $user | ) |
string WikiRevision::$action = "" |
Definition at line 138 of file WikiRevision.php.
Referenced by getAction(), importLogItem(), and setAction().
string WikiRevision::$archiveName = '' |
Definition at line 168 of file WikiRevision.php.
Referenced by getArchiveName(), and setArchiveName().
string WikiRevision::$comment = "" |
|
private |
Definition at line 203 of file WikiRevision.php.
Referenced by __construct().
Content WikiRevision::$content = null |
Definition at line 103 of file WikiRevision.php.
Referenced by setContent(), and setText().
|
protected |
WikiRevision::$fileIsTemp |
Definition at line 194 of file WikiRevision.php.
|
protected |
Definition at line 173 of file WikiRevision.php.
Referenced by getFilename(), and setFilename().
string WikiRevision::$fileSrc = '' |
string WikiRevision::$format = null |
Definition at line 83 of file WikiRevision.php.
Referenced by getFormat(), and setFormat().
int WikiRevision::$id = 0 |
bool WikiRevision::$isTemp = false |
Definition at line 186 of file WikiRevision.php.
Referenced by isTempSrc(), and setFileSrc().
bool WikiRevision::$minor = false |
Definition at line 126 of file WikiRevision.php.
Referenced by getMinor(), and setMinor().
|
private |
Definition at line 197 of file WikiRevision.php.
string WikiRevision::$model = null |
Definition at line 76 of file WikiRevision.php.
Referenced by getModel(), and setModel().
string WikiRevision::$params = "" |
Definition at line 144 of file WikiRevision.php.
Referenced by getParams(), importLogItem(), and setParams().
bool string WikiRevision::$sha1base36 = false |
Definition at line 156 of file WikiRevision.php.
Referenced by getSha1Base36(), and setSha1Base36().
|
protected |
|
private |
Definition at line 120 of file WikiRevision.php.
|
protected |
Definition at line 179 of file WikiRevision.php.
Referenced by getSrc(), setFileSrc(), and setSrc().
|
protected |
string WikiRevision::$text = "" |
Definition at line 90 of file WikiRevision.php.
Referenced by getText(), setComment(), and setText().
string WikiRevision::$timestamp = "20010115000000" |
Title WikiRevision::$title = null |
string WikiRevision::$type = "" |
Definition at line 132 of file WikiRevision.php.
Referenced by getType(), importLogItem(), and setType().
string WikiRevision::$user_text = "" |
User WikiRevision::$userObj = null |