|
MediaWiki REL1_39
|
Helper class for file deletion. More...
Public Member Functions | |
| __construct (File $file, UserIdentity $user, $reason='', $suppress=false) | |
| addCurrent () | |
| addOld ( $oldName) | |
| addOlds () | |
| Add the old versions of the image to the batch. | |
| execute () | |
| Run the transaction. | |
Protected Member Functions | |
| doDBInserts () | |
| getHashes (StatusValue $status) | |
| getOldRels () | |
| removeNonexistentFiles ( $batch) | |
| Removes non-existent files from a deletion batch. | |
Helper class for file deletion.
Definition at line 32 of file LocalFileDeleteBatch.php.
| LocalFileDeleteBatch::__construct | ( | File | $file, |
| UserIdentity | $user, | ||
| $reason = '', | |||
| $suppress = false ) |
| File | $file | |
| UserIdentity | $user | |
| string | $reason | |
| bool | $suppress |
Definition at line 60 of file LocalFileDeleteBatch.php.
References $file.
| LocalFileDeleteBatch::addCurrent | ( | ) |
Definition at line 72 of file LocalFileDeleteBatch.php.
| LocalFileDeleteBatch::addOld | ( | $oldName | ) |
| string | $oldName |
Definition at line 79 of file LocalFileDeleteBatch.php.
Referenced by addOlds().
| LocalFileDeleteBatch::addOlds | ( | ) |
Add the old versions of the image to the batch.
Definition at line 88 of file LocalFileDeleteBatch.php.
References addOld().
|
protected |
Definition at line 182 of file LocalFileDeleteBatch.php.
| LocalFileDeleteBatch::execute | ( | ) |
Run the transaction.
Definition at line 312 of file LocalFileDeleteBatch.php.
References $ext, $hashes, and StatusValue\newGood().
|
protected |
| StatusValue | $status | To add error messages to |
Definition at line 126 of file LocalFileDeleteBatch.php.
|
protected |
Definition at line 109 of file LocalFileDeleteBatch.php.
|
protected |
Removes non-existent files from a deletion batch.
| array[] | $batch |
Definition at line 385 of file LocalFileDeleteBatch.php.