MediaWiki  REL1_19
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 ()
 Default constructor.
 execute ()
 Do the actual work.

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 1264 of file Maintenance.php.


Constructor & Destructor Documentation

Default constructor.

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

Reimplemented from Maintenance.

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

Definition at line 1265 of file Maintenance.php.

References Maintenance\addOption(), and Maintenance\setBatchSize().

Here is the call graph for this function:


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, and PopulateRevisionSha1.

Referenced by execute().

Here is the caller graph for this function:

Do the actual work.

All child classes will need to implement this

Reimplemented from Maintenance.

Reimplemented in PopulateImageSha1.

Definition at line 1271 of file Maintenance.php.

References doDBUpdates(), Maintenance\getDB(), getUpdateKey(), Maintenance\hasOption(), Maintenance\output(), updatelogFailedMessage(), and updateSkippedMessage().

Here is the call graph for this function:

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, and PopulateRevisionLength.

Referenced by execute(), updatelogFailedMessage(), and updateSkippedMessage().

Here is the caller graph for this function:

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

Returns:
String

Definition at line 1309 of file Maintenance.php.

References getUpdateKey().

Referenced by execute().

Here is the call graph for this function:

Here is the caller graph for this function:

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

Returns:
String

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

Definition at line 1300 of file Maintenance.php.

References getUpdateKey().

Referenced by execute().

Here is the call graph for this function:

Here is the caller graph for this function:


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