MediaWiki  REL1_22
DeleteOrphanedRevisions Class Reference

Maintenance script that deletes revisions which refer to a nonexisting page. More...

Inheritance diagram for DeleteOrphanedRevisions:
Collaboration diagram for DeleteOrphanedRevisions:

List of all members.

Public Member Functions

 __construct ()
 execute ()

Private Member Functions

 deleteRevs ($id, &$dbw)
 Delete one or more revisions from the database Do this inside a transaction.

Detailed Description

Maintenance script that deletes revisions which refer to a nonexisting page.

Definition at line 34 of file deleteOrphanedRevisions.php.


Constructor & Destructor Documentation

Reimplemented from Maintenance.

Definition at line 35 of file deleteOrphanedRevisions.php.

References Maintenance\addOption().


Member Function Documentation

DeleteOrphanedRevisions::deleteRevs ( id,
&$  dbw 
) [private]

Delete one or more revisions from the database Do this inside a transaction.

Parameters:
$idArray of revision id values
$dbwDatabaseBase class (needs to be a master)

Definition at line 86 of file deleteOrphanedRevisions.php.

References array().

Referenced by execute().


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