MediaWiki  REL1_20
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 ()
 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.

Detailed Description

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

Definition at line 34 of file deleteOrphanedRevisions.php.


Constructor & Destructor Documentation

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().


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 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().


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