MediaWiki  REL1_22
PurgeChangedFiles Class Reference

Maintenance script that scans the deletion log and purges affected files within a timeframe. More...

Inheritance diagram for PurgeChangedFiles:
Collaboration diagram for PurgeChangedFiles:

List of all members.

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

Detailed Description

Maintenance script that scans the deletion log and purges affected files within a timeframe.

Definition at line 33 of file purgeChangedFiles.php.


Constructor & Destructor Documentation

Reimplemented from Maintenance.

Definition at line 61 of file purgeChangedFiles.php.

References Maintenance\addOption().


Member Function Documentation

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.

Parameters:
string$typeType 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.

Parameters:
string$msgMessage to output

Definition at line 244 of file purgeChangedFiles.php.


Member Data Documentation

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]
Initial value:
 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.


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