BackupDumper Class Reference
[DumpMaintenance]

Inherited by TextPassDumper.

List of all members.

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


Detailed Description

Definition at line 37 of file backup.inc.


Member Function Documentation

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

Definition at line 250 of file backup.inc.

References $wgDBserver.

Referenced by backupDb().

BackupDumper::dump ( history,
text = WikiExporter::TEXT 
)

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.

Parameters:
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.

Parameters:
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]

Parameters:
array $args
Returns:
array

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  ) 

BackupDumper::registerFilter ( name,
class 
)

Parameters:
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 
)

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


Member Data Documentation

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

Definition at line 48 of file backup.inc.

Referenced by processArgs().

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.


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

Generated on Sat Sep 5 02:08:33 2009 for MediaWiki by  doxygen 1.5.9