|
MediaWiki
REL1_24
|
Helper class for file movement. More...

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. | |
| cleanupSource ($triplets) | |
| Cleanup a fully moved array of triplets by deleting the source files. | |
| cleanupTarget ($triplets) | |
| Cleanup a partially moved array of triplets by deleting the target files. | |
| doDBUpdates () | |
| Do the database updates and return a new FileRepoStatus indicating how many rows where updated. | |
| execute () | |
| Perform the move. | |
| getMoveTriplets () | |
| Generate triplets for FileRepo::storeBatch(). | |
| removeNonexistentFiles ($triplets) | |
| Removes non-existent files from move batch. | |
Protected Attributes | |
| $archive | |
| $cur | |
| DatabaseBase | $db |
| * | |
| LocalFile | $file |
| * | |
| $oldCount | |
| $olds | |
| Title | $target |
| * | |
Helper class for file movement.
Definition at line 2706 of file LocalFile.php.
| LocalFileMoveBatch::__construct | ( | File $ | file, |
| Title $ | target | ||
| ) |
Definition at line 2725 of file LocalFile.php.
Add the current image to the batch.
Definition at line 2740 of file LocalFile.php.
References $file.
Add the old versions of the image to the batch.
Definition at line 2748 of file LocalFile.php.
References $file, $target, file, and File\getRepo().
| LocalFileMoveBatch::cleanupSource | ( | $ | triplets | ) |
Cleanup a fully moved array of triplets by deleting the source files.
Called at the end of the move process if everything else went ok.
| array | $triplets |
Definition at line 2983 of file LocalFile.php.
| LocalFileMoveBatch::cleanupTarget | ( | $ | triplets | ) |
Cleanup a partially moved array of triplets by deleting the target files.
Called if something went wrong half way.
| array | $triplets |
Definition at line 2967 of file LocalFile.php.
Do the database updates and return a new FileRepoStatus indicating how many rows where updated.
Definition at line 2863 of file LocalFile.php.
Perform the move.
Definition at line 2798 of file LocalFile.php.
References $timestamp, array(), File\DELETED_FILE, list, and wfDebug().
Generate triplets for FileRepo::storeBatch().
Definition at line 2915 of file LocalFile.php.
| LocalFileMoveBatch::removeNonexistentFiles | ( | $ | triplets | ) |
Removes non-existent files from move batch.
| array | $triplets |
Definition at line 2937 of file LocalFile.php.
LocalFileMoveBatch::$archive [protected] |
Definition at line 2717 of file LocalFile.php.
LocalFileMoveBatch::$cur [protected] |
Definition at line 2711 of file LocalFile.php.
DatabaseBase LocalFileMoveBatch::$db [protected] |
*
Definition at line 2719 of file LocalFile.php.
LocalFileMoveBatch::$oldCount [protected] |
Definition at line 2715 of file LocalFile.php.
LocalFileMoveBatch::$olds [protected] |
Definition at line 2713 of file LocalFile.php.
Title LocalFileMoveBatch::$target [protected] |