MediaWiki  REL1_22
BackupReader Class Reference

Maintenance script that imports XML dump files into the current wiki. More...

Inheritance diagram for BackupReader:
Collaboration diagram for BackupReader:

List of all members.

Public Member Functions

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

Maintenance script that imports XML dump files into the current wiki.

Definition at line 34 of file importDump.php.


Constructor & Destructor Documentation


Member Function Documentation

BackupReader::getNsIndex ( namespace) [private]

Definition at line 112 of file importDump.php.

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

Definition at line 191 of file importDump.php.

References $rev, report(), and skippedNamespace().

Parameters:
$revRevision
Returns:
mixed

Definition at line 150 of file importDump.php.

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

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

Definition at line 173 of file importDump.php.

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

Definition at line 235 of file importDump.php.

References $file, and importFromHandle().

Referenced by execute().

Definition at line 256 of file importDump.php.

References $source, array(), and Maintenance\hasOption().

Referenced by importFromFile(), and importFromStdin().

Definition at line 248 of file importDump.php.

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

Referenced by execute().

BackupReader::progress ( string)

Definition at line 231 of file importDump.php.

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

BackupReader::report ( final = false)

Definition at line 203 of file importDump.php.

References showReport().

Referenced by handleLogItem(), and handleRevision().

Definition at line 142 of file importDump.php.

BackupReader::setNsfilter ( array namespaces)

Definition at line 104 of file importDump.php.

References array().

Referenced by execute().

Definition at line 209 of file importDump.php.

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

Referenced by report().

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

Definition at line 128 of file importDump.php.

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

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


Member Data Documentation

BackupReader::$dryRun = false

Definition at line 38 of file importDump.php.

BackupReader::$imageBasePath = false

Definition at line 40 of file importDump.php.

BackupReader::$nsFilter = false

Definition at line 41 of file importDump.php.

BackupReader::$pageCount = 0

Definition at line 36 of file importDump.php.

BackupReader::$reportingInterval = 100

Definition at line 35 of file importDump.php.

BackupReader::$revCount = 0

Definition at line 37 of file importDump.php.

BackupReader::$uploads = false

Definition at line 39 of file importDump.php.


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