MediaWiki
REL1_19
|
Public Member Functions | |
__construct () | |
Default constructor. | |
execute () | |
Do the actual work. | |
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) |
Definition at line 30 of file importDump.php.
Default constructor.
Children should call this *first* if implementing their own constructors
Reimplemented from Maintenance.
Definition at line 39 of file importDump.php.
References Maintenance\addArg(), and Maintenance\addOption().
Do the actual work.
All child classes will need to implement this
Reimplemented from Maintenance.
Definition at line 71 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 108 of file importDump.php.
References $result, $wgContLang, Maintenance\error(), and false.
BackupReader::handleLogItem | ( | $ | rev | ) |
Definition at line 187 of file importDump.php.
References report(), and skippedNamespace().
BackupReader::handleRevision | ( | $ | rev | ) |
$rev | Revision |
Definition at line 146 of file importDump.php.
References $title, progress(), report(), and skippedNamespace().
BackupReader::handleUpload | ( | $ | revision | ) |
$revision | Revision |
Definition at line 169 of file importDump.php.
References progress(), skippedNamespace(), and wfGetDB().
BackupReader::importFromFile | ( | $ | filename | ) |
Definition at line 231 of file importDump.php.
References $file, and importFromHandle().
Referenced by execute().
BackupReader::importFromHandle | ( | $ | handle | ) |
Definition at line 252 of file importDump.php.
References Maintenance\hasOption(), and wfTime().
Referenced by importFromFile(), and importFromStdin().
Definition at line 244 of file importDump.php.
References $file, importFromHandle(), and Maintenance\maybeHelp().
Referenced by execute().
BackupReader::progress | ( | $ | string | ) |
Definition at line 227 of file importDump.php.
Referenced by handleRevision(), handleUpload(), and showReport().
BackupReader::report | ( | $ | final = false | ) |
Definition at line 199 of file importDump.php.
References showReport().
Referenced by handleLogItem(), and handleRevision().
BackupReader::reportPage | ( | $ | page | ) |
Definition at line 138 of file importDump.php.
BackupReader::setNsfilter | ( | array $ | namespaces | ) |
Definition at line 100 of file importDump.php.
Referenced by execute().
Definition at line 205 of file importDump.php.
References DeferredUpdates\doUpdates(), progress(), wfTime(), and wfWaitForSlaves().
Referenced by report().
BackupReader::skippedNamespace | ( | $ | obj | ) | [private] |
$obj | Title|Revision |
Definition at line 124 of file importDump.php.
References echo, Maintenance\error(), and wfBacktrace().
Referenced by handleLogItem(), handleRevision(), and handleUpload().
BackupReader::$dryRun = false |
Definition at line 34 of file importDump.php.
BackupReader::$imageBasePath = false |
Definition at line 36 of file importDump.php.
BackupReader::$nsFilter = false |
Definition at line 37 of file importDump.php.
BackupReader::$pageCount = 0 |
Definition at line 32 of file importDump.php.
BackupReader::$reportingInterval = 100 |
Definition at line 31 of file importDump.php.
BackupReader::$revCount = 0 |
Definition at line 33 of file importDump.php.
BackupReader::$uploads = false |
Definition at line 35 of file importDump.php.