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

List of all members.

Public Member Functions

 __construct ()
 Default constructor.
 execute ()
 Do the actual work.

Protected Member Functions

 processRow ($row)

Protected Attributes

 $defaultParams

Private Member Functions

 removeWatch ($row)

Detailed Description

Definition at line 34 of file cleanupWatchlist.php.


Constructor & Destructor Documentation

Default constructor.

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

Reimplemented from TableCleanup.

Definition at line 42 of file cleanupWatchlist.php.

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 TableCleanup.

Definition at line 48 of file cleanupWatchlist.php.

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

Here is the call graph for this function:

WatchlistCleanup::processRow ( row) [protected]

Definition at line 55 of file cleanupWatchlist.php.

References $title, $wgContLang, Title\makeTitle(), Title\newFromText(), Maintenance\output(), TableCleanup\progress(), and removeWatch().

Here is the call graph for this function:

WatchlistCleanup::removeWatch ( row) [private]

Definition at line 71 of file cleanupWatchlist.php.

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

Referenced by processRow().

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

WatchlistCleanup::$defaultParams [protected]
Initial value:
 array(
                'table' => 'watchlist',
                'index' => array( 'wl_user', 'wl_namespace', 'wl_title' ),
                'conds' => array(),
                'callback' => 'processRow'
        )

Reimplemented from TableCleanup.

Definition at line 35 of file cleanupWatchlist.php.


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