MediaWiki
REL1_19
|
Public Member Functions | |
__construct ($args) | |
__destruct () | |
backupDb () | |
backupServer () | |
dump ($history, $text=WikiExporter::TEXT) | |
fatalError ($msg) | |
initProgress ($history=WikiExporter::FULL) | |
Initialise starting time and maximum revision count. | |
loadPlugin ($class, $file) | |
Load a plugin and register it. | |
processArgs ($args) | |
processOption ($opt, $val, $param) | |
progress ($string) | |
registerFilter ($name, $class) | |
registerOutput ($name, $class) | |
report ($final=false) | |
reportPage () | |
revCount () | |
showReport () | |
Public Attributes | |
$dumpUploadFileContents = false | |
$dumpUploads = false | |
$endId = 0 | |
$filterTypes = array() | |
$ID = 0 | |
$lastTime = 0 | |
$outputTypes = array() | |
$pageCount = 0 | |
$pageCountLast = 0 | |
$pages = null | |
$reporting = true | |
$reportingInterval = 100 | |
$revCount = 0 | |
$revCountLast = 0 | |
$revEndId = 0 | |
$revStartId = 0 | |
$server = null | |
$sink = null | |
$skipFooter = false | |
$skipHeader = false | |
$startId = 0 | |
$stubText = false | |
Protected Attributes | |
$lb |
Definition at line 39 of file backup.inc.
BackupDumper::__construct | ( | $ | args | ) |
Definition at line 68 of file backup.inc.
References processArgs(), registerFilter(), and registerOutput().
Definition at line 272 of file backup.inc.
Definition at line 261 of file backup.inc.
References wfGetLBFactory().
Referenced by TextPassDumper\dump(), and dump().
Definition at line 278 of file backup.inc.
References $wgDBserver.
BackupDumper::dump | ( | $ | history, |
$ | text = WikiExporter::TEXT |
||
) |
Reimplemented in TextPassDumper.
Definition at line 193 of file backup.inc.
References backupDb(), dumpUploadFileContents, dumpUploads, initProgress(), WikiExporter\LOGS, report(), skipFooter, skipHeader, and WikiExporter\STREAM.
BackupDumper::fatalError | ( | $ | msg | ) |
Definition at line 338 of file backup.inc.
References progress().
Referenced by processArgs().
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.
$history | Integer: WikiExporter::CURRENT or WikiExporter::FULL |
Reimplemented in TextPassDumper.
Definition at line 244 of file backup.inc.
References $dbr, WikiExporter\CURRENT, wfGetDB(), and wfTime().
Referenced by dump().
BackupDumper::loadPlugin | ( | $ | class, |
$ | file | ||
) |
Load a plugin and register it.
$class | String: name of plugin class; must have a static 'register' method that takes a BackupDumper as a parameter. |
$file | String: full or relative path to the PHP file to load, or empty |
Definition at line 108 of file backup.inc.
References $file.
Referenced by processArgs().
BackupDumper::processArgs | ( | $ | args | ) |
$args | Array |
Definition at line 120 of file backup.inc.
References $matches, $sink, fatalError(), loadPlugin(), processOption(), and wfDl().
Referenced by __construct().
BackupDumper::processOption | ( | $ | opt, |
$ | val, | ||
$ | param | ||
) |
Reimplemented in TextPassDumper.
Definition at line 189 of file backup.inc.
Referenced by processArgs().
BackupDumper::progress | ( | $ | string | ) |
Definition at line 334 of file backup.inc.
Referenced by TextPassDumper\doGetText(), fatalError(), TextPassDumper\getTextSpawnedOnce(), TextPassDumper\openSpawn(), TextPassDumper\showReport(), and showReport().
BackupDumper::registerFilter | ( | $ | name, |
$ | class | ||
) |
$name | String |
$class | String: name of filter plugin class |
Definition at line 97 of file backup.inc.
Referenced by __construct().
BackupDumper::registerOutput | ( | $ | name, |
$ | class | ||
) |
$name | String |
$class | String: name of output filter plugin class |
Definition at line 89 of file backup.inc.
Referenced by __construct().
BackupDumper::report | ( | $ | final = false | ) |
Definition at line 294 of file backup.inc.
References revCount(), and showReport().
Referenced by TextPassDumper\dump(), dump(), and revCount().
Definition at line 285 of file backup.inc.
Definition at line 289 of file backup.inc.
References report().
Referenced by report(), TextPassDumper\showReport(), and showReport().
Reimplemented in TextPassDumper.
Definition at line 300 of file backup.inc.
References progress(), revCount(), wfTime(), wfTimestamp(), and wfWikiID().
Referenced by report().
BackupDumper::$dumpUploadFileContents = false |
Definition at line 55 of file backup.inc.
BackupDumper::$dumpUploads = false |
Definition at line 54 of file backup.inc.
BackupDumper::$endId = 0 |
Definition at line 49 of file backup.inc.
BackupDumper::$filterTypes = array() |
Definition at line 61 of file backup.inc.
BackupDumper::$ID = 0 |
Definition at line 59 of file backup.inc.
BackupDumper::$lastTime = 0 |
Definition at line 56 of file backup.inc.
BackupDumper::$lb [protected] |
Definition at line 66 of file backup.inc.
BackupDumper::$outputTypes = array() |
Definition at line 61 of file backup.inc.
BackupDumper::$pageCount = 0 |
Definition at line 42 of file backup.inc.
BackupDumper::$pageCountLast = 0 |
Definition at line 57 of file backup.inc.
BackupDumper::$pages = null |
Definition at line 45 of file backup.inc.
BackupDumper::$reporting = true |
Definition at line 41 of file backup.inc.
BackupDumper::$reportingInterval = 100 |
Definition at line 40 of file backup.inc.
BackupDumper::$revCount = 0 |
Definition at line 43 of file backup.inc.
BackupDumper::$revCountLast = 0 |
Definition at line 58 of file backup.inc.
BackupDumper::$revEndId = 0 |
Definition at line 51 of file backup.inc.
BackupDumper::$revStartId = 0 |
Definition at line 50 of file backup.inc.
BackupDumper::$server = null |
Definition at line 44 of file backup.inc.
BackupDumper::$sink = null |
Definition at line 52 of file backup.inc.
Referenced by processArgs().
BackupDumper::$skipFooter = false |
Definition at line 47 of file backup.inc.
BackupDumper::$skipHeader = false |
Definition at line 46 of file backup.inc.
BackupDumper::$startId = 0 |
Definition at line 48 of file backup.inc.
BackupDumper::$stubText = false |
Definition at line 53 of file backup.inc.