MediaWiki  REL1_19
BackupDumper Class Reference
Inheritance diagram for BackupDumper:

List of all members.

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

Detailed Description

Definition at line 39 of file backup.inc.


Constructor & Destructor Documentation

Definition at line 68 of file backup.inc.

References processArgs(), registerFilter(), and registerOutput().

Here is the call graph for this function:

Definition at line 272 of file backup.inc.


Member Function Documentation

Todo:
Fixme: the --server parameter is currently not respected, as it doesn't seem terribly easy to ask the load balancer for a particular connection by name.
Returns:
DatabaseBase

Definition at line 261 of file backup.inc.

References wfGetLBFactory().

Referenced by TextPassDumper\dump(), and dump().

Here is the call graph for this function:

Here is the caller graph for this function:

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.

Here is the call graph for this function:

Definition at line 338 of file backup.inc.

References progress().

Referenced by processArgs().

Here is the call graph for this function:

Here is the caller graph for this function:

Initialise starting time and maximum revision count.

We'll make ETA calculations based an progress, assuming relatively constant per-revision rate.

Parameters:
$historyInteger: 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().

Here is the call graph for this function:

Here is the caller graph for this function:

BackupDumper::loadPlugin ( class,
file 
)

Load a plugin and register it.

Parameters:
$classString: name of plugin class; must have a static 'register' method that takes a BackupDumper as a parameter.
$fileString: 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().

Here is the caller graph for this function:

Parameters:
$argsArray
Returns:
Array

Definition at line 120 of file backup.inc.

References $matches, $sink, fatalError(), loadPlugin(), processOption(), and wfDl().

Referenced by __construct().

Here is the call graph for this function:

Here is the caller graph for this function:

BackupDumper::processOption ( opt,
val,
param 
)

Reimplemented in TextPassDumper.

Definition at line 189 of file backup.inc.

Referenced by processArgs().

Here is the caller graph for this function:

BackupDumper::progress ( string)

Definition at line 334 of file backup.inc.

Referenced by TextPassDumper\doGetText(), fatalError(), TextPassDumper\getTextSpawnedOnce(), TextPassDumper\openSpawn(), TextPassDumper\showReport(), and showReport().

Here is the caller graph for this function:

BackupDumper::registerFilter ( name,
class 
)
Parameters:
$nameString
$classString: name of filter plugin class

Definition at line 97 of file backup.inc.

Referenced by __construct().

Here is the caller graph for this function:

BackupDumper::registerOutput ( name,
class 
)
Parameters:
$nameString
$classString: name of output filter plugin class

Definition at line 89 of file backup.inc.

Referenced by __construct().

Here is the caller graph for this function:

BackupDumper::report ( final = false)

Definition at line 294 of file backup.inc.

References revCount(), and showReport().

Referenced by TextPassDumper\dump(), dump(), and revCount().

Here is the call graph for this function:

Here is the caller graph for this function:

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().

Here is the call graph for this function:

Here is the caller graph for this function:

Reimplemented in TextPassDumper.

Definition at line 300 of file backup.inc.

References progress(), revCount(), wfTime(), wfTimestamp(), and wfWikiID().

Referenced by report().

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

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.


The documentation for this class was generated from the following file: