MediaWiki master
|
Generic class to cleanup a database table. More...
Inherits Maintenance.
Inherited by CleanupCaps, CleanupImages, CleanupPageLang, CleanupWatchlist, and TitleCleanup.
Public Member Functions | |
__construct () | |
execute () | |
runTable ( $params) | |
Protected Member Functions | |
hexChar ( $matches) | |
init ( $count, $table) | |
progress ( $updated) | |
Protected Attributes | |
int | $count |
array | $defaultParams |
bool | $dryrun = false |
int | $processed |
int | $reportInterval = 100 |
float | $startTime |
string | $table |
int | $updated |
Generic class to cleanup a database table.
Already subclasses Maintenance.
Definition at line 35 of file TableCleanup.php.
TableCleanup::__construct | ( | ) |
Reimplemented in CleanupCaps, CleanupImages, CleanupPageLang, TitleCleanup, and CleanupWatchlist.
Definition at line 55 of file TableCleanup.php.
TableCleanup::execute | ( | ) |
Reimplemented in CleanupCaps, TitleCleanup, and CleanupWatchlist.
Definition at line 62 of file TableCleanup.php.
References runTable().
|
protected |
string[] | $matches |
Definition at line 181 of file TableCleanup.php.
References $matches.
|
protected |
Definition at line 76 of file TableCleanup.php.
References $count, and $table.
Referenced by runTable().
|
protected |
int | $updated |
Definition at line 87 of file TableCleanup.php.
References $count, $processed, $startTime, $updated, and wfTimestamp().
Referenced by CleanupImages\processRow(), CleanupPageLang\processRow(), TitleCleanup\processRow(), CleanupWatchlist\processRow(), CleanupCaps\processRowToLowercase(), and CleanupCaps\processRowToUppercase().
TableCleanup::runTable | ( | $params | ) |
array | $params |
Definition at line 120 of file TableCleanup.php.
References $count, $params, $table, and init().
Referenced by CleanupCaps\execute(), and execute().
|
protected |
Definition at line 51 of file TableCleanup.php.
Referenced by init(), progress(), and runTable().
|
protected |
Definition at line 37 of file TableCleanup.php.
|
protected |
Definition at line 45 of file TableCleanup.php.
|
protected |
Definition at line 49 of file TableCleanup.php.
Referenced by progress().
|
protected |
Definition at line 47 of file TableCleanup.php.
|
protected |
Definition at line 52 of file TableCleanup.php.
Referenced by progress().
|
protected |
Definition at line 53 of file TableCleanup.php.
Referenced by init(), and runTable().
|
protected |
Definition at line 50 of file TableCleanup.php.
Referenced by CleanupWatchlist\processRow(), and progress().