MediaWiki  REL1_22
ImageCleanup Class Reference

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

Inheritance diagram for ImageCleanup:
Collaboration diagram for ImageCleanup:

List of all members.

Public Member Functions

 __construct ()

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)

Detailed Description

Maintenance script to clean up broken, unparseable upload filenames.

Definition at line 39 of file cleanupImages.php.


Constructor & Destructor Documentation

Reimplemented from TableCleanup.

Definition at line 47 of file cleanupImages.php.


Member Function Documentation

ImageCleanup::appendTitle ( name,
suffix 
) [private]

Definition at line 194 of file cleanupImages.php.

References $name.

Referenced by pokeFile().

ImageCleanup::buildSafeTitle ( name) [private]

Definition at line 199 of file cleanupImages.php.

References $name, $test, array(), Maintenance\error(), Title\legalChars(), and Title\makeTitleSafe().

Referenced by processRow().

ImageCleanup::filePath ( name) [private]

Definition at line 113 of file cleanupImages.php.

References $name, and RepoGroup\singleton().

Referenced by pokeFile().

ImageCleanup::imageExists ( name,
db 
) [private]

Definition at line 120 of file cleanupImages.php.

References $name, and array().

Referenced by pokeFile().

ImageCleanup::killRow ( name) [private]
Parameters:
$namestring

Definition at line 101 of file cleanupImages.php.

References $name, array(), Maintenance\output(), and wfGetDB().

Referenced by pokeFile(), and processRow().

ImageCleanup::pageExists ( name,
db 
) [private]

Definition at line 124 of file cleanupImages.php.

References $name, and array().

Referenced by pokeFile().


Member Data Documentation

ImageCleanup::$defaultParams [protected]
Initial value:
 array(
        'table' => 'image',
        'conds' => array(),
        'index' => 'img_name',
        'callback' => 'processRow',
    )

Reimplemented from TableCleanup.

Definition at line 40 of file cleanupImages.php.


The documentation for this class was generated from the following file: