LocalFileMoveBatch Class Reference
[FileRepo]

Helper class for file movement. More...

List of all members.

Public Member Functions

 __construct (File $file, Title $target)
 addCurrent ()
 Add the current image to the batch.
 addOlds ()
 Add the old versions of the image to the batch.
 execute ()
 Perform the move.
 doDBUpdates ()
 Do the database updates and return a new WikiError indicating how many rows where updated.
 getMoveTriplets ()
 Generate triplets for FSRepo::storeBatch().
 removeNonexistentFiles ($triplets)
 Removes non-existent files from move batch.

Public Attributes

 $file
 $cur
 $olds
 $oldCount
 $archive
 $target
 $db


Detailed Description

Helper class for file movement.

Definition at line 1788 of file LocalFile.php.


Constructor & Destructor Documentation

LocalFileMoveBatch::__construct ( File file,
Title target 
)

Definition at line 1791 of file LocalFile.php.


Member Function Documentation

LocalFileMoveBatch::addCurrent (  ) 

Add the current image to the batch.

Definition at line 1806 of file LocalFile.php.

LocalFileMoveBatch::addOlds (  ) 

Add the old versions of the image to the batch.

Definition at line 1813 of file LocalFile.php.

References $filename, $result, File::DELETED_FILE, and wfDebug().

LocalFileMoveBatch::doDBUpdates (  ) 

Do the database updates and return a new WikiError indicating how many rows where updated.

Definition at line 1875 of file LocalFile.php.

References $dbw, and $total.

Referenced by execute().

LocalFileMoveBatch::execute (  ) 

Perform the move.

Definition at line 1851 of file LocalFile.php.

References FileRepo::DELETE_SOURCE, doDBUpdates(), getMoveTriplets(), removeNonexistentFiles(), and wfDebugLog().

LocalFileMoveBatch::getMoveTriplets (  ) 

Generate triplets for FSRepo::storeBatch().

Definition at line 1914 of file LocalFile.php.

References wfDebugLog().

Referenced by execute().

LocalFileMoveBatch::removeNonexistentFiles ( triplets  ) 

Removes non-existent files from move batch.

Definition at line 1929 of file LocalFile.php.

References $file, $files, $result, FileRepo::FILES_ONLY, and wfDebugLog().

Referenced by execute().


Member Data Documentation

LocalFileMoveBatch::$archive

Definition at line 1789 of file LocalFile.php.

LocalFileMoveBatch::$cur

Definition at line 1789 of file LocalFile.php.

LocalFileMoveBatch::$db

Definition at line 1789 of file LocalFile.php.

LocalFileMoveBatch::$file

Definition at line 1789 of file LocalFile.php.

Referenced by removeNonexistentFiles().

LocalFileMoveBatch::$oldCount

Definition at line 1789 of file LocalFile.php.

LocalFileMoveBatch::$olds

Definition at line 1789 of file LocalFile.php.

LocalFileMoveBatch::$target

Definition at line 1789 of file LocalFile.php.


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

Generated on Sat Apr 30 22:57:42 2011 for MediaWiki by  doxygen 1.5.9