MediaWiki
REL1_20
|
Maintenance script that removes unused user accounts from the database. More...
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) |
Maintenance script that removes unused user accounts from the database.
Definition at line 33 of file removeUnusedAccounts.php.
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().
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)
$id | User's ID |
$master | bool Perform checking on the master |
Definition at line 98 of file removeUnusedAccounts.php.
References $count, and wfGetDB().
Referenced by execute().