MediaWiki
REL1_23
|
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. | |
doDBDeletes () | |
doDBInserts () | |
execute () | |
Run the transaction. | |
getOldRels () | |
removeNonexistentFiles ($batch) | |
Removes non-existent files from a deletion batch. | |
Protected Member Functions | |
getHashes () | |
Private Attributes | |
array | $archiveUrls = array() |
* | |
array | $deletionBatch |
Items to be processed in the deletion batch *. | |
LocalFile | $file |
* | |
string | $reason |
* | |
array | $srcRels = array() |
* | |
FileRepoStatus | $status |
* | |
bool | $suppress |
Wether to suppress all suppressable fields when deleting *. |
Helper class for file deletion.
Definition at line 1870 of file LocalFile.php.
LocalFileDeleteBatch::__construct | ( | File $ | file, |
$ | reason = '' , |
||
$ | suppress = false |
||
) |
File | $file | |
string | $reason | |
bool | $suppress |
Definition at line 1890 of file LocalFile.php.
Definition at line 1897 of file LocalFile.php.
LocalFileDeleteBatch::addOld | ( | $ | oldName | ) |
string | $oldName |
Definition at line 1904 of file LocalFile.php.
Referenced by getHashes().
Definition at line 2093 of file LocalFile.php.
Definition at line 2005 of file LocalFile.php.
LocalFileDeleteBatch::getHashes | ( | ) | [protected] |
Definition at line 1934 of file LocalFile.php.
LocalFileDeleteBatch::removeNonexistentFiles | ( | $ | batch | ) |
Removes non-existent files from a deletion batch.
$batch | array |
Definition at line 2195 of file LocalFile.php.
References $status.
*
Definition at line 1877 of file LocalFile.php.
array LocalFileDeleteBatch::$deletionBatch [private] |
Items to be processed in the deletion batch *.
Definition at line 1879 of file LocalFile.php.
string LocalFileDeleteBatch::$reason [private] |
*
Definition at line 1875 of file LocalFile.php.
FileRepoStatus LocalFileDeleteBatch::$status [private] |
bool LocalFileDeleteBatch::$suppress [private] |
Wether to suppress all suppressable fields when deleting *.
Definition at line 1881 of file LocalFile.php.
Referenced by addOlds().