MediaWiki  REL1_20
PopulateRevisionLength Class Reference

Maintenance script that populates the rev_len field for old revisions created before MW 1.10. More...

Inheritance diagram for PopulateRevisionLength:
Collaboration diagram for PopulateRevisionLength:

List of all members.

Public Member Functions

 __construct ()
 Default constructor.
 doDBUpdates ()
 Do the actual work.

Protected Member Functions

 getUpdateKey ()
 Get the update key name to go in the update log table.
 updateSkippedMessage ()
 Message to show that the update was done already and was just skipped.

Detailed Description

Maintenance script that populates the rev_len field for old revisions created before MW 1.10.

Definition at line 32 of file populateRevisionLength.php.


Constructor & Destructor Documentation

Default constructor.

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

Reimplemented from LoggedUpdateMaintenance.

Definition at line 33 of file populateRevisionLength.php.

References Maintenance\setBatchSize().


Member Function Documentation

Do the actual work.

All child classes will need to implement this. Return true to log the update as done or false (usually on failure).

Returns:
Bool

Reimplemented from LoggedUpdateMaintenance.

Definition at line 47 of file populateRevisionLength.php.

References $count, $res, Maintenance\error(), Maintenance\getDB(), Maintenance\output(), Revision\selectFields(), and wfWaitForSlaves().

Get the update key name to go in the update log table.

Returns:
String

Reimplemented from LoggedUpdateMaintenance.

Definition at line 39 of file populateRevisionLength.php.

Message to show that the update was done already and was just skipped.

Returns:
String

Reimplemented from LoggedUpdateMaintenance.

Definition at line 43 of file populateRevisionLength.php.


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