MediaWiki  REL1_24
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, $user=null)
 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 *.
User $user
 *

Detailed Description

Helper class for file deletion.

Definition at line 1946 of file LocalFile.php.


Constructor & Destructor Documentation

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

Definition at line 1969 of file LocalFile.php.


Member Function Documentation

Definition at line 1982 of file LocalFile.php.

Parameters:
string$oldName

Definition at line 1989 of file LocalFile.php.

References $file, $reason, $suppress, $user, $wgUser, file, global, and user.

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 1998 of file LocalFile.php.

Definition at line 2185 of file LocalFile.php.

Definition at line 2091 of file LocalFile.php.

References $hashes, array(), and file.

Run the transaction.

Returns:
FileRepoStatus

Definition at line 2206 of file LocalFile.php.

Returns:
array

Definition at line 2035 of file LocalFile.php.

References addOld().

Returns:
array

Definition at line 2019 of file LocalFile.php.

References file.

Removes non-existent files from a deletion batch.

Parameters:
array$batch
Returns:
Status

Definition at line 2292 of file LocalFile.php.

References $status.


Member Data Documentation

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

*

Definition at line 1953 of file LocalFile.php.

array LocalFileDeleteBatch::$deletionBatch [private]

Items to be processed in the deletion batch *.

Definition at line 1955 of file LocalFile.php.

LocalFile LocalFileDeleteBatch::$file [private]

*

Definition at line 1947 of file LocalFile.php.

Referenced by addOld().

string LocalFileDeleteBatch::$reason [private]

*

Definition at line 1949 of file LocalFile.php.

Referenced by addOld().

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

*

Definition at line 1951 of file LocalFile.php.

FileRepoStatus LocalFileDeleteBatch::$status [private]

*

Definition at line 1959 of file LocalFile.php.

Referenced by removeNonexistentFiles().

bool LocalFileDeleteBatch::$suppress [private]

Wether to suppress all suppressable fields when deleting *.

Definition at line 1957 of file LocalFile.php.

Referenced by addOld().

User LocalFileDeleteBatch::$user [private]

*

Definition at line 1961 of file LocalFile.php.

Referenced by addOld().


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