MediaWiki 1.43.1
CleanupImages Class Reference

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

Inherits TableCleanup.

Collaboration diagram for CleanupImages:

Public Member Functions

 __construct ()
 
- Public Member Functions inherited from TableCleanup
 execute ()
 
 runTable ( $params)
 

Protected Member Functions

 processRow ( $row)
 
- Protected Member Functions inherited from TableCleanup
 hexChar ( $matches)
 
 init ( $count, $table)
 
 progress ( $updated)
 

Protected Attributes

 $defaultParams
 
- Protected Attributes inherited from TableCleanup
int $count
 
array $defaultParams
 
bool $dryrun = false
 
int $processed
 
int $reportInterval = 100
 
float $startTime
 
string $table
 
int $updated
 

Detailed Description

Maintenance script to clean up broken, unparseable upload filenames.

Definition at line 40 of file cleanupImages.php.

Constructor & Destructor Documentation

◆ __construct()

CleanupImages::__construct ( )

Reimplemented from TableCleanup.

Definition at line 52 of file cleanupImages.php.

Member Function Documentation

◆ processRow()

CleanupImages::processRow ( $row)
protected

Definition at line 57 of file cleanupImages.php.

References $source, NS_FILE, and TableCleanup\progress().

Member Data Documentation

◆ $defaultParams

CleanupImages::$defaultParams
protected
Initial value:
= [
'table' => 'image',
'conds' => [],
'index' => 'img_name',
'callback' => 'processRow',
]

Definition at line 42 of file cleanupImages.php.


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