Public Member Functions | |
| __construct (File $file, $reason= '', $suppress=false) | |
| addCurrent () | |
| addOld ($oldName) | |
| getOldRels () | |
| getHashes () | |
| doDBInserts () | |
| doDBDeletes () | |
| execute () | |
| Run the transaction. | |
| removeNonexistentFiles ($batch) | |
| Removes non-existent files from a deletion batch. | |
Public Attributes | |
| $file | |
| $reason | |
| $srcRels = array() | |
| $archiveUrls = array() | |
| $deletionBatch | |
| $suppress | |
| $status | |
Definition at line 1214 of file LocalFile.php.
| LocalFileDeleteBatch::__construct | ( | File $ | file, | |
| $ | reason = '', |
|||
| $ | suppress = false | |||
| ) |
Definition at line 1218 of file LocalFile.php.
| LocalFileDeleteBatch::addCurrent | ( | ) |
Definition at line 1225 of file LocalFile.php.
| LocalFileDeleteBatch::addOld | ( | $ | oldName | ) |
Definition at line 1229 of file LocalFile.php.
| LocalFileDeleteBatch::doDBDeletes | ( | ) |
Definition at line 1377 of file LocalFile.php.
References $dbw, and getOldRels().
Referenced by execute().
| LocalFileDeleteBatch::doDBInserts | ( | ) |
Definition at line 1291 of file LocalFile.php.
References $dbw, $ext, $wgUser, Revision::DELETED_COMMENT, Revision::DELETED_RESTRICTED, Revision::DELETED_TEXT, Revision::DELETED_USER, and getOldRels().
Referenced by execute().
| LocalFileDeleteBatch::execute | ( | ) |
Run the transaction.
Definition at line 1395 of file LocalFile.php.
References $dbw, $ext, $hashes, $name, $res, $status, $urls, $wgUseSquid, File::DELETED_FILE, doDBDeletes(), doDBInserts(), getHashes(), getOldRels(), SquidUpdate::purge(), removeNonexistentFiles(), wfProfileIn(), and wfProfileOut().
| LocalFileDeleteBatch::getHashes | ( | ) |
Definition at line 1246 of file LocalFile.php.
References $dbw, $hashes, $name, $res, and getOldRels().
Referenced by execute().
| LocalFileDeleteBatch::getOldRels | ( | ) |
Definition at line 1234 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 1479 of file LocalFile.php.
References $files, $result, $src, and FileRepo::FILES_ONLY.
Referenced by execute().
| LocalFileDeleteBatch::$archiveUrls = array() |
Definition at line 1215 of file LocalFile.php.
| LocalFileDeleteBatch::$deletionBatch |
Definition at line 1215 of file LocalFile.php.
| LocalFileDeleteBatch::$file |
Definition at line 1215 of file LocalFile.php.
| LocalFileDeleteBatch::$reason |
Definition at line 1215 of file LocalFile.php.
| LocalFileDeleteBatch::$srcRels = array() |
Definition at line 1215 of file LocalFile.php.
| LocalFileDeleteBatch::$status |
| LocalFileDeleteBatch::$suppress |
Definition at line 1215 of file LocalFile.php.
1.5.9