MediaWiki master
|
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 37 of file LocalFileDeleteBatch.php.
MediaWiki\FileRepo\File\LocalFileDeleteBatch::__construct | ( | File | $file, |
UserIdentity | $user, | ||
$reason = '', | |||
$suppress = false ) |
File | $file | |
UserIdentity | $user | |
string | $reason | |
bool | $suppress |
Definition at line 65 of file LocalFileDeleteBatch.php.
MediaWiki\FileRepo\File\LocalFileDeleteBatch::addCurrent | ( | ) |
Definition at line 77 of file LocalFileDeleteBatch.php.
MediaWiki\FileRepo\File\LocalFileDeleteBatch::addOld | ( | $oldName | ) |
string | $oldName |
Definition at line 84 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 93 of file LocalFileDeleteBatch.php.
References MediaWiki\FileRepo\File\LocalFileDeleteBatch\addOld().
|
protected |
Definition at line 197 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 363 of file LocalFileDeleteBatch.php.
References StatusValue\newGood().
|
protected |
StatusValue | $status | To add error messages to |
Definition at line 131 of file LocalFileDeleteBatch.php.
|
protected |
Definition at line 114 of file LocalFileDeleteBatch.php.
|
protected |
Removes non-existent files from a deletion batch.
array[] | $batch |
Definition at line 436 of file LocalFileDeleteBatch.php.