Definition at line 14 of file MessageChangeStorage.php.
◆ getCdbPath()
static MessageChangeStorage::getCdbPath |
( |
| $name | ) |
|
|
static |
Get a full path to file in a known location.
- Parameters
-
string | $name | Which file to use. |
- Returns
- string
Definition at line 53 of file MessageChangeStorage.php.
◆ getGroupChanges()
static MessageChangeStorage::getGroupChanges |
( |
| $cdbPath, |
|
|
| $groupId ) |
|
static |
Fetches changes for a group from the message change file.
- Parameters
-
string | $cdbPath | Path of the cdb file. |
string | $groupId | |
- Returns
- MessageSourceChange
Definition at line 63 of file MessageChangeStorage.php.
◆ getLastModifiedTime()
static MessageChangeStorage::getLastModifiedTime |
( |
| $cdbPath | ) |
|
|
static |
Gets the last modified time for the CDB file.
- Parameters
-
- Returns
- int time of last modification (Unix timestamp)
Definition at line 127 of file MessageChangeStorage.php.
◆ isModifiedSince()
static MessageChangeStorage::isModifiedSince |
( |
| $cdbPath, |
|
|
| $time ) |
|
static |
Checks if the CDB file has been modified since the time given.
- Parameters
-
string | $cdbPath | |
int | $time | Unix timestamp |
- Returns
- bool
Definition at line 144 of file MessageChangeStorage.php.
◆ isValidCdbName()
static MessageChangeStorage::isValidCdbName |
( |
| $name | ) |
|
|
static |
◆ writeChanges()
static MessageChangeStorage::writeChanges |
( |
array | $changes, |
|
|
| $file ) |
|
static |
Writes change array as a serialized file.
- Parameters
-
MessageSourceChange[] | $changes | Array of changes as returned by processGroup indexed by message group id. |
string | $file | Which file to use. |
Definition at line 24 of file MessageChangeStorage.php.
◆ writeGroupChanges()
static MessageChangeStorage::writeGroupChanges |
( |
MessageSourceChange | $changes, |
|
|
| $groupId, |
|
|
| $cdbPath ) |
|
static |
Writes changes for a group.
Has to read the changes first from the file, and then re-write them to the file.
- Parameters
-
MessageSourceChange | $changes | |
string | $groupId | |
string | $cdbPath | Path of the cdb file. |
Definition at line 88 of file MessageChangeStorage.php.
◆ DEFAULT_NAME
const MessageChangeStorage::DEFAULT_NAME = 'default' |
The documentation for this class was generated from the following file: