MediaWiki
1.29.1
|
Helper class for file deletion. More...
Public Member Functions | |
__construct (File $file, $reason='', $suppress=false, $user=null) | |
addCurrent () | |
addOld ( $oldName) | |
addOlds () | |
Add the old versions of the image to the batch. More... | |
doDBDeletes () | |
execute () | |
Run the transaction. More... | |
Protected Member Functions | |
doDBInserts () | |
getHashes () | |
getOldRels () | |
removeNonexistentFiles ( $batch) | |
Removes non-existent files from a deletion batch. More... | |
Private Attributes | |
array | $archiveUrls = [] |
array | $deletionBatch |
Items to be processed in the deletion batch. More... | |
LocalFile | $file |
string | $reason |
array | $srcRels = [] |
Status | $status |
bool | $suppress |
Whether to suppress all suppressable fields when deleting. More... | |
User | $user |
Helper class for file deletion.
Definition at line 2083 of file LocalFile.php.
LocalFileDeleteBatch::addCurrent | ( | ) |
Definition at line 2127 of file LocalFile.php.
References file.
LocalFileDeleteBatch::addOld | ( | $oldName | ) |
string | $oldName |
Definition at line 2134 of file LocalFile.php.
References file.
Referenced by addOlds().
LocalFileDeleteBatch::addOlds | ( | ) |
Add the old versions of the image to the batch.
Definition at line 2143 of file LocalFile.php.
LocalFileDeleteBatch::doDBDeletes | ( | ) |
Definition at line 2337 of file LocalFile.php.
References captcha-old\count, file, getOldRels(), and list.
Referenced by execute().
|
protected |
Definition at line 2236 of file LocalFile.php.
References $ext, $reason, $res, as, captcha-old\count, file, getOldRels(), list, reason(), OldLocalFile\selectFields(), Revision\SUPPRESSED_ALL, and user.
Referenced by execute().
LocalFileDeleteBatch::execute | ( | ) |
Run the transaction.
Definition at line 2358 of file LocalFile.php.
References $ext, $hashes, $name, $status, as, doDBDeletes(), doDBInserts(), file, getHashes(), StatusValue\isGood(), and removeNonexistentFiles().
|
protected |
Definition at line 2180 of file LocalFile.php.
References $hashes, $name, $res, as, captcha-old\count, file, getOldRels(), and list.
Referenced by execute().
|
protected |
Definition at line 2164 of file LocalFile.php.
References $srcRels.
Referenced by doDBDeletes(), doDBInserts(), and getHashes().
|
protected |
Removes non-existent files from a deletion batch.
array | $batch |
Definition at line 2418 of file LocalFile.php.
References $batch, as, file, list, StatusValue\newFatal(), and StatusValue\newGood().
Referenced by execute().
|
private |
Definition at line 2094 of file LocalFile.php.
|
private |
Items to be processed in the deletion batch.
Definition at line 2097 of file LocalFile.php.
|
private |
Definition at line 2085 of file LocalFile.php.
Referenced by __construct().
|
private |
Definition at line 2088 of file LocalFile.php.
Referenced by __construct(), and doDBInserts().
|
private |
Definition at line 2091 of file LocalFile.php.
Referenced by getOldRels().
|
private |
Definition at line 2103 of file LocalFile.php.
Referenced by execute().
|
private |
Whether to suppress all suppressable fields when deleting.
Definition at line 2100 of file LocalFile.php.
Referenced by __construct().
|
private |
Definition at line 2106 of file LocalFile.php.
Referenced by __construct().