MediaWiki  REL1_22
LocalFileDeleteBatch Class Reference

Helper class for file deletion. More...

Collaboration diagram for LocalFileDeleteBatch:

List of all members.

Public Member Functions

 __construct (File $file, $reason= '', $suppress=false)
 addCurrent ()
 addOld ($oldName)
 addOlds ()
 Add the old versions of the image to the batch.
 doDBDeletes ()
 doDBInserts ()
 execute ()
 Run the transaction.
 getOldRels ()
 removeNonexistentFiles ($batch)
 Removes non-existent files from a deletion batch.

Public Attributes

 $archiveUrls = array()
 $deletionBatch
LocalFile $file
 $reason
 $srcRels = array()
 $status
 $suppress

Protected Member Functions

 getHashes ()

Detailed Description

Helper class for file deletion.

Definition at line 1833 of file LocalFile.php.


Constructor & Destructor Documentation

LocalFileDeleteBatch::__construct ( File file,
reason = '',
suppress = false 
)
Parameters:
$fileFile
$reasonstring
$suppressbool

Definition at line 1847 of file LocalFile.php.


Member Function Documentation

Definition at line 1854 of file LocalFile.php.

Parameters:
$oldNamestring

Definition at line 1861 of file LocalFile.php.

Add the old versions of the image to the batch.

Returns:
Array List of archive names from old versions

Definition at line 1870 of file LocalFile.php.

Definition at line 2050 of file LocalFile.php.

Definition at line 1962 of file LocalFile.php.

Run the transaction.

Returns:
FileRepoStatus

Definition at line 2071 of file LocalFile.php.

Returns:
array

Definition at line 1907 of file LocalFile.php.

Returns:
array

Definition at line 1891 of file LocalFile.php.

Removes non-existent files from a deletion batch.

Parameters:
$batcharray
Returns:
array

Definition at line 2151 of file LocalFile.php.


Member Data Documentation

LocalFileDeleteBatch::$archiveUrls = array()

Definition at line 1839 of file LocalFile.php.

LocalFileDeleteBatch::$deletionBatch

Definition at line 1839 of file LocalFile.php.

LocalFile LocalFileDeleteBatch::$file

Definition at line 1837 of file LocalFile.php.

LocalFileDeleteBatch::$reason

Definition at line 1839 of file LocalFile.php.

LocalFileDeleteBatch::$srcRels = array()

Definition at line 1839 of file LocalFile.php.

LocalFileDeleteBatch::$status

Definition at line 1840 of file LocalFile.php.

LocalFileDeleteBatch::$suppress

Definition at line 1839 of file LocalFile.php.


The documentation for this class was generated from the following file: