MediaWiki REL1_39
|
Localisation cache storage based on PHP files and static arrays. More...
Public Member Functions | |
__construct ( $conf=[]) | |
finishWrite () | |
Finish a write transaction. | |
get ( $code, $key) | |
Get a value. | |
set ( $key, $value) | |
Set a key to a given value. | |
startWrite ( $code) | |
Start a write transaction. | |
Static Public Member Functions | |
static | decode ( $encoded) |
Decode something that was encoded with encode. | |
static | encode ( $value) |
Encodes a value into an array format. | |
Localisation cache storage based on PHP files and static arrays.
Definition at line 29 of file LCStoreStaticArray.php.
LCStoreStaticArray::__construct | ( | $conf = [] | ) |
Definition at line 42 of file LCStoreStaticArray.php.
|
static |
Decode something that was encoded with encode.
mixed | $encoded |
RuntimeException |
Definition at line 117 of file LCStoreStaticArray.php.
References $type, and unserialize().
Referenced by get().
|
static |
Encodes a value into an array format.
mixed | $value |
RuntimeException |
Definition at line 90 of file LCStoreStaticArray.php.
References serialize().
Referenced by set().
LCStoreStaticArray::finishWrite | ( | ) |
Finish a write transaction.
Implements LCStore.
Definition at line 140 of file LCStoreStaticArray.php.
LCStoreStaticArray::get | ( | $code, | |
$key ) |
Get a value.
string | $code | Language code |
string | $key | Cache key |
Implements LCStore.
Definition at line 157 of file LCStoreStaticArray.php.
References decode().
LCStoreStaticArray::set | ( | $key, | |
$value ) |
Set a key to a given value.
startWrite() must be called before this is called, and finishWrite() must be called afterwards.
string | $key | |
mixed | $value |
Implements LCStore.
Definition at line 60 of file LCStoreStaticArray.php.
References encode().
LCStoreStaticArray::startWrite | ( | $code | ) |
Start a write transaction.
string | $code | Language code |
Implements LCStore.
Definition at line 46 of file LCStoreStaticArray.php.
References wfMkdirParents().