MediaWiki
1.23.2
|
Helper class for file movement. More...
Public Member Functions | |
__construct (File $file, Title $target) | |
addCurrent () | |
Add the current image to the batch. More... | |
addOlds () | |
Add the old versions of the image to the batch. More... | |
cleanupSource ( $triplets) | |
Cleanup a fully moved array of triplets by deleting the source files. More... | |
cleanupTarget ( $triplets) | |
Cleanup a partially moved array of triplets by deleting the target files. More... | |
doDBUpdates () | |
Do the database updates and return a new FileRepoStatus indicating how many rows where updated. More... | |
execute () | |
Perform the move. More... | |
getMoveTriplets () | |
Generate triplets for FileRepo::storeBatch(). More... | |
removeNonexistentFiles ( $triplets) | |
Removes non-existent files from move batch. More... | |
Protected Attributes | |
$archive | |
$cur | |
DatabaseBase | $db |
LocalFile | $file |
$oldCount | |
$olds | |
Title | $target |
Helper class for file movement.
Definition at line 2590 of file LocalFile.php.
Definition at line 2609 of file LocalFile.php.
References $file, $target, file, and File\getRepo().
LocalFileMoveBatch::addCurrent | ( | ) |
Add the current image to the batch.
Definition at line 2624 of file LocalFile.php.
References array().
LocalFileMoveBatch::addOlds | ( | ) |
Add the old versions of the image to the batch.
Definition at line 2632 of file LocalFile.php.
References $timestamp, array(), as, File\DELETED_FILE, list, and wfDebug().
LocalFileMoveBatch::cleanupSource | ( | $triplets | ) |
LocalFileMoveBatch::cleanupTarget | ( | $triplets | ) |
LocalFileMoveBatch::doDBUpdates | ( | ) |
Do the database updates and return a new FileRepoStatus indicating how many rows where updated.
Definition at line 2739 of file LocalFile.php.
References $db, $oldCount, $total, array(), file, and DatabaseBase\update().
Referenced by execute().
LocalFileMoveBatch::execute | ( | ) |
Perform the move.
Definition at line 2681 of file LocalFile.php.
References cleanupSource(), cleanupTarget(), doDBUpdates(), file, getMoveTriplets(), FileRepo\OVERWRITE_SAME, removeNonexistentFiles(), wfDebugLog(), and wfLocalFile().
LocalFileMoveBatch::getMoveTriplets | ( | ) |
Generate triplets for FileRepo::storeBatch().
Definition at line 2791 of file LocalFile.php.
References array(), as, file, and wfDebugLog().
Referenced by execute().
LocalFileMoveBatch::removeNonexistentFiles | ( | $triplets | ) |
Removes non-existent files from move batch.
array | $triplets |
Definition at line 2813 of file LocalFile.php.
References $file, $files, array(), as, file, and wfDebugLog().
Referenced by execute().
|
protected |
Definition at line 2601 of file LocalFile.php.
|
protected |
Definition at line 2595 of file LocalFile.php.
|
protected |
|
protected |
Definition at line 2591 of file LocalFile.php.
Referenced by __construct(), and removeNonexistentFiles().
|
protected |
Definition at line 2599 of file LocalFile.php.
Referenced by doDBUpdates().
|
protected |
Definition at line 2597 of file LocalFile.php.
|
protected |