MediaWiki
REL1_24
|
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 () | |
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 *. | |
User | $user |
* |
Helper class for file deletion.
Definition at line 1946 of file LocalFile.php.
LocalFileDeleteBatch::__construct | ( | File $ | file, |
$ | reason = '' , |
||
$ | suppress = false , |
||
$ | user = null |
||
) |
Definition at line 1969 of file LocalFile.php.
Definition at line 1982 of file LocalFile.php.
LocalFileDeleteBatch::addOld | ( | $ | oldName | ) |
Add the old versions of the image to the batch.
Definition at line 1998 of file LocalFile.php.
Definition at line 2185 of file LocalFile.php.
Definition at line 2091 of file LocalFile.php.
LocalFileDeleteBatch::getHashes | ( | ) | [protected] |
LocalFileDeleteBatch::removeNonexistentFiles | ( | $ | batch | ) |
Removes non-existent files from a deletion batch.
array | $batch |
Definition at line 2292 of file LocalFile.php.
References $status.
*
Definition at line 1953 of file LocalFile.php.
array LocalFileDeleteBatch::$deletionBatch [private] |
Items to be processed in the deletion batch *.
Definition at line 1955 of file LocalFile.php.
string LocalFileDeleteBatch::$reason [private] |
*
Definition at line 1951 of file LocalFile.php.
FileRepoStatus LocalFileDeleteBatch::$status [private] |
bool LocalFileDeleteBatch::$suppress [private] |
Wether to suppress all suppressable fields when deleting *.
Definition at line 1957 of file LocalFile.php.
Referenced by addOld().