MediaWiki
1.23.2
|
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. More... | |
loadPlugin ( $class, $file) | |
Load a plugin and register it. More... | |
processArgs ( $args) | |
processOption ( $opt, $val, $param) | |
progress ( $string) | |
registerFilter ( $name, $class) | |
registerOutput ( $name, $class) | |
report ( $final=false) | |
reportPage () | |
revCount () | |
setDb (DatabaseBase $db=null) | |
Force the dump to use the provided database connection for database operations, wherever possible. More... | |
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 | |
DatabaseBase null | $forcedDb = null |
The dependency-injected database to use. More... | |
LoadBalancer | $lb |
Definition at line 39 of file backup.inc.
BackupDumper::__construct | ( | $args | ) |
Definition at line 75 of file backup.inc.
References $args, processArgs(), registerFilter(), and registerOutput().
BackupDumper::__destruct | ( | ) |
Definition at line 298 of file backup.inc.
BackupDumper::backupDb | ( | ) |
Definition at line 271 of file backup.inc.
References $forcedDb, array(), DB_SLAVE, and wfGetLBFactory().
Referenced by dump().
BackupDumper::backupServer | ( | ) |
Definition at line 304 of file backup.inc.
BackupDumper::dump | ( | $history, | |
$text = WikiExporter::TEXT |
|||
) |
Reimplemented in TextPassDumper.
Definition at line 197 of file backup.inc.
References $dumpUploadFileContents, $dumpUploads, backupDb(), initProgress(), WikiExporter\LOGS, pages, report(), skipFooter, skipHeader, and WikiExporter\STREAM.
BackupDumper::fatalError | ( | $msg | ) |
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 251 of file backup.inc.
References $dbr, $forcedDb, WikiExporter\CURRENT, DB_SLAVE, ID, and wfGetDB().
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 115 of file backup.inc.
References $file, and array().
Referenced by processArgs().
BackupDumper::processArgs | ( | $args | ) |
$args | Array |
Definition at line 127 of file backup.inc.
References $args, $matches, $sink, $type, array(), as, fatalError(), list, loadPlugin(), processOption(), and server.
Referenced by __construct().
BackupDumper::processOption | ( | $opt, | |
$val, | |||
$param | |||
) |
Reimplemented in TextPassDumper.
Definition at line 193 of file backup.inc.
Referenced by processArgs().
BackupDumper::progress | ( | $string | ) |
Definition at line 360 of file backup.inc.
Referenced by TextPassDumper\dump(), fatalError(), TextPassDumper\getText(), TextPassDumper\getTextSpawnedOnce(), TextPassDumper\openSpawn(), TextPassDumper\showReport(), and showReport().
BackupDumper::registerFilter | ( | $name, | |
$class | |||
) |
$name | String |
$class | String: name of filter plugin class |
Definition at line 104 of file backup.inc.
References $name.
Referenced by __construct().
BackupDumper::registerOutput | ( | $name, | |
$class | |||
) |
$name | String |
$class | String: name of output filter plugin class |
Definition at line 96 of file backup.inc.
References $name.
Referenced by __construct().
BackupDumper::report | ( | $final = false | ) |
Definition at line 320 of file backup.inc.
References revCount(), and showReport().
Referenced by TextPassDumper\dump(), dump(), and revCount().
BackupDumper::reportPage | ( | ) |
Definition at line 311 of file backup.inc.
BackupDumper::revCount | ( | ) |
Definition at line 315 of file backup.inc.
References report().
Referenced by report(), TextPassDumper\showReport(), and showReport().
BackupDumper::setDb | ( | DatabaseBase | $db = null | ) |
Force the dump to use the provided database connection for database operations, wherever possible.
$db | DatabaseBase|null: (Optional) the database connection to use. If null, resort to use the globally provided ways to get database connections. |
Definition at line 294 of file backup.inc.
BackupDumper::showReport | ( | ) |
Reimplemented in TextPassDumper.
Definition at line 326 of file backup.inc.
References $lastTime, $pageCountLast, $revCount, $revCountLast, ID, progress(), revCount(), TS_DB, wfTimestamp(), and wfWikiID().
Referenced by report().
BackupDumper::$dumpUploadFileContents = false |
Definition at line 55 of file backup.inc.
Referenced by dump().
BackupDumper::$dumpUploads = false |
Definition at line 54 of file backup.inc.
Referenced by dump().
BackupDumper::$endId = 0 |
Definition at line 49 of file backup.inc.
BackupDumper::$filterTypes = array() |
Definition at line 61 of file backup.inc.
|
protected |
The dependency-injected database to use.
Definition at line 69 of file backup.inc.
Referenced by backupDb(), initProgress(), and TextPassDumper\rotateDb().
BackupDumper::$ID = 0 |
Definition at line 59 of file backup.inc.
BackupDumper::$lastTime = 0 |
Definition at line 56 of file backup.inc.
Referenced by TextPassDumper\endElement(), TextPassDumper\showReport(), and showReport().
|
protected |
Definition at line 73 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.
Referenced by TextPassDumper\showReport(), and showReport().
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.
Referenced by TextPassDumper\showReport(), and showReport().
BackupDumper::$revCountLast = 0 |
Definition at line 58 of file backup.inc.
Referenced by TextPassDumper\showReport(), and showReport().
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.