[ Index ] |
PHP Cross Reference of MediaWiki-1.24.0 |
[Source view] [Print] [Project Stats]
Sync one file backend to another based on the journal of later. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
File Size: | 306 lines (11 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 1 file maintenance/Maintenance.php |
SyncFileBackend:: (6 methods):
__construct()
execute()
syncBackends()
syncFileBatch()
replaceNamePaths()
filesAreSame()
Class: SyncFileBackend - X-Ref
Maintenance script that syncs one file backend to another based on__construct() X-Ref |
No description |
execute() X-Ref |
No description |
syncBackends(FileBackend $src, FileBackend $dst, $start, $end, Closure $callback) X-Ref |
Sync $dst backend to $src backend based on the $src logs given after $start. Returns the journal entry ID this advanced to and handled (inclusive). param: FileBackend $src param: FileBackend $dst param: int $start Starting journal position param: int $end Starting journal position param: Closure $callback Callback to update any position file return: int|bool Journal entry ID or false if there are none |
syncFileBatch( array $paths, FileBackend $src, FileBackend $dst ) X-Ref |
Sync particular files of backend $src to the corresponding $dst backend files param: array $paths param: FileBackend $src param: FileBackend $dst return: Status |
replaceNamePaths( $paths, FileBackend $backend ) X-Ref |
Substitute the backend name of storage paths with that of a given one param: array|string $paths List of paths or single string path param: FileBackend $backend return: array|string |
filesAreSame( FileBackend $src, FileBackend $dst, $sPath, $dPath ) X-Ref |
No description |
Generated: Fri Nov 28 14:03:12 2014 | Cross-referenced by PHPXref 0.7.1 |