MediaWiki  REL1_19
BackupReader Class Reference
Inheritance diagram for BackupReader:
Collaboration diagram for BackupReader:

List of all members.

Public Member Functions

 __construct ()
 Default constructor.
 execute ()
 Do the actual work.
 handleLogItem ($rev)
 handleRevision ($rev)
 handleUpload ($revision)
 importFromFile ($filename)
 importFromHandle ($handle)
 importFromStdin ()
 progress ($string)
 report ($final=false)
 reportPage ($page)
 setNsfilter (array $namespaces)
 showReport ()

Public Attributes

 $dryRun = false
 $imageBasePath = false
 $nsFilter = false
 $pageCount = 0
 $reportingInterval = 100
 $revCount = 0
 $uploads = false

Private Member Functions

 getNsIndex ($namespace)
 skippedNamespace ($obj)

Detailed Description

Definition at line 30 of file importDump.php.


Constructor & Destructor Documentation

Default constructor.

Children should call this *first* if implementing their own constructors

Reimplemented from Maintenance.

Definition at line 39 of file importDump.php.

References Maintenance\addArg(), and Maintenance\addOption().

Here is the call graph for this function:


Member Function Documentation

Do the actual work.

All child classes will need to implement this

Reimplemented from Maintenance.

Definition at line 71 of file importDump.php.

References Maintenance\error(), Maintenance\getArg(), Maintenance\getOption(), Maintenance\hasArg(), Maintenance\hasOption(), importFromFile(), importFromStdin(), Maintenance\output(), setNsfilter(), and wfReadOnly().

Here is the call graph for this function:

BackupReader::getNsIndex ( namespace) [private]

Definition at line 108 of file importDump.php.

References $result, $wgContLang, Maintenance\error(), and false.

Here is the call graph for this function:

Definition at line 187 of file importDump.php.

References report(), and skippedNamespace().

Here is the call graph for this function:

Parameters:
$revRevision
Returns:
mixed

Definition at line 146 of file importDump.php.

References $title, progress(), report(), and skippedNamespace().

Here is the call graph for this function:

BackupReader::handleUpload ( revision)
Parameters:
$revisionRevision
Returns:
bool

Definition at line 169 of file importDump.php.

References progress(), skippedNamespace(), and wfGetDB().

Here is the call graph for this function:

Definition at line 231 of file importDump.php.

References $file, and importFromHandle().

Referenced by execute().

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 252 of file importDump.php.

References Maintenance\hasOption(), and wfTime().

Referenced by importFromFile(), and importFromStdin().

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 244 of file importDump.php.

References $file, importFromHandle(), and Maintenance\maybeHelp().

Referenced by execute().

Here is the call graph for this function:

Here is the caller graph for this function:

BackupReader::progress ( string)

Definition at line 227 of file importDump.php.

Referenced by handleRevision(), handleUpload(), and showReport().

Here is the caller graph for this function:

BackupReader::report ( final = false)

Definition at line 199 of file importDump.php.

References showReport().

Referenced by handleLogItem(), and handleRevision().

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 138 of file importDump.php.

BackupReader::setNsfilter ( array $  namespaces)

Definition at line 100 of file importDump.php.

Referenced by execute().

Here is the caller graph for this function:

Definition at line 205 of file importDump.php.

References DeferredUpdates\doUpdates(), progress(), wfTime(), and wfWaitForSlaves().

Referenced by report().

Here is the call graph for this function:

Here is the caller graph for this function:

BackupReader::skippedNamespace ( obj) [private]
Parameters:
$objTitle|Revision
Returns:
bool

Definition at line 124 of file importDump.php.

References echo, Maintenance\error(), and wfBacktrace().

Referenced by handleLogItem(), handleRevision(), and handleUpload().

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

BackupReader::$dryRun = false

Definition at line 34 of file importDump.php.

BackupReader::$imageBasePath = false

Definition at line 36 of file importDump.php.

BackupReader::$nsFilter = false

Definition at line 37 of file importDump.php.

BackupReader::$pageCount = 0

Definition at line 32 of file importDump.php.

BackupReader::$reportingInterval = 100

Definition at line 31 of file importDump.php.

BackupReader::$revCount = 0

Definition at line 33 of file importDump.php.

BackupReader::$uploads = false

Definition at line 35 of file importDump.php.


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