MediaWiki
1.27.1
|
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. More... | |
doDBDeletes () | |
execute () | |
Run the transaction. More... | |
Protected Member Functions | |
doDBInserts () | |
getHashes () | |
getOldRels () | |
removeNonexistentFiles ($batch) | |
Removes non-existent files from a deletion batch. More... | |
Private Attributes | |
array | $archiveUrls = [] |
array | $deletionBatch |
Items to be processed in the deletion batch. More... | |
LocalFile | $file |
string | $reason |
array | $srcRels = [] |
FileRepoStatus | $status |
bool | $suppress |
Whether to suppress all suppressable fields when deleting. More... | |
User | $user |
Helper class for file deletion.
Definition at line 1987 of file LocalFile.php.
LocalFileDeleteBatch::addCurrent | ( | ) |
Definition at line 2031 of file LocalFile.php.
References file.
LocalFileDeleteBatch::addOld | ( | $oldName | ) |
string | $oldName |
Definition at line 2038 of file LocalFile.php.
References file.
Referenced by addOlds().
LocalFileDeleteBatch::addOlds | ( | ) |
Add the old versions of the image to the batch.
Definition at line 2047 of file LocalFile.php.
LocalFileDeleteBatch::doDBDeletes | ( | ) |
Definition at line 2234 of file LocalFile.php.
References file, getOldRels(), and list.
Referenced by execute().
|
protected |
Definition at line 2140 of file LocalFile.php.
References $ext, Revision\DELETED_COMMENT, Revision\DELETED_RESTRICTED, Revision\DELETED_TEXT, Revision\DELETED_USER, file, getOldRels(), list, and user.
Referenced by execute().
LocalFileDeleteBatch::execute | ( | ) |
Run the transaction.
Definition at line 2255 of file LocalFile.php.
References $ext, $hashes, $key, $name, $status, as, doDBDeletes(), doDBInserts(), file, getHashes(), Status\isGood(), and removeNonexistentFiles().
|
protected |
Definition at line 2084 of file LocalFile.php.
References $hashes, $name, $res, as, file, getOldRels(), and list.
Referenced by execute().
|
protected |
Definition at line 2068 of file LocalFile.php.
References $srcRels.
Referenced by doDBDeletes(), doDBInserts(), and getHashes().
|
protected |
Removes non-existent files from a deletion batch.
array | $batch |
Definition at line 2323 of file LocalFile.php.
References $batch, $files, as, file, list, Status\newFatal(), and Status\newGood().
Referenced by execute().
|
private |
Definition at line 1998 of file LocalFile.php.
|
private |
Items to be processed in the deletion batch.
Definition at line 2001 of file LocalFile.php.
|
private |
Definition at line 1989 of file LocalFile.php.
Referenced by __construct().
|
private |
Definition at line 1992 of file LocalFile.php.
Referenced by __construct().
|
private |
Definition at line 1995 of file LocalFile.php.
Referenced by getOldRels().
|
private |
Definition at line 2007 of file LocalFile.php.
Referenced by execute().
|
private |
Whether to suppress all suppressable fields when deleting.
Definition at line 2004 of file LocalFile.php.
Referenced by __construct().
|
private |
Definition at line 2010 of file LocalFile.php.
Referenced by __construct().