MediaWiki
1.23.5
|
Helper class for file deletion. More...
Public Member Functions | |
__construct (File $file, $reason='', $suppress=false) | |
addCurrent () | |
addOld ( $oldName) | |
addOlds () | |
Add the old versions of the image to the batch. More... | |
doDBDeletes () | |
doDBInserts () | |
execute () | |
Run the transaction. More... | |
getOldRels () | |
removeNonexistentFiles ( $batch) | |
Removes non-existent files from a deletion batch. More... | |
Protected Member Functions | |
getHashes () | |
Private Attributes | |
array | $archiveUrls = array() |
array | $deletionBatch |
Items to be processed in the deletion batch *. More... | |
LocalFile | $file |
string | $reason |
array | $srcRels = array() |
FileRepoStatus | $status |
bool | $suppress |
Wether to suppress all suppressable fields when deleting *. More... | |
Helper class for file deletion.
Definition at line 1870 of file LocalFile.php.
LocalFileDeleteBatch::addCurrent | ( | ) |
Definition at line 1897 of file LocalFile.php.
References file.
LocalFileDeleteBatch::addOld | ( | $oldName | ) |
string | $oldName |
Definition at line 1904 of file LocalFile.php.
References file.
Referenced by addOlds().
LocalFileDeleteBatch::addOlds | ( | ) |
LocalFileDeleteBatch::doDBDeletes | ( | ) |
Definition at line 2093 of file LocalFile.php.
References array(), file, getOldRels(), and list.
Referenced by execute().
LocalFileDeleteBatch::doDBInserts | ( | ) |
Definition at line 2005 of file LocalFile.php.
References $ext, $wgUser, array(), Revision\DELETED_COMMENT, Revision\DELETED_RESTRICTED, Revision\DELETED_TEXT, Revision\DELETED_USER, file, getOldRels(), global, and list.
Referenced by execute().
LocalFileDeleteBatch::execute | ( | ) |
Run the transaction.
Definition at line 2114 of file LocalFile.php.
References $ext, $hash, $hashes, $name, $res, $status, array(), as, File\DELETED_FILE, doDBDeletes(), doDBInserts(), file, getHashes(), getOldRels(), Status\isGood(), list, removeNonexistentFiles(), wfProfileIn(), and wfProfileOut().
|
protected |
LocalFileDeleteBatch::getOldRels | ( | ) |
Definition at line 1934 of file LocalFile.php.
References $srcRels, and array().
Referenced by doDBDeletes(), doDBInserts(), execute(), and getHashes().
LocalFileDeleteBatch::removeNonexistentFiles | ( | $batch | ) |
Definition at line 1877 of file LocalFile.php.
|
private |
Items to be processed in the deletion batch *.
Definition at line 1879 of file LocalFile.php.
|
private |
|
private |
|
private |
|
private |
Wether to suppress all suppressable fields when deleting *.
Definition at line 1881 of file LocalFile.php.
Referenced by __construct().