MediaWiki
1.32.5
|
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... | |
execute () | |
Perform the move. More... | |
Protected Member Functions | |
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 Status indicating how many rows where updated. More... | |
getMoveTriplets () | |
Generate triplets for FileRepo::storeBatch(). More... | |
removeNonexistentFiles ( $triplets) | |
Removes non-existent files from move batch. More... | |
verifyDBUpdates () | |
Verify the database updates and return a new Status indicating how many rows would be updated. More... | |
Protected Attributes | |
$archive | |
$cur | |
IDatabase | $db |
LocalFile | $file |
$oldCount | |
$olds | |
Title | $target |
Helper class for file movement.
Definition at line 3165 of file LocalFile.php.
Definition at line 3187 of file LocalFile.php.
References $file, $target, file, and File\getRepo().
LocalFileMoveBatch::addCurrent | ( | ) |
Add the current image to the batch.
Definition at line 3202 of file LocalFile.php.
LocalFileMoveBatch::addOlds | ( | ) |
Add the old versions of the image to the batch.
Definition at line 3210 of file LocalFile.php.
References as, captcha-old\count, File\DELETED_FILE, list, and wfDebug().
|
protected |
|
protected |
|
protected |
Do the database updates and return a new Status indicating how many rows where updated.
Definition at line 3369 of file LocalFile.php.
References $db, and Wikimedia\Rdbms\IDatabase\update().
Referenced by execute().
LocalFileMoveBatch::execute | ( | ) |
Perform the move.
Definition at line 3260 of file LocalFile.php.
References cleanupSource(), cleanupTarget(), doDBUpdates(), file, getMoveTriplets(), FileRepo\OVERWRITE_SAME, removeNonexistentFiles(), verifyDBUpdates(), wfDebugLog(), and wfLocalFile().
|
protected |
Generate triplets for FileRepo::storeBatch().
Definition at line 3397 of file LocalFile.php.
References as, file, and wfDebugLog().
Referenced by execute().
|
protected |
Removes non-existent files from move batch.
array | $triplets |
Definition at line 3419 of file LocalFile.php.
References $file, as, file, StatusValue\newFatal(), StatusValue\newGood(), and wfDebugLog().
Referenced by execute().
|
protected |
Verify the database updates and return a new Status indicating how many rows would be updated.
Definition at line 3332 of file LocalFile.php.
References $db, file, and Wikimedia\Rdbms\IDatabase\lockForUpdate().
Referenced by execute().
|
protected |
Definition at line 3178 of file LocalFile.php.
|
protected |
Definition at line 3172 of file LocalFile.php.
|
protected |
Definition at line 3181 of file LocalFile.php.
Referenced by doDBUpdates(), and verifyDBUpdates().
|
protected |
Definition at line 3167 of file LocalFile.php.
Referenced by __construct(), and removeNonexistentFiles().
|
protected |
Definition at line 3176 of file LocalFile.php.
|
protected |
Definition at line 3174 of file LocalFile.php.
|
protected |
Definition at line 3170 of file LocalFile.php.
Referenced by __construct().