MediaWiki
REL1_22
|
Maintenance script that scans the deletion log and purges affected files within a timeframe. More...
Public Member Functions | |
__construct () | |
execute () | |
Protected Member Functions | |
getDeletedPath (LocalRepo $repo, LocalFile $file) | |
purgeFromArchiveTable (LocalRepo $repo, LocalFile $file) | |
purgeFromLogType ($type) | |
Purge cache and thumbnails for changes of the given type. | |
verbose ($msg) | |
Send an output message iff the 'verbose' option has been provided. | |
Private Attributes | |
string | $endTimestamp |
string | $startTimestamp |
Static Private Attributes | |
static | $typeMappings |
Maintenance script that scans the deletion log and purges affected files within a timeframe.
Definition at line 33 of file purgeChangedFiles.php.
Reimplemented from Maintenance.
Definition at line 61 of file purgeChangedFiles.php.
References Maintenance\addOption().
Reimplemented from Maintenance.
Definition at line 73 of file purgeChangedFiles.php.
PurgeChangedFiles::getDeletedPath | ( | LocalRepo $ | repo, |
LocalFile $ | file | ||
) | [protected] |
Definition at line 233 of file purgeChangedFiles.php.
PurgeChangedFiles::purgeFromArchiveTable | ( | LocalRepo $ | repo, |
LocalFile $ | file | ||
) | [protected] |
Definition at line 202 of file purgeChangedFiles.php.
PurgeChangedFiles::purgeFromLogType | ( | $ | type | ) | [protected] |
Purge cache and thumbnails for changes of the given type.
string | $type | Type of change to find |
Definition at line 135 of file purgeChangedFiles.php.
PurgeChangedFiles::verbose | ( | $ | msg | ) | [protected] |
Send an output message iff the 'verbose' option has been provided.
string | $msg | Message to output |
Definition at line 244 of file purgeChangedFiles.php.
string PurgeChangedFiles::$endTimestamp [private] |
Definition at line 59 of file purgeChangedFiles.php.
string PurgeChangedFiles::$startTimestamp [private] |
Definition at line 55 of file purgeChangedFiles.php.
PurgeChangedFiles::$typeMappings [static, private] |
array( 'created' => array( 'upload' => array( 'upload' ), 'import' => array( 'upload', 'interwiki' ), ), 'deleted' => array( 'delete' => array( 'delete', 'revision' ), 'suppress' => array( 'delete', 'revision' ), ), 'modified' => array( 'upload' => array( 'overwrite', 'revert' ), 'move' => array( 'move', 'move_redir' ), ), )
Definition at line 38 of file purgeChangedFiles.php.