MediaWiki master
|
Maintenance script that cleans up invalid titles in various tables. More...
Inherits Maintenance.
Public Member Functions | |
__construct () | |
execute () | |
Protected Member Functions | |
cleanupTable ( $tableParams) | |
Identifies, and optionally cleans up, invalid titles. | |
outputStatus ( $str, $channel=null) | |
Prints text to STDOUT, and STDERR if STDOUT was redirected to a file. | |
writeToReport ( $str) | |
Prints text to STDOUT. | |
Static Protected Member Functions | |
static | makeValidTitle ( $invalidTitle) |
Fix possible validation issues in the given title (DB key). | |
Static Protected Attributes | |
static array[] | $tables |
List of tables to clean up, and the field prefix for that table. | |
Maintenance script that cleans up invalid titles in various tables.
Definition at line 39 of file cleanupInvalidDbKeys.php.
CleanupInvalidDbKeys::__construct | ( | ) |
Definition at line 61 of file cleanupInvalidDbKeys.php.
|
protected |
Identifies, and optionally cleans up, invalid titles.
array | $tableParams | A child array of self::$tables |
Definition at line 132 of file cleanupInvalidDbKeys.php.
References $tables, DB_REPLICA, makeValidTitle(), outputStatus(), run(), and writeToReport().
Referenced by execute().
CleanupInvalidDbKeys::execute | ( | ) |
Definition at line 88 of file cleanupInvalidDbKeys.php.
References cleanupTable(), and outputStatus().
|
staticprotected |
Fix possible validation issues in the given title (DB key).
string | $invalidTitle |
Definition at line 334 of file cleanupInvalidDbKeys.php.
Referenced by cleanupTable().
|
protected |
Prints text to STDOUT, and STDERR if STDOUT was redirected to a file.
Used for progress reporting.
string | $str | Text to write to both places |
string | null | $channel | Ignored |
Definition at line 110 of file cleanupInvalidDbKeys.php.
Referenced by cleanupTable(), and execute().
|
protected |
Prints text to STDOUT.
Used for logging output.
string | $str | Text to write |
Definition at line 123 of file cleanupInvalidDbKeys.php.
Referenced by cleanupTable().
|
staticprotected |
List of tables to clean up, and the field prefix for that table.
Definition at line 41 of file cleanupInvalidDbKeys.php.
Referenced by cleanupTable().