MediaWiki
REL1_24
|
Maintenance script that imports XML dump files into the current wiki. More...
Public Member Functions | |
__construct () | |
execute () | |
handleLogItem ($rev) | |
handleRevision ($rev) | |
handleUpload ($revision) | |
importFromFile ($filename) | |
importFromHandle ($handle) | |
importFromStdin () | |
progress ($string) | |
report ($final=false) | |
reportPage ($page) | |
setNsfilter (array $namespaces) | |
showReport () | |
Public Attributes | |
$dryRun = false | |
$imageBasePath = false | |
$nsFilter = false | |
$pageCount = 0 | |
$reportingInterval = 100 | |
$revCount = 0 | |
$uploads = false | |
Private Member Functions | |
getNsIndex ($namespace) | |
skippedNamespace ($obj) |
Maintenance script that imports XML dump files into the current wiki.
Definition at line 34 of file importDump.php.
Reimplemented from Maintenance.
Definition at line 82 of file importDump.php.
References Maintenance\error(), Maintenance\getArg(), Maintenance\getOption(), Maintenance\hasArg(), Maintenance\hasOption(), importFromFile(), importFromStdin(), Maintenance\output(), setNsfilter(), and wfReadOnly().
BackupReader::getNsIndex | ( | $ | namespace | ) | [private] |
Definition at line 120 of file importDump.php.
References $result, $wgContLang, Maintenance\error(), false, and global.
BackupReader::handleLogItem | ( | $ | rev | ) |
Definition at line 202 of file importDump.php.
References $rev, report(), and skippedNamespace().
BackupReader::handleRevision | ( | $ | rev | ) |
Revision | $rev |
Definition at line 157 of file importDump.php.
References $rev, $title, progress(), report(), and skippedNamespace().
BackupReader::handleUpload | ( | $ | revision | ) |
Revision | $revision |
Definition at line 181 of file importDump.php.
References array(), progress(), skippedNamespace(), and wfGetDB().
BackupReader::importFromFile | ( | $ | filename | ) |
Definition at line 246 of file importDump.php.
References $file, and importFromHandle().
Referenced by execute().
BackupReader::importFromHandle | ( | $ | handle | ) |
Definition at line 269 of file importDump.php.
References $source, array(), and Maintenance\hasOption().
Referenced by importFromFile(), and importFromStdin().
Definition at line 260 of file importDump.php.
References $file, importFromHandle(), and Maintenance\maybeHelp().
Referenced by execute().
BackupReader::progress | ( | $ | string | ) |
Definition at line 242 of file importDump.php.
Referenced by handleRevision(), handleUpload(), and showReport().
BackupReader::report | ( | $ | final = false | ) |
Definition at line 214 of file importDump.php.
References showReport().
Referenced by handleLogItem(), and handleRevision().
BackupReader::reportPage | ( | $ | page | ) |
Definition at line 150 of file importDump.php.
BackupReader::setNsfilter | ( | array $ | namespaces | ) |
Definition at line 220 of file importDump.php.
References DeferredUpdates\doUpdates(), progress(), and wfWaitForSlaves().
Referenced by report().
BackupReader::skippedNamespace | ( | $ | obj | ) | [private] |
Definition at line 136 of file importDump.php.
Referenced by handleLogItem(), handleRevision(), and handleUpload().
BackupReader::$dryRun = false |
Definition at line 38 of file importDump.php.
BackupReader::$imageBasePath = false |
Definition at line 40 of file importDump.php.
BackupReader::$nsFilter = false |
Definition at line 41 of file importDump.php.
BackupReader::$pageCount = 0 |
Definition at line 36 of file importDump.php.
BackupReader::$reportingInterval = 100 |
Definition at line 35 of file importDump.php.
BackupReader::$revCount = 0 |
Definition at line 37 of file importDump.php.
BackupReader::$uploads = false |
Definition at line 39 of file importDump.php.