Public Member Functions | |
BackupDumper ($args) | |
registerOutput ($name, $class) | |
registerFilter ($name, $class) | |
loadPlugin ($class, $file) | |
Load a plugin and register it. | |
processOption ($opt, $val, $param) | |
dump ($history, $text=WikiExporter::TEXT) | |
initProgress ($history=WikiExporter::FULL) | |
Initialise starting time and maximum revision count. | |
backupDb () | |
backupServer () | |
reportPage () | |
revCount () | |
report ($final=false) | |
showReport () | |
progress ($string) | |
Static Public Member Functions | |
processArgs ($args) | |
Public Attributes | |
$reportingInterval = 100 | |
$reporting = true | |
$pageCount = 0 | |
$revCount = 0 | |
$server = null | |
$pages = null | |
$skipHeader = false | |
$skipFooter = false | |
$startId = 0 | |
$endId = 0 | |
$sink = null | |
$stubText = false | |
$dumpUploads = false |
Definition at line 37 of file backup.inc.
BackupDumper::backupDb | ( | ) |
Definition at line 235 of file backup.inc.
References $db, $flags, $wgDBadminuser, $wgDBname, $wgDBtype, $wgDebugDumpSql, and backupServer().
Referenced by TextPassDumper::dump(), and dump().
BackupDumper::BackupDumper | ( | $ | args | ) |
Definition at line 52 of file backup.inc.
References $args, processArgs(), registerFilter(), and registerOutput().
BackupDumper::backupServer | ( | ) |
BackupDumper::dump | ( | $ | history, | |
$ | text = WikiExporter::TEXT | |||
) |
Definition at line 178 of file backup.inc.
References $db, $text, backupDb(), dumpUploads, initProgress(), WikiExporter::LOGS, report(), skipFooter, skipHeader, and WikiExporter::STREAM.
BackupDumper::initProgress | ( | $ | history = WikiExporter::FULL |
) |
Initialise starting time and maximum revision count.
We'll make ETA calculations based an progress, assuming relatively constant per-revision rate.
int | $history WikiExporter::CURRENT or WikiExporter::FULL |
Definition at line 226 of file backup.inc.
References $dbr, WikiExporter::CURRENT, wfGetDB(), and wfTime().
Referenced by TextPassDumper::dump(), and dump().
BackupDumper::loadPlugin | ( | $ | class, | |
$ | file | |||
) |
Load a plugin and register it.
string | $class Name of plugin class; must have a static 'register' method that takes a BackupDumper as a parameter. | |
string | $file Full or relative path to the PHP file to load, or empty |
Definition at line 91 of file backup.inc.
References $file.
Referenced by processArgs().
BackupDumper::processArgs | ( | $ | args | ) | [static] |
array | $args |
Definition at line 104 of file backup.inc.
References $args, $filter, $sink, $type, loadPlugin(), processOption(), progress(), and wfDie().
Referenced by BackupDumper().
BackupDumper::processOption | ( | $ | opt, | |
$ | val, | |||
$ | param | |||
) |
Reimplemented in TextPassDumper.
Definition at line 174 of file backup.inc.
Referenced by processArgs().
BackupDumper::progress | ( | $ | string | ) |
Definition at line 292 of file backup.inc.
Referenced by TextPassDumper::getTextDbSafe(), TextPassDumper::getTextSpawned(), TextPassDumper::getTextSpawnedOnce(), TextPassDumper::openSpawn(), processArgs(), TextPassDumper::showReport(), and showReport().
BackupDumper::registerFilter | ( | $ | name, | |
$ | class | |||
) |
string | $name | |
string | $class name of filter plugin class |
Definition at line 81 of file backup.inc.
References $name.
Referenced by BackupDumper().
BackupDumper::registerOutput | ( | $ | name, | |
$ | class | |||
) |
string | $name | |
string | $class name of output filter plugin class |
Definition at line 73 of file backup.inc.
References $name.
Referenced by BackupDumper().
BackupDumper::report | ( | $ | final = false |
) |
Definition at line 266 of file backup.inc.
References revCount(), and showReport().
Referenced by TextPassDumper::dump(), dump(), and revCount().
BackupDumper::reportPage | ( | ) |
Definition at line 257 of file backup.inc.
BackupDumper::revCount | ( | ) |
Definition at line 261 of file backup.inc.
References report().
Referenced by report(), TextPassDumper::showReport(), and showReport().
BackupDumper::showReport | ( | ) |
Reimplemented in TextPassDumper.
Definition at line 272 of file backup.inc.
References progress(), revCount(), wfTime(), wfTimestamp(), and wfWikiID().
Referenced by report().
BackupDumper::$dumpUploads = false |
Definition at line 50 of file backup.inc.
BackupDumper::$endId = 0 |
Definition at line 47 of file backup.inc.
BackupDumper::$pageCount = 0 |
Definition at line 40 of file backup.inc.
BackupDumper::$pages = null |
Definition at line 43 of file backup.inc.
BackupDumper::$reporting = true |
Definition at line 39 of file backup.inc.
BackupDumper::$reportingInterval = 100 |
Definition at line 38 of file backup.inc.
BackupDumper::$revCount = 0 |
Definition at line 41 of file backup.inc.
BackupDumper::$server = null |
Definition at line 42 of file backup.inc.
BackupDumper::$sink = null |
BackupDumper::$skipFooter = false |
Definition at line 45 of file backup.inc.
BackupDumper::$skipHeader = false |
Definition at line 44 of file backup.inc.
BackupDumper::$startId = 0 |
Definition at line 46 of file backup.inc.
BackupDumper::$stubText = false |
Definition at line 49 of file backup.inc.