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 | |
Definition at line 1788 of file LocalFile.php.
Definition at line 1791 of file LocalFile.php.
| LocalFileMoveBatch::addCurrent | ( | ) |
| 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 | ( | ) |
| 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().
| 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 |
| 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.
1.5.9