MediaWiki  REL1_19
ImageCleanup Class Reference
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

Definition at line 34 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 42 of file cleanupImages.php.


Member Function Documentation

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

Definition at line 189 of file cleanupImages.php.

Referenced by pokeFile().

Here is the caller graph for this function:

ImageCleanup::buildSafeTitle ( name) [private]

Definition at line 194 of file cleanupImages.php.

References $test, $wgLegalTitleChars, Maintenance\error(), and Title\makeTitleSafe().

Referenced by processRow().

Here is the call graph for this function:

Here is the caller graph for this function:

ImageCleanup::filePath ( name) [private]

Definition at line 108 of file cleanupImages.php.

References RepoGroup\singleton().

Referenced by pokeFile().

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 115 of file cleanupImages.php.

Referenced by pokeFile().

Here is the caller graph for this function:

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

Definition at line 96 of file cleanupImages.php.

References Maintenance\output(), and wfGetDB().

Referenced by pokeFile(), and processRow().

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 119 of file cleanupImages.php.

Referenced by pokeFile().

Here is the caller graph for this function:

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

Here is the call graph for this function:

Here is the caller graph for this function:

ImageCleanup::processRow ( row) [protected]

Member Data Documentation

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

Reimplemented from TableCleanup.

Definition at line 35 of file cleanupImages.php.


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