MediaWiki REL1_28
|
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. | |
doDBDeletes () | |
execute () | |
Run the transaction. | |
Protected Member Functions | |
doDBInserts () | |
getHashes () | |
getOldRels () | |
removeNonexistentFiles ( $batch) | |
Removes non-existent files from a deletion batch. | |
Private Attributes | |
array | $archiveUrls = [] |
array | $deletionBatch |
Items to be processed in the deletion batch. | |
LocalFile | $file |
string | $reason |
array | $srcRels = [] |
FileRepoStatus | $status |
bool | $suppress |
Whether to suppress all suppressable fields when deleting. | |
User | $user |
Helper class for file deletion.
Definition at line 2072 of file LocalFile.php.
LocalFileDeleteBatch::__construct | ( | File | $file, |
$reason = '' , |
|||
$suppress = false , |
|||
$user = null |
|||
) |
LocalFileDeleteBatch::addCurrent | ( | ) |
Definition at line 2116 of file LocalFile.php.
References file.
LocalFileDeleteBatch::addOld | ( | $oldName | ) |
string | $oldName |
Definition at line 2123 of file LocalFile.php.
References file.
Referenced by addOlds().
LocalFileDeleteBatch::addOlds | ( | ) |
Add the old versions of the image to the batch.
Definition at line 2132 of file LocalFile.php.
LocalFileDeleteBatch::doDBDeletes | ( | ) |
Definition at line 2332 of file LocalFile.php.
References file, getOldRels(), and list.
Referenced by execute().
|
protected |
Definition at line 2225 of file LocalFile.php.
References $ext, $reason, $res, as, Revision\DELETED_COMMENT, Revision\DELETED_RESTRICTED, Revision\DELETED_TEXT, Revision\DELETED_USER, file, getOldRels(), list, OldLocalFile\selectFields(), and user.
Referenced by execute().
LocalFileDeleteBatch::execute | ( | ) |
Run the transaction.
Definition at line 2353 of file LocalFile.php.
References $ext, $hashes, $name, $status, as, doDBDeletes(), doDBInserts(), file, getHashes(), StatusValue\isGood(), and removeNonexistentFiles().
|
protected |
Definition at line 2169 of file LocalFile.php.
References $hashes, $name, $res, as, file, getOldRels(), and list.
Referenced by execute().
|
protected |
Definition at line 2153 of file LocalFile.php.
References $srcRels.
Referenced by doDBDeletes(), doDBInserts(), and getHashes().
|
protected |
|
private |
Definition at line 2083 of file LocalFile.php.
|
private |
Items to be processed in the deletion batch.
Definition at line 2086 of file LocalFile.php.
|
private |
Definition at line 2074 of file LocalFile.php.
Referenced by __construct().
|
private |
Definition at line 2077 of file LocalFile.php.
Referenced by __construct(), and doDBInserts().
|
private |
Definition at line 2080 of file LocalFile.php.
Referenced by getOldRels().
|
private |
Definition at line 2092 of file LocalFile.php.
Referenced by execute().
|
private |
Whether to suppress all suppressable fields when deleting.
Definition at line 2089 of file LocalFile.php.
Referenced by __construct().
|
private |
Definition at line 2095 of file LocalFile.php.
Referenced by __construct().