MediaWiki  REL1_19
LocalFileDeleteBatch Class Reference

Helper class for file deletion. More...

List of all members.

Public Member Functions

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

Public Attributes

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

Protected Member Functions

 getHashes ()

Detailed Description

Helper class for file deletion.

Definition at line 1460 of file LocalFile.php.


Constructor & Destructor Documentation

LocalFileDeleteBatch::__construct ( File file,
reason = '',
suppress = false 
)

Definition at line 1470 of file LocalFile.php.

References $file, $reason, and $suppress.


Member Function Documentation

Definition at line 1477 of file LocalFile.php.

Definition at line 1481 of file LocalFile.php.

Definition at line 1641 of file LocalFile.php.

References getOldRels().

Referenced by execute().

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 1554 of file LocalFile.php.

References $ext, $wgUser, Revision\DELETED_COMMENT, Revision\DELETED_RESTRICTED, Revision\DELETED_TEXT, Revision\DELETED_USER, and getOldRels().

Referenced by execute().

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 1499 of file LocalFile.php.

References $hashes, $res, and getOldRels().

Referenced by execute().

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 1486 of file LocalFile.php.

Referenced by doDBDeletes(), doDBInserts(), execute(), and getHashes().

Here is the caller graph for this function:

Removes non-existent files from a deletion batch.

Definition at line 1751 of file LocalFile.php.

References $files, $result, and FileRepo\FILES_ONLY.

Referenced by execute().

Here is the caller graph for this function:


Member Data Documentation

LocalFileDeleteBatch::$archiveUrls = array()

Definition at line 1467 of file LocalFile.php.

LocalFileDeleteBatch::$deletionBatch

Definition at line 1467 of file LocalFile.php.

LocalFileDeleteBatch::$file

Definition at line 1465 of file LocalFile.php.

Referenced by __construct().

LocalFileDeleteBatch::$reason

Definition at line 1467 of file LocalFile.php.

Referenced by __construct().

LocalFileDeleteBatch::$srcRels = array()

Definition at line 1467 of file LocalFile.php.

LocalFileDeleteBatch::$status

Definition at line 1468 of file LocalFile.php.

Referenced by execute().

LocalFileDeleteBatch::$suppress

Definition at line 1467 of file LocalFile.php.

Referenced by __construct().


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