MediaWiki REL1_33
|
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 () | |
execute () | |
Run the transaction. | |
Protected Member Functions | |
doDBInserts () | |
getHashes () | |
getOldRels () | |
removeNonexistentFiles ( $batch) | |
Removes non-existent files from a deletion batch. | |
Private Attributes | |
array | $archiveUrls = [] |
array | $deletionBatch |
Items to be processed in the deletion batch. | |
LocalFile | $file |
string | $reason |
array | $srcRels = [] |
Status | $status |
bool | $suppress |
Whether to suppress all suppressable fields when deleting. | |
User | $user |
Helper class for file deletion.
Definition at line 2306 of file LocalFile.php.
LocalFileDeleteBatch::addCurrent | ( | ) |
Definition at line 2350 of file LocalFile.php.
LocalFileDeleteBatch::addOld | ( | $oldName | ) |
string | $oldName |
Definition at line 2357 of file LocalFile.php.
References and().
Referenced by addOlds().
LocalFileDeleteBatch::addOlds | ( | ) |
Add the old versions of the image to the batch.
Definition at line 2366 of file LocalFile.php.
LocalFileDeleteBatch::doDBDeletes | ( | ) |
Definition at line 2602 of file LocalFile.php.
References getOldRels(), and list.
Referenced by execute().
|
protected |
Definition at line 2459 of file LocalFile.php.
References $ext, $reason, $res, $tables, $wgActorTableSchemaMigrationStage, and(), getOldRels(), OldLocalFile\getQueryInfo(), list, User\newFromAnyId(), SCHEMA_COMPAT_WRITE_BOTH, SCHEMA_COMPAT_WRITE_NEW, SCHEMA_COMPAT_WRITE_OLD, and Revision\SUPPRESSED_ALL.
Referenced by execute().
LocalFileDeleteBatch::execute | ( | ) |
Run the transaction.
Definition at line 2623 of file LocalFile.php.
References $ext, $hashes, $name, $status, and(), doDBDeletes(), doDBInserts(), getHashes(), StatusValue\merge(), and removeNonexistentFiles().
|
protected |
Definition at line 2403 of file LocalFile.php.
References $hashes, $res, and(), getOldRels(), and list.
Referenced by execute().
|
protected |
Definition at line 2387 of file LocalFile.php.
References $srcRels, and and().
Referenced by doDBDeletes(), doDBInserts(), and getHashes().
|
protected |
|
private |
Definition at line 2317 of file LocalFile.php.
|
private |
Items to be processed in the deletion batch.
Definition at line 2320 of file LocalFile.php.
|
private |
Definition at line 2308 of file LocalFile.php.
Referenced by __construct().
|
private |
Definition at line 2311 of file LocalFile.php.
Referenced by __construct(), and doDBInserts().
|
private |
Definition at line 2314 of file LocalFile.php.
Referenced by getOldRels().
|
private |
Definition at line 2326 of file LocalFile.php.
Referenced by execute().
|
private |
Whether to suppress all suppressable fields when deleting.
Definition at line 2323 of file LocalFile.php.
Referenced by __construct().
|
private |
Definition at line 2329 of file LocalFile.php.
Referenced by __construct().