MediaWiki
REL1_22
|
Maintenance script that looks for 'orphan' revisions hooked to pages which don't exist and 'childless' pages with no revisions. More...
Public Member Functions | |
__construct () | |
execute () | |
Private Member Functions | |
checkOrphans ($fix) | |
Check for orphan revisions. | |
checkSeparation ($fix) | |
Check for pages where page_latest is wrong. | |
checkWidows ($fix) | |
lockTables ($db, $extraTable=array()) | |
Lock the appropriate tables for the script. |
Maintenance script that looks for 'orphan' revisions hooked to pages which don't exist and 'childless' pages with no revisions.
Definition at line 39 of file orphans.php.
Reimplemented from Maintenance.
Definition at line 40 of file orphans.php.
References Maintenance\addOption().
Orphans::checkOrphans | ( | $ | fix | ) | [private] |
Check for orphan revisions.
$fix | bool Whether to fix broken revisions when found |
Definition at line 75 of file orphans.php.
References $comment, $result, $wgContLang, array(), as, global, lockTables(), Maintenance\output(), and wfGetDB().
Referenced by execute().
Orphans::checkSeparation | ( | $ | fix | ) | [private] |
Check for pages where page_latest is wrong.
$fix | bool Whether to fix broken entries |
Definition at line 172 of file orphans.php.
References $article, $result, $title, array(), as, WikiPage\factory(), lockTables(), Title\makeTitle(), Revision\newFromId(), Maintenance\output(), and wfGetDB().
Referenced by execute().
Orphans::checkWidows | ( | $ | fix | ) | [private] |
$fix | bool |
Definition at line 127 of file orphans.php.
References $result, array(), as, lockTables(), Maintenance\output(), and wfGetDB().
Orphans::execute | ( | ) |
Reimplemented from Maintenance.
Definition at line 49 of file orphans.php.
References $wgTitle, checkOrphans(), checkSeparation(), global, Maintenance\hasOption(), and Title\newFromText().
Orphans::lockTables | ( | $ | db, |
$ | extraTable = array() |
||
) | [private] |
Lock the appropriate tables for the script.
$db | DatabaseBase object |
$extraTable | String The name of any extra tables to lock (eg: text) |
Definition at line 63 of file orphans.php.
References array().
Referenced by checkOrphans(), checkSeparation(), and checkWidows().