MediaWiki  REL1_20
RemoveUnusedAccounts Class Reference

Maintenance script that removes unused user accounts from the database. More...

Inheritance diagram for RemoveUnusedAccounts:
Collaboration diagram for RemoveUnusedAccounts:

List of all members.

Public Member Functions

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

Private Member Functions

 isInactiveAccount ($id, $master=false)
 Could the specified user account be deemed inactive? (No edits, no deleted edits, no log entries, no current/old uploads)

Detailed Description

Maintenance script that removes unused user accounts from the database.

Definition at line 33 of file removeUnusedAccounts.php.


Constructor & Destructor Documentation

Default constructor.

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

Reimplemented from Maintenance.

Definition at line 34 of file removeUnusedAccounts.php.

References Maintenance\addOption().


Member Function Documentation

Do the actual work.

All child classes will need to implement this

Reimplemented from Maintenance.

Definition at line 41 of file removeUnusedAccounts.php.

References $count, $dbr, $res, Maintenance\error(), Maintenance\getOption(), Maintenance\hasOption(), isInactiveAccount(), User\newFromId(), Maintenance\output(), wfGetDB(), and wfTimestamp().

RemoveUnusedAccounts::isInactiveAccount ( id,
master = false 
) [private]

Could the specified user account be deemed inactive? (No edits, no deleted edits, no log entries, no current/old uploads)

Parameters:
$idUser's ID
$masterbool Perform checking on the master
Returns:
bool

Definition at line 98 of file removeUnusedAccounts.php.

References $count, and wfGetDB().

Referenced by execute().


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