MediaWiki
1.30.2
|
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 = [] |
Status | $status |
bool | $suppress |
Whether to suppress all suppressable fields when deleting. More... | |
User | $user |
Helper class for file deletion.
Definition at line 2144 of file LocalFile.php.
LocalFileDeleteBatch::addCurrent | ( | ) |
Definition at line 2188 of file LocalFile.php.
References file.
LocalFileDeleteBatch::addOld | ( | $oldName | ) |
string | $oldName |
Definition at line 2195 of file LocalFile.php.
References file.
Referenced by addOlds().
LocalFileDeleteBatch::addOlds | ( | ) |
Add the old versions of the image to the batch.
Definition at line 2204 of file LocalFile.php.
LocalFileDeleteBatch::doDBDeletes | ( | ) |
Definition at line 2443 of file LocalFile.php.
References $wgCommentTableSchemaMigrationStage, captcha-old\count, file, getOldRels(), global, list, and MIGRATION_OLD.
Referenced by execute().
|
protected |
Definition at line 2297 of file LocalFile.php.
References $ext, $reason, $res, $tables, $wgCommentTableSchemaMigrationStage, as, captcha-old\count, file, getOldRels(), global, list, MIGRATION_NEW, MIGRATION_OLD, MIGRATION_WRITE_BOTH, reason(), OldLocalFile\selectFields(), Revision\SUPPRESSED_ALL, and user.
Referenced by execute().
LocalFileDeleteBatch::execute | ( | ) |
Run the transaction.
Definition at line 2471 of file LocalFile.php.
References $ext, $hashes, $name, $status, as, doDBDeletes(), doDBInserts(), file, getHashes(), and removeNonexistentFiles().
|
protected |
Definition at line 2241 of file LocalFile.php.
References $hashes, $name, $res, as, captcha-old\count, file, getOldRels(), and list.
Referenced by execute().
|
protected |
Definition at line 2225 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 2531 of file LocalFile.php.
References $batch, as, file, list, StatusValue\newFatal(), and StatusValue\newGood().
Referenced by execute().
|
private |
Definition at line 2155 of file LocalFile.php.
|
private |
Items to be processed in the deletion batch.
Definition at line 2158 of file LocalFile.php.
|
private |
Definition at line 2146 of file LocalFile.php.
Referenced by __construct().
|
private |
Definition at line 2149 of file LocalFile.php.
Referenced by __construct(), and doDBInserts().
|
private |
Definition at line 2152 of file LocalFile.php.
Referenced by getOldRels().
|
private |
Definition at line 2164 of file LocalFile.php.
Referenced by execute().
|
private |
Whether to suppress all suppressable fields when deleting.
Definition at line 2161 of file LocalFile.php.
Referenced by __construct().
|
private |
Definition at line 2167 of file LocalFile.php.
Referenced by __construct().