|
MediaWiki master
|
Helper class for file deletion. More...
Public Member Functions | |
| __construct (LocalFile $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 23 of file LocalFileDeleteBatch.php.
| MediaWiki\FileRepo\File\LocalFileDeleteBatch::__construct | ( | LocalFile | $file, |
| UserIdentity | $user, | ||
| $reason = '', | |||
| $suppress = false ) |
| LocalFile | $file | |
| UserIdentity | $user | |
| string | $reason | |
| bool | $suppress |
Definition at line 51 of file LocalFileDeleteBatch.php.
| MediaWiki\FileRepo\File\LocalFileDeleteBatch::addCurrent | ( | ) |
Definition at line 63 of file LocalFileDeleteBatch.php.
| MediaWiki\FileRepo\File\LocalFileDeleteBatch::addOld | ( | $oldName | ) |
| string | $oldName |
Definition at line 70 of file LocalFileDeleteBatch.php.
Referenced by MediaWiki\FileRepo\File\LocalFileDeleteBatch\addOlds().
| MediaWiki\FileRepo\File\LocalFileDeleteBatch::addOlds | ( | ) |
Add the old versions of the image to the batch.
Definition at line 79 of file LocalFileDeleteBatch.php.
References MediaWiki\FileRepo\File\LocalFileDeleteBatch\addOld().
|
protected |
Definition at line 183 of file LocalFileDeleteBatch.php.
References MediaWiki\MediaWikiServices\getInstance(), and MediaWiki\FileRepo\File\FileSelectQueryBuilder\newForOldFile().
| MediaWiki\FileRepo\File\LocalFileDeleteBatch::execute | ( | ) |
Run the transaction.
Definition at line 349 of file LocalFileDeleteBatch.php.
References StatusValue\newGood().
|
protected |
| StatusValue | $status | To add error messages to |
Definition at line 117 of file LocalFileDeleteBatch.php.
|
protected |
Definition at line 100 of file LocalFileDeleteBatch.php.
|
protected |
Removes non-existent files from a deletion batch.
| array[] | $batch |
Definition at line 422 of file LocalFileDeleteBatch.php.