MediaWiki master
BackupReader Class Reference

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

Inherits Maintenance.

Collaboration diagram for BackupReader:

Public Member Functions

 __construct ()
 
 execute ()
 
 handleLogItem (WikiRevision $rev)
 
 handleRevision (WikiRevision $rev)
 
 handleUpload (WikiRevision $revision)
 
 reportPage ( $page)
 

Public Attributes

bool $dryRun = false
 
string false $imageBasePath = false
 
array false $nsFilter = false
 
int $pageCount = 0
 
int $reportingInterval = 100
 
int $revCount = 0
 
resource false $stderr
 
bool $uploads = false
 

Protected Attributes

callable null $importCallback
 
callable null $logItemCallback
 
float $startTime
 
callable null $uploadCallback
 
int $uploadCount = 0
 

Detailed Description

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

Definition at line 40 of file importDump.php.

Constructor & Destructor Documentation

◆ __construct()

BackupReader::__construct ( )

Definition at line 68 of file importDump.php.

Member Function Documentation

◆ execute()

BackupReader::execute ( )

Definition at line 120 of file importDump.php.

◆ handleLogItem()

BackupReader::handleLogItem ( WikiRevision $rev)
Parameters
WikiRevision$rev

Definition at line 245 of file importDump.php.

References WikiRevision\getTitle().

◆ handleRevision()

BackupReader::handleRevision ( WikiRevision $rev)
Parameters
WikiRevision$rev

Definition at line 196 of file importDump.php.

References WikiRevision\getTitle().

◆ handleUpload()

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

Definition at line 220 of file importDump.php.

References WikiRevision\getFilename(), and WikiRevision\getTitle().

◆ reportPage()

BackupReader::reportPage ( $page)

Definition at line 189 of file importDump.php.

Member Data Documentation

◆ $dryRun

bool BackupReader::$dryRun = false

Definition at line 48 of file importDump.php.

◆ $imageBasePath

string false BackupReader::$imageBasePath = false

Definition at line 54 of file importDump.php.

◆ $importCallback

callable null BackupReader::$importCallback
protected

Definition at line 60 of file importDump.php.

◆ $logItemCallback

callable null BackupReader::$logItemCallback
protected

Definition at line 62 of file importDump.php.

◆ $nsFilter

array false BackupReader::$nsFilter = false

Definition at line 56 of file importDump.php.

◆ $pageCount

int BackupReader::$pageCount = 0

Definition at line 44 of file importDump.php.

◆ $reportingInterval

int BackupReader::$reportingInterval = 100

Definition at line 42 of file importDump.php.

◆ $revCount

int BackupReader::$revCount = 0

Definition at line 46 of file importDump.php.

◆ $startTime

float BackupReader::$startTime
protected

Definition at line 66 of file importDump.php.

◆ $stderr

resource false BackupReader::$stderr

Definition at line 58 of file importDump.php.

◆ $uploadCallback

callable null BackupReader::$uploadCallback
protected

Definition at line 64 of file importDump.php.

◆ $uploadCount

int BackupReader::$uploadCount = 0
protected

Definition at line 52 of file importDump.php.

◆ $uploads

bool BackupReader::$uploads = false

Definition at line 50 of file importDump.php.


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