Handles storage / retrieval of data from message change files. More...
Static Public Member Functions | |
| static | writeChanges (array $changes, string $file) |
| Writes change array as a serialized file. | |
| static | isValidCdbName (string $fileName) |
| Validate a file name. | |
| static | getCdbPath (string $fileName) |
| Get a full path to file in a known location. | |
| static | getGroupChanges (string $cdbPath, string $groupId) |
| static | writeGroupChanges (MessageSourceChange $changes, string $groupId, string $cdbPath) |
| Writes changes for a group. | |
| static | getLastModifiedTime (string $cdbPath) |
| Gets the last modified time for the CDB file. | |
| static | isModifiedSince (string $cdbPath, int $unixTimestamp) |
| Checks if the CDB file has been modified since the time given. | |
Public Attributes | |
| const | DEFAULT_NAME = 'default' |
Handles storage / retrieval of data from message change files.
Definition at line 17 of file MessageChangeStorage.php.
|
static |
Get a full path to file in a known location.
Definition at line 44 of file MessageChangeStorage.php.
|
static |
Definition at line 48 of file MessageChangeStorage.php.
|
static |
Gets the last modified time for the CDB file.
Definition at line 110 of file MessageChangeStorage.php.
|
static |
Checks if the CDB file has been modified since the time given.
Definition at line 122 of file MessageChangeStorage.php.
|
static |
Validate a file name.
Definition at line 39 of file MessageChangeStorage.php.
|
static |
Writes change array as a serialized file.
| MessageSourceChange[] | $changes | Array of changes as returned by processGroup indexed by message group id. |
| string | $file | Which file to use. |
Definition at line 26 of file MessageChangeStorage.php.
|
static |
Writes changes for a group.
Has to read the changes first from the file and then re-write them to the file.
Definition at line 70 of file MessageChangeStorage.php.
| const MediaWiki\Extension\Translate\Synchronization\MessageChangeStorage::DEFAULT_NAME = 'default' |
Definition at line 18 of file MessageChangeStorage.php.