MediaWiki
REL1_22
|
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 75 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 112 of file importDump.php.
References $result, $wgContLang, Maintenance\error(), false, and global.
BackupReader::handleLogItem | ( | $ | rev | ) |
Definition at line 191 of file importDump.php.
References $rev, report(), and skippedNamespace().
BackupReader::handleRevision | ( | $ | rev | ) |
$rev | Revision |
Definition at line 150 of file importDump.php.
References $rev, $title, progress(), report(), and skippedNamespace().
BackupReader::handleUpload | ( | $ | revision | ) |
$revision | Revision |
Definition at line 173 of file importDump.php.
References array(), progress(), skippedNamespace(), and wfGetDB().
BackupReader::importFromFile | ( | $ | filename | ) |
Definition at line 235 of file importDump.php.
References $file, and importFromHandle().
Referenced by execute().
BackupReader::importFromHandle | ( | $ | handle | ) |
Definition at line 256 of file importDump.php.
References $source, array(), and Maintenance\hasOption().
Referenced by importFromFile(), and importFromStdin().
Definition at line 248 of file importDump.php.
References $file, importFromHandle(), and Maintenance\maybeHelp().
Referenced by execute().
BackupReader::progress | ( | $ | string | ) |
Definition at line 231 of file importDump.php.
Referenced by handleRevision(), handleUpload(), and showReport().
BackupReader::report | ( | $ | final = false | ) |
Definition at line 203 of file importDump.php.
References showReport().
Referenced by handleLogItem(), and handleRevision().
BackupReader::reportPage | ( | $ | page | ) |
Definition at line 142 of file importDump.php.
BackupReader::setNsfilter | ( | array $ | namespaces | ) |
Definition at line 209 of file importDump.php.
References DeferredUpdates\doUpdates(), progress(), and wfWaitForSlaves().
Referenced by report().
BackupReader::skippedNamespace | ( | $ | obj | ) | [private] |
$obj | Title|Revision |
Definition at line 128 of file importDump.php.
References Maintenance\error(), and wfBacktrace().
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.