MediaWiki  REL1_20
DeleteOldRevisions Class Reference

Maintenance script that deletes old (non-current) revisions from the database. More...

Inheritance diagram for DeleteOldRevisions:
Collaboration diagram for DeleteOldRevisions:

List of all members.

Public Member Functions

 __construct ()
 Default constructor.
 doDelete ($delete=false, $args=array())
 execute ()
 Do the actual work.

Detailed Description

Maintenance script that deletes old (non-current) revisions from the database.

Definition at line 32 of file deleteOldRevisions.php.


Constructor & Destructor Documentation

Default constructor.

Children should call this *first* if implementing their own constructors

Reimplemented from Maintenance.

Definition at line 33 of file deleteOldRevisions.php.

References Maintenance\addOption().


Member Function Documentation

DeleteOldRevisions::doDelete ( delete = false,
args = array() 
)

Definition at line 45 of file deleteOldRevisions.php.

References $count, $res, Maintenance\output(), Maintenance\purgeRedundantText(), and wfGetDB().

Referenced by execute().

Do the actual work.

All child classes will need to implement this

Reimplemented from Maintenance.

Definition at line 40 of file deleteOldRevisions.php.

References doDelete(), Maintenance\hasOption(), and Maintenance\output().


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