MediaWiki  REL1_20
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 ()
 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)

Detailed Description

Maintenance script to clean up broken, unparseable upload filenames.

Definition at line 39 of file cleanupImages.php.


Constructor & Destructor Documentation

Default constructor.

Children should call this *first* if implementing their own constructors

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.

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]
Parameters:
$namestring

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().


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: