|
MediaWiki
REL1_20
|
Maintenance script to clean up broken, unparseable upload filenames. More...


Public Member Functions | |
| __construct () | |
| Default constructor. | |
Protected Member Functions | |
| processRow ($row) | |
Protected Attributes | |
| $defaultParams | |
Private Member Functions | |
| appendTitle ($name, $suffix) | |
| buildSafeTitle ($name) | |
| filePath ($name) | |
| imageExists ($name, $db) | |
| killRow ($name) | |
| pageExists ($name, $db) | |
| pokeFile ($orig, $new) | |
Maintenance script to clean up broken, unparseable upload filenames.
Definition at line 39 of file cleanupImages.php.
Default constructor.
Children should call this *first* if implementing their own constructors
Reimplemented from TableCleanup.
Definition at line 47 of file cleanupImages.php.
| ImageCleanup::appendTitle | ( | $ | name, |
| $ | suffix | ||
| ) | [private] |
Definition at line 194 of file cleanupImages.php.
Referenced by pokeFile().
| ImageCleanup::buildSafeTitle | ( | $ | name | ) | [private] |
Definition at line 199 of file cleanupImages.php.
References $test, Maintenance\error(), Title\legalChars(), and Title\makeTitleSafe().
Referenced by processRow().
| ImageCleanup::filePath | ( | $ | name | ) | [private] |
Definition at line 113 of file cleanupImages.php.
References RepoGroup\singleton().
Referenced by pokeFile().
| ImageCleanup::imageExists | ( | $ | name, |
| $ | db | ||
| ) | [private] |
Definition at line 120 of file cleanupImages.php.
Referenced by pokeFile().
| ImageCleanup::killRow | ( | $ | name | ) | [private] |
| $name | string |
Definition at line 101 of file cleanupImages.php.
References Maintenance\output(), and wfGetDB().
Referenced by pokeFile(), and processRow().
| ImageCleanup::pageExists | ( | $ | name, |
| $ | db | ||
| ) | [private] |
Definition at line 124 of file cleanupImages.php.
Referenced by pokeFile().
| ImageCleanup::pokeFile | ( | $ | orig, |
| $ | new | ||
| ) | [private] |
Definition at line 128 of file cleanupImages.php.
References $dir, $path, appendTitle(), Maintenance\error(), filePath(), imageExists(), killRow(), Maintenance\output(), pageExists(), wfGetDB(), and wfMkdirParents().
Referenced by processRow().
| ImageCleanup::processRow | ( | $ | row | ) | [protected] |
Definition at line 52 of file cleanupImages.php.
References $source, $title, $wgContLang, buildSafeTitle(), Sanitizer\decodeCharReferences(), killRow(), Title\makeTitleSafe(), Maintenance\output(), pokeFile(), and TableCleanup\progress().
ImageCleanup::$defaultParams [protected] |
array(
'table' => 'image',
'conds' => array(),
'index' => 'img_name',
'callback' => 'processRow',
)
Reimplemented from TableCleanup.
Definition at line 40 of file cleanupImages.php.