MediaWiki
REL1_24
|
Maintenance script to populate the rc_source field. More...
Public Member Functions | |
__construct () | |
Protected Member Functions | |
buildUpdateCondition (DatabaseBase $dbw) | |
doDBUpdates () | |
Do the actual work. | |
getUpdateKey () | |
Get the update key name to go in the update log table. |
Maintenance script to populate the rc_source field.
Definition at line 32 of file populateRecentChangesSource.php.
Reimplemented from LoggedUpdateMaintenance.
Definition at line 33 of file populateRecentChangesSource.php.
References Maintenance\setBatchSize().
PopulateRecentChangesSource::buildUpdateCondition | ( | DatabaseBase $ | dbw | ) | [protected] |
Definition at line 86 of file populateRecentChangesSource.php.
References DatabaseBase\addQuotes(), RecentChange\SRC_EDIT, RecentChange\SRC_EXTERNAL, RecentChange\SRC_LOG, and RecentChange\SRC_NEW.
Referenced by doDBUpdates().
PopulateRecentChangesSource::doDBUpdates | ( | ) | [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).
Reimplemented from LoggedUpdateMaintenance.
Definition at line 40 of file populateRecentChangesSource.php.
References array(), buildUpdateCondition(), Maintenance\error(), Maintenance\getDB(), Maintenance\output(), and wfWaitForSlaves().
PopulateRecentChangesSource::getUpdateKey | ( | ) | [protected] |
Get the update key name to go in the update log table.
Reimplemented from LoggedUpdateMaintenance.
Definition at line 82 of file populateRecentChangesSource.php.