MediaWiki
REL1_20
|
Maintenance script that deletes revisions which refer to a nonexisting page. More...
Public Member Functions | |
__construct () | |
Default constructor. | |
execute () | |
Do the actual work. | |
Private Member Functions | |
deleteRevs ($id, &$dbw) | |
Delete one or more revisions from the database Do this inside a transaction. |
Maintenance script that deletes revisions which refer to a nonexisting page.
Definition at line 34 of file deleteOrphanedRevisions.php.
Default constructor.
Children should call this *first* if implementing their own constructors
Reimplemented from Maintenance.
Definition at line 35 of file deleteOrphanedRevisions.php.
References Maintenance\addOption().
DeleteOrphanedRevisions::deleteRevs | ( | $ | id, |
&$ | dbw | ||
) | [private] |
Delete one or more revisions from the database Do this inside a transaction.
$id | Array of revision id values |
$dbw | DatabaseBase class (needs to be a master) |
Definition at line 85 of file deleteOrphanedRevisions.php.
Referenced by execute().
Do the actual work.
All child classes will need to implement this
Reimplemented from Maintenance.
Definition at line 41 of file deleteOrphanedRevisions.php.
References $count, $page, $res, deleteRevs(), Maintenance\hasOption(), Maintenance\output(), Maintenance\purgeRedundantText(), and wfGetDB().