Public Member Functions | |
setTitle ($title) | |
setID ($id) | |
setTimestamp ($ts) | |
setUsername ($user) | |
setUserIP ($ip) | |
setText ($text) | |
setComment ($text) | |
setMinor ($minor) | |
setSrc ($src) | |
setFilename ($filename) | |
setSize ($size) | |
setType ($type) | |
setAction ($action) | |
setParams ($params) | |
getTitle () | |
getID () | |
getTimestamp () | |
getUser () | |
getText () | |
getComment () | |
getMinor () | |
getSrc () | |
getFilename () | |
getSize () | |
getType () | |
getAction () | |
getParams () | |
importOldRevision () | |
importLogItem () | |
importUpload () | |
downloadSource () | |
Public Attributes | |
$title = null | |
$id = 0 | |
$timestamp = "20010115000000" | |
$user = 0 | |
$user_text = "" | |
$text = "" | |
$comment = "" | |
$minor = false | |
$type = "" | |
$action = "" | |
$params = "" |
Definition at line 30 of file Import.php.
WikiRevision::downloadSource | ( | ) |
Definition at line 342 of file Import.php.
References $src, $wgEnableUploads, Http::get(), getSrc(), wfDebug(), and wfTempDir().
Referenced by importUpload().
WikiRevision::getAction | ( | ) |
WikiRevision::getComment | ( | ) |
Definition at line 126 of file Import.php.
Referenced by importLogItem(), importOldRevision(), and importUpload().
WikiRevision::getFilename | ( | ) |
Definition at line 138 of file Import.php.
WikiRevision::getID | ( | ) |
Definition at line 110 of file Import.php.
WikiRevision::getMinor | ( | ) |
Definition at line 130 of file Import.php.
WikiRevision::getParams | ( | ) |
Definition at line 154 of file Import.php.
WikiRevision::getSize | ( | ) |
Definition at line 142 of file Import.php.
WikiRevision::getSrc | ( | ) |
WikiRevision::getText | ( | ) |
WikiRevision::getTimestamp | ( | ) |
WikiRevision::getTitle | ( | ) |
WikiRevision::getType | ( | ) |
WikiRevision::getUser | ( | ) |
WikiRevision::importLogItem | ( | ) |
Definition at line 241 of file Import.php.
References $dbw, getAction(), getComment(), getTitle(), getType(), User::idFromName(), wfDebug(), and wfGetDB().
WikiRevision::importOldRevision | ( | ) |
Definition at line 158 of file Import.php.
References $changed, $dbw, $GLOBALS, $revision, $user, getComment(), getText(), getUser(), User::newFromName(), Article::onArticleCreate(), Article::onArticleEdit(), LinkCache::singleton(), wfDebug(), and wfGetDB().
WikiRevision::importUpload | ( | ) |
Definition at line 284 of file Import.php.
References $file, $source, $status, File::DELETE_SOURCE, downloadSource(), getComment(), getTimestamp(), getTitle(), wfDebug(), and wfLocalFile().
WikiRevision::setAction | ( | $ | action | ) |
WikiRevision::setComment | ( | $ | text | ) |
WikiRevision::setFilename | ( | $ | filename | ) |
WikiRevision::setID | ( | $ | id | ) |
WikiRevision::setMinor | ( | $ | minor | ) |
WikiRevision::setParams | ( | $ | params | ) |
WikiRevision::setSize | ( | $ | size | ) |
WikiRevision::setSrc | ( | $ | src | ) |
WikiRevision::setText | ( | $ | text | ) |
WikiRevision::setTimestamp | ( | $ | ts | ) |
WikiRevision::setTitle | ( | $ | title | ) |
WikiRevision::setType | ( | $ | type | ) |
WikiRevision::setUserIP | ( | $ | ip | ) |
Definition at line 66 of file Import.php.
WikiRevision::setUsername | ( | $ | user | ) |
WikiRevision::$action = "" |
WikiRevision::$comment = "" |
Definition at line 37 of file Import.php.
WikiRevision::$id = 0 |
WikiRevision::$minor = false |
WikiRevision::$params = "" |
WikiRevision::$text = "" |
WikiRevision::$timestamp = "20010115000000" |
Definition at line 33 of file Import.php.
WikiRevision::$title = null |
WikiRevision::$type = "" |
WikiRevision::$user = 0 |
WikiRevision::$user_text = "" |
Definition at line 35 of file Import.php.