MediaWiki REL1_37
|
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 () | |
getOldRels () | |
removeNonexistentFiles ( $batch) | |
Removes non-existent files from a deletion batch. | |
Private Member Functions | |
doDBDeletes () | |
Private Attributes | |
array | $archiveUrls = [] |
array[] | $deletionBatch |
Items to be processed in the deletion batch. | |
LocalFile | $file |
string | $reason |
array | $srcRels = [] |
Status | $status |
bool | $suppress |
Whether to suppress all suppressable fields when deleting. | |
UserIdentity | $user |
Helper class for file deletion.
Definition at line 32 of file LocalFileDeleteBatch.php.
LocalFileDeleteBatch::__construct | ( | File | $file, |
UserIdentity | $user, | ||
$reason = '' , |
|||
$suppress = false |
|||
) |
LocalFileDeleteBatch::addCurrent | ( | ) |
Definition at line 76 of file LocalFileDeleteBatch.php.
LocalFileDeleteBatch::addOld | ( | $oldName | ) |
string | $oldName |
Definition at line 83 of file LocalFileDeleteBatch.php.
Referenced by addOlds().
LocalFileDeleteBatch::addOlds | ( | ) |
Add the old versions of the image to the batch.
Definition at line 92 of file LocalFileDeleteBatch.php.
References addOld().
|
private |
Definition at line 295 of file LocalFileDeleteBatch.php.
References getOldRels().
Referenced by execute().
|
protected |
Definition at line 185 of file LocalFileDeleteBatch.php.
References $ext, $reason, $res, $user, getOldRels(), OldLocalFile\getQueryInfo(), and User\newFromAnyId().
Referenced by execute().
LocalFileDeleteBatch::execute | ( | ) |
Run the transaction.
Definition at line 316 of file LocalFileDeleteBatch.php.
References $ext, $hashes, $status, doDBDeletes(), doDBInserts(), getHashes(), StatusValue\isGood(), StatusValue\merge(), and removeNonexistentFiles().
|
protected |
Definition at line 129 of file LocalFileDeleteBatch.php.
References $hashes, $res, and getOldRels().
Referenced by execute().
|
protected |
Definition at line 113 of file LocalFileDeleteBatch.php.
References $srcRels.
Referenced by doDBDeletes(), doDBInserts(), and getHashes().
|
protected |
Removes non-existent files from a deletion batch.
array[] | $batch |
Definition at line 376 of file LocalFileDeleteBatch.php.
Referenced by execute().
|
private |
Definition at line 43 of file LocalFileDeleteBatch.php.
|
private |
Items to be processed in the deletion batch.
Definition at line 46 of file LocalFileDeleteBatch.php.
|
private |
Definition at line 34 of file LocalFileDeleteBatch.php.
Referenced by __construct().
|
private |
Definition at line 37 of file LocalFileDeleteBatch.php.
Referenced by __construct(), and doDBInserts().
|
private |
Definition at line 40 of file LocalFileDeleteBatch.php.
Referenced by getOldRels().
|
private |
Definition at line 52 of file LocalFileDeleteBatch.php.
Referenced by execute().
|
private |
Whether to suppress all suppressable fields when deleting.
Definition at line 49 of file LocalFileDeleteBatch.php.
Referenced by __construct().
|
private |
Definition at line 55 of file LocalFileDeleteBatch.php.
Referenced by __construct(), and doDBInserts().