MediaWiki  REL1_22
PreprocessDump Class Reference

Maintenance script that takes page text out of an XML dump file and preprocesses it to obj. More...

Inheritance diagram for PreprocessDump:
Collaboration diagram for PreprocessDump:

List of all members.

Public Member Functions

 __construct ()
 checkOptions ()
 getDbType ()
 Does the script need different DB access? By default, we give Maintenance scripts normal rights to the DB.
 getStripList ()
 processRevision ($rev)
 Callback function for each revision, preprocessToObj()

Public Attributes

 $mPPNodeCount = 0
 $mTitle = 'PreprocessDump'

Detailed Description

Maintenance script that takes page text out of an XML dump file and preprocesses it to obj.

Definition at line 36 of file preprocessDump.php.


Constructor & Destructor Documentation

Reimplemented from DumpIterator.

Definition at line 47 of file preprocessDump.php.

References Maintenance\addOption().


Member Function Documentation

Does the script need different DB access? By default, we give Maintenance scripts normal rights to the DB.

Sometimes, a script needs admin rights access for a reason and sometimes they want no access. Subclasses should override and return one of the following values, as needed: Maintenance::DB_NONE - For no DB access at all Maintenance::DB_STD - For normal DB access, default Maintenance::DB_ADMIN - For admin DB access

Returns:
Integer

Reimplemented from Maintenance.

Definition at line 53 of file preprocessDump.php.

References Maintenance\DB_NONE.

Definition at line 42 of file preprocessDump.php.

References $wgParser, and global.

Callback function for each revision, preprocessToObj()

Parameters:
$revRevision

Reimplemented from DumpIterator.

Definition at line 80 of file preprocessDump.php.

References $rev, Maintenance\error(), and Revision\RAW.


Member Data Documentation

PreprocessDump::$mPPNodeCount = 0

Definition at line 40 of file preprocessDump.php.

PreprocessDump::$mTitle = 'PreprocessDump'

Definition at line 39 of file preprocessDump.php.


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