MediaWiki REL1_31
|
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 2314 of file LocalFile.php.
LocalFileDeleteBatch::__construct | ( | File | $file, |
$reason = '', | |||
$suppress = false, | |||
$user = null ) |
LocalFileDeleteBatch::addCurrent | ( | ) |
Definition at line 2358 of file LocalFile.php.
LocalFileDeleteBatch::addOld | ( | $oldName | ) |
LocalFileDeleteBatch::addOlds | ( | ) |
Add the old versions of the image to the batch.
Definition at line 2374 of file LocalFile.php.
References addOld().
LocalFileDeleteBatch::doDBDeletes | ( | ) |
Definition at line 2643 of file LocalFile.php.
References $wgCommentTableSchemaMigrationStage, getOldRels(), list, and MIGRATION_OLD.
Referenced by execute().
|
protected |
Definition at line 2467 of file LocalFile.php.
References $ext, $reason, $res, $tables, $wgActorTableSchemaMigrationStage, $wgCommentTableSchemaMigrationStage, getOldRels(), OldLocalFile\getQueryInfo(), list, MIGRATION_NEW, MIGRATION_OLD, MIGRATION_WRITE_BOTH, and User\newFromAnyId().
Referenced by execute().
LocalFileDeleteBatch::execute | ( | ) |
Run the transaction.
Definition at line 2671 of file LocalFile.php.
References $ext, $hashes, $name, $status, doDBDeletes(), doDBInserts(), getHashes(), StatusValue\merge(), and removeNonexistentFiles().
|
protected |
Definition at line 2411 of file LocalFile.php.
References $hashes, $res, getOldRels(), and list.
Referenced by execute().
|
protected |
Definition at line 2395 of file LocalFile.php.
References $srcRels.
Referenced by doDBDeletes(), doDBInserts(), and getHashes().
|
protected |
|
private |
Definition at line 2325 of file LocalFile.php.
|
private |
Items to be processed in the deletion batch.
Definition at line 2328 of file LocalFile.php.
|
private |
Definition at line 2316 of file LocalFile.php.
Referenced by __construct().
|
private |
Definition at line 2319 of file LocalFile.php.
Referenced by __construct(), and doDBInserts().
|
private |
Definition at line 2322 of file LocalFile.php.
Referenced by getOldRels().
|
private |
Definition at line 2334 of file LocalFile.php.
Referenced by execute().
|
private |
Whether to suppress all suppressable fields when deleting.
Definition at line 2331 of file LocalFile.php.
Referenced by __construct().
|
private |
Definition at line 2337 of file LocalFile.php.
Referenced by __construct().