MediaWiki  REL1_19
TableCleanup Class Reference
Inheritance diagram for TableCleanup:
Collaboration diagram for TableCleanup:

List of all members.

Public Member Functions

 __construct ()
 Default constructor.
 execute ()
 Do the actual work.
 runTable ($params)

Public Attributes

 $batchSize = 100
 $reportInterval = 100

Protected Member Functions

 hexChar ($matches)
 init ($count, $table)
 progress ($updated)

Protected Attributes

 $defaultParams
 $dryrun = false
 $maxLag = 10

Detailed Description

Definition at line 26 of file cleanupTable.inc.


Constructor & Destructor Documentation

Default constructor.

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

Reimplemented from Maintenance.

Reimplemented in ImageCleanup, WatchlistCleanup, CapsCleanup, and TitleCleanup.

Definition at line 39 of file cleanupTable.inc.

References Maintenance\addOption().

Here is the call graph for this function:


Member Function Documentation

Do the actual work.

All child classes will need to implement this

Reimplemented from Maintenance.

Reimplemented in WatchlistCleanup, and CapsCleanup.

Definition at line 44 of file cleanupTable.inc.

References $wgUser, Maintenance\hasOption(), User\newFromName(), Maintenance\output(), and runTable().

Here is the call graph for this function:

TableCleanup::hexChar ( matches) [protected]

Definition at line 154 of file cleanupTable.inc.

References $matches.

TableCleanup::init ( count,
table 
) [protected]

Definition at line 56 of file cleanupTable.inc.

References $count, and wfTime().

Referenced by runTable().

Here is the call graph for this function:

Here is the caller graph for this function:

TableCleanup::progress ( updated) [protected]

Definition at line 64 of file cleanupTable.inc.

References Maintenance\output(), wfTime(), wfTimestamp(), and wfWikiID().

Referenced by TitleCleanup\processRow(), ImageCleanup\processRow(), WatchlistCleanup\processRow(), CapsCleanup\processRow(), and TableCleanupTest\processRow().

Here is the call graph for this function:

Here is the caller graph for this function:

TableCleanup::runTable ( params)

Definition at line 94 of file cleanupTable.inc.

References $count, $dbr, $options, $res, init(), Maintenance\output(), and wfGetDB().

Referenced by CapsCleanup\execute(), and execute().

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

TableCleanup::$batchSize = 100

Definition at line 36 of file cleanupTable.inc.

TableCleanup::$defaultParams [protected]
Initial value:
 array(
                'table' => 'page',
                'conds' => array(),
                'index' => 'page_id',
                'callback' => 'processRow',
        )

Reimplemented in ImageCleanup, and WatchlistCleanup.

Definition at line 27 of file cleanupTable.inc.

TableCleanup::$dryrun = false [protected]

Definition at line 34 of file cleanupTable.inc.

TableCleanup::$maxLag = 10 [protected]

Definition at line 35 of file cleanupTable.inc.

TableCleanup::$reportInterval = 100

Definition at line 37 of file cleanupTable.inc.


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