|
MediaWiki
REL1_19
|


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) | |
Definition at line 34 of file cleanupImages.php.
Default constructor.
Children should call this *first* if implementing their own constructors
Reimplemented from TableCleanup.
Definition at line 42 of file cleanupImages.php.
| ImageCleanup::appendTitle | ( | $ | name, |
| $ | suffix | ||
| ) | [private] |
Definition at line 189 of file cleanupImages.php.
Referenced by pokeFile().

| ImageCleanup::buildSafeTitle | ( | $ | name | ) | [private] |
Definition at line 194 of file cleanupImages.php.
References $test, $wgLegalTitleChars, Maintenance\error(), and Title\makeTitleSafe().
Referenced by processRow().


| ImageCleanup::filePath | ( | $ | name | ) | [private] |
Definition at line 108 of file cleanupImages.php.
References RepoGroup\singleton().
Referenced by pokeFile().


| ImageCleanup::imageExists | ( | $ | name, |
| $ | db | ||
| ) | [private] |
Definition at line 115 of file cleanupImages.php.
Referenced by pokeFile().

| ImageCleanup::killRow | ( | $ | name | ) | [private] |
| $name | string |
Definition at line 96 of file cleanupImages.php.
References Maintenance\output(), and wfGetDB().
Referenced by pokeFile(), and processRow().


| ImageCleanup::pageExists | ( | $ | name, |
| $ | db | ||
| ) | [private] |
Definition at line 119 of file cleanupImages.php.
Referenced by pokeFile().

| ImageCleanup::pokeFile | ( | $ | orig, |
| $ | new | ||
| ) | [private] |
Definition at line 123 of file cleanupImages.php.
References $dir, $path, $version, appendTitle(), Maintenance\error(), filePath(), imageExists(), killRow(), Maintenance\output(), pageExists(), wfGetDB(), and wfMkdirParents().
Referenced by processRow().


| ImageCleanup::processRow | ( | $ | row | ) | [protected] |
Definition at line 47 of file cleanupImages.php.
References $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 35 of file cleanupImages.php.