|
MediaWiki
REL1_19
|
Helper class for file deletion. More...
Public Member Functions | |
| __construct (File $file, $reason= '', $suppress=false) | |
| addCurrent () | |
| addOld ($oldName) | |
| doDBDeletes () | |
| doDBInserts () | |
| execute () | |
| Run the transaction. | |
| getOldRels () | |
| removeNonexistentFiles ($batch) | |
| Removes non-existent files from a deletion batch. | |
Public Attributes | |
| $archiveUrls = array() | |
| $deletionBatch | |
| $file | |
| $reason | |
| $srcRels = array() | |
| $status | |
| $suppress | |
Protected Member Functions | |
| getHashes () | |
Helper class for file deletion.
Definition at line 1460 of file LocalFile.php.
| LocalFileDeleteBatch::__construct | ( | File $ | file, |
| $ | reason = '', |
||
| $ | suppress = false |
||
| ) |
Definition at line 1470 of file LocalFile.php.
Definition at line 1477 of file LocalFile.php.
| LocalFileDeleteBatch::addOld | ( | $ | oldName | ) |
Definition at line 1481 of file LocalFile.php.
Definition at line 1641 of file LocalFile.php.
References getOldRels().
Referenced by execute().


Definition at line 1554 of file LocalFile.php.
References $ext, $wgUser, Revision\DELETED_COMMENT, Revision\DELETED_RESTRICTED, Revision\DELETED_TEXT, Revision\DELETED_USER, and getOldRels().
Referenced by execute().


Run the transaction.
Definition at line 1661 of file LocalFile.php.
References $ext, $hashes, $res, $status, $urls, $wgUseSquid, File\DELETED_FILE, doDBDeletes(), doDBInserts(), getHashes(), getOldRels(), SquidUpdate\purge(), removeNonexistentFiles(), wfProfileIn(), and wfProfileOut().

| LocalFileDeleteBatch::getHashes | ( | ) | [protected] |
Definition at line 1499 of file LocalFile.php.
References $hashes, $res, and getOldRels().
Referenced by execute().


Definition at line 1486 of file LocalFile.php.
Referenced by doDBDeletes(), doDBInserts(), execute(), and getHashes().

| LocalFileDeleteBatch::removeNonexistentFiles | ( | $ | batch | ) |
Removes non-existent files from a deletion batch.
Definition at line 1751 of file LocalFile.php.
References $files, $result, and FileRepo\FILES_ONLY.
Referenced by execute().

| LocalFileDeleteBatch::$archiveUrls = array() |
Definition at line 1467 of file LocalFile.php.
| LocalFileDeleteBatch::$deletionBatch |
Definition at line 1467 of file LocalFile.php.
| LocalFileDeleteBatch::$file |
Definition at line 1465 of file LocalFile.php.
Referenced by __construct().
| LocalFileDeleteBatch::$reason |
Definition at line 1467 of file LocalFile.php.
Referenced by __construct().
| LocalFileDeleteBatch::$srcRels = array() |
Definition at line 1467 of file LocalFile.php.
| LocalFileDeleteBatch::$status |
Definition at line 1468 of file LocalFile.php.
Referenced by execute().
| LocalFileDeleteBatch::$suppress |
Definition at line 1467 of file LocalFile.php.
Referenced by __construct().