Public Member Functions | |
__construct () | |
Default constructor. | |
Protected Member Functions | |
processRow ($row) | |
Protected Attributes | |
$defaultParams | |
Private Member Functions | |
killRow ($name) | |
filePath ($name) | |
imageExists ($name, $db) | |
pageExists ($name, $db) | |
pokeFile ($orig, $new) | |
appendTitle ($name, $suffix) | |
buildSafeTitle ($name) |
Definition at line 33 of file cleanupImages.php.
ImageCleanup::__construct | ( | ) |
Default constructor.
Children should call this if implementing their own constructors
Reimplemented from TableCleanup.
Definition at line 41 of file cleanupImages.php.
ImageCleanup::appendTitle | ( | $ | name, | |
$ | suffix | |||
) | [private] |
ImageCleanup::buildSafeTitle | ( | $ | name | ) | [private] |
Definition at line 188 of file cleanupImages.php.
References $name, $test, $wgLegalTitleChars, Maintenance::error(), and Title::makeTitleSafe().
Referenced by processRow().
ImageCleanup::filePath | ( | $ | name | ) | [private] |
Definition at line 103 of file cleanupImages.php.
References $name, and RepoGroup::singleton().
Referenced by pokeFile().
ImageCleanup::imageExists | ( | $ | name, | |
$ | db | |||
) | [private] |
ImageCleanup::killRow | ( | $ | name | ) | [private] |
Definition at line 91 of file cleanupImages.php.
References $name, Maintenance::output(), and wfGetDB().
Referenced by pokeFile(), and processRow().
ImageCleanup::pageExists | ( | $ | name, | |
$ | db | |||
) | [private] |
ImageCleanup::pokeFile | ( | $ | orig, | |
$ | new | |||
) | [private] |
Definition at line 118 of file cleanupImages.php.
References $path, $version, appendTitle(), Maintenance::error(), filePath(), imageExists(), killRow(), Maintenance::output(), pageExists(), wfGetDB(), and wfMkdirParents().
Referenced by processRow().
ImageCleanup::processRow | ( | $ | row | ) | [protected] |
Definition at line 46 of file cleanupImages.php.
References $title, $wgContLang, buildSafeTitle(), Sanitizer::decodeCharReferences(), killRow(), Title::makeTitleSafe(), Maintenance::output(), pokeFile(), and TableCleanup::progress().
ImageCleanup::$defaultParams [protected] |
Initial value:
array( 'table' => 'image', 'conds' => array(), 'index' => 'img_name', 'callback' => 'processRow', )
Reimplemented from TableCleanup.
Definition at line 34 of file cleanupImages.php.