MediaWiki  REL1_23
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.

Protected Member Functions

 getHashes ()

Private Attributes

array $archiveUrls = array()
 *
array $deletionBatch
 Items to be processed in the deletion batch *.
LocalFile $file
 *
string $reason
 *
array $srcRels = array()
 *
FileRepoStatus $status
 *
bool $suppress
 Wether to suppress all suppressable fields when deleting *.

Detailed Description

Helper class for file deletion.

Definition at line 1870 of file LocalFile.php.


Constructor & Destructor Documentation

LocalFileDeleteBatch::__construct ( File file,
reason = '',
suppress = false 
)
Parameters:
File$file
string$reason
bool$suppress

Definition at line 1890 of file LocalFile.php.


Member Function Documentation

Definition at line 1897 of file LocalFile.php.

Parameters:
string$oldName

Definition at line 1904 of file LocalFile.php.

Referenced by getHashes().

Add the old versions of the image to the batch.

Returns:
array List of archive names from old versions

Definition at line 1913 of file LocalFile.php.

References $file, $reason, $suppress, and file.

Definition at line 2093 of file LocalFile.php.

Definition at line 2005 of file LocalFile.php.

References $hashes, array(), and file.

Run the transaction.

Returns:
FileRepoStatus

Definition at line 2114 of file LocalFile.php.

Returns:
array

Definition at line 1950 of file LocalFile.php.

References addOld().

Returns:
array

Definition at line 1934 of file LocalFile.php.

Removes non-existent files from a deletion batch.

Parameters:
$batcharray
Returns:
array

Definition at line 2195 of file LocalFile.php.

References $status.


Member Data Documentation

array LocalFileDeleteBatch::$archiveUrls = array() [private]

*

Definition at line 1877 of file LocalFile.php.

array LocalFileDeleteBatch::$deletionBatch [private]

Items to be processed in the deletion batch *.

Definition at line 1879 of file LocalFile.php.

LocalFile LocalFileDeleteBatch::$file [private]

*

Definition at line 1871 of file LocalFile.php.

Referenced by addOlds().

string LocalFileDeleteBatch::$reason [private]

*

Definition at line 1873 of file LocalFile.php.

Referenced by addOlds().

array LocalFileDeleteBatch::$srcRels = array() [private]

*

Definition at line 1875 of file LocalFile.php.

FileRepoStatus LocalFileDeleteBatch::$status [private]

*

Definition at line 1883 of file LocalFile.php.

Referenced by removeNonexistentFiles().

bool LocalFileDeleteBatch::$suppress [private]

Wether to suppress all suppressable fields when deleting *.

Definition at line 1881 of file LocalFile.php.

Referenced by addOlds().


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