MediaWiki
REL1_20
|
Maintenance script that scans the deletion log and purges affected files within a timeframe. More...
Public Member Functions | |
__construct () | |
Default constructor. | |
execute () | |
Do the actual work. | |
Protected Member Functions | |
purgeFromArchiveTable (LocalFile $file) | |
purgeFromLogType ($logType) |
Maintenance script that scans the deletion log and purges affected files within a timeframe.
Definition at line 32 of file purgeDeletedFiles.php.
Default constructor.
Children should call this *first* if implementing their own constructors
Reimplemented from Maintenance.
Definition at line 33 of file purgeDeletedFiles.php.
References Maintenance\addOption().
Do the actual work.
All child classes will need to implement this
Reimplemented from Maintenance.
Definition at line 40 of file purgeDeletedFiles.php.
References Maintenance\output(), and purgeFromLogType().
PurgeDeletedFiles::purgeFromArchiveTable | ( | LocalFile $ | file | ) | [protected] |
Definition at line 82 of file purgeDeletedFiles.php.
References $res, File\getName(), File\getRepo(), and LocalFile\purgeOldThumbnails().
Referenced by purgeFromLogType().
PurgeDeletedFiles::purgeFromLogType | ( | $ | logType | ) | [protected] |
Definition at line 50 of file purgeDeletedFiles.php.
References $file, $res, Maintenance\getOption(), Title\makeTitle(), Maintenance\output(), purgeFromArchiveTable(), and RepoGroup\singleton().
Referenced by execute().