MediaWiki  REL1_22
LoggedUpdateMaintenance Class Reference

Class for scripts that perform database maintenance and want to log the update in `updatelog` so we can later skip it. More...

Inheritance diagram for LoggedUpdateMaintenance:
Collaboration diagram for LoggedUpdateMaintenance:

List of all members.

Public Member Functions

 __construct ()
 execute ()

Protected Member Functions

 doDBUpdates ()
 Do the actual work.
 getUpdateKey ()
 Get the update key name to go in the update log table.
 updatelogFailedMessage ()
 Message to show the the update log was unable to log the completion of this update.
 updateSkippedMessage ()
 Message to show that the update was done already and was just skipped.

Detailed Description

Class for scripts that perform database maintenance and want to log the update in `updatelog` so we can later skip it.

Definition at line 1263 of file Maintenance.php.


Constructor & Destructor Documentation


Member Function Documentation

LoggedUpdateMaintenance::doDBUpdates ( ) [abstract, protected]

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 in PopulateImageSha1, PopulateLogSearch, PopulateLogUsertext, FixExtLinksProtocolRelative, PopulateParentId, PopulateRevisionLength, PopulateFilearchiveSha1, and PopulateRevisionSha1.

Reimplemented from Maintenance.

Reimplemented in PopulateImageSha1.

Definition at line 1270 of file Maintenance.php.

LoggedUpdateMaintenance::getUpdateKey ( ) [abstract, protected]

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

Returns:
String

Reimplemented in PopulateLogSearch, PopulateLogUsertext, PopulateImageSha1, FixExtLinksProtocolRelative, PopulateParentId, PopulateRevisionSha1, PopulateRevisionLength, and PopulateFilearchiveSha1.

Message to show the the update log was unable to log the completion of this update.

Returns:
String

Definition at line 1308 of file Maintenance.php.

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

Returns:
String

Reimplemented in PopulateLogSearch, PopulateLogUsertext, PopulateImageSha1, FixExtLinksProtocolRelative, PopulateParentId, PopulateRevisionLength, and PopulateFilearchiveSha1.

Definition at line 1299 of file Maintenance.php.


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