Helper class for file deletion.
More...
Helper class for file deletion.
- Access: internal
Definition at line 34 of file LocalFileDeleteBatch.php.
◆ __construct()
LocalFileDeleteBatch::__construct |
( |
File | $file, |
|
|
UserIdentity | $user, |
|
|
| $reason = '', |
|
|
| $suppress = false ) |
◆ addCurrent()
LocalFileDeleteBatch::addCurrent |
( |
| ) |
|
◆ addOld()
LocalFileDeleteBatch::addOld |
( |
| $oldName | ) |
|
◆ addOlds()
LocalFileDeleteBatch::addOlds |
( |
| ) |
|
Add the old versions of the image to the batch.
- Returns
- string[] List of archive names from old versions
Definition at line 90 of file LocalFileDeleteBatch.php.
References addOld().
◆ doDBInserts()
LocalFileDeleteBatch::doDBInserts |
( |
| ) |
|
|
protected |
◆ execute()
LocalFileDeleteBatch::execute |
( |
| ) |
|
◆ getHashes()
◆ getOldRels()
LocalFileDeleteBatch::getOldRels |
( |
| ) |
|
|
protected |
◆ removeNonexistentFiles()
LocalFileDeleteBatch::removeNonexistentFiles |
( |
| $batch | ) |
|
|
protected |
Removes non-existent files from a deletion batch.
- Parameters
-
- Returns
- Status A good status with existing files in $batch as value, or a fatal status in case of I/O errors.
Definition at line 400 of file LocalFileDeleteBatch.php.
The documentation for this class was generated from the following file: