MediaWiki
1.30.0
|
Public Member Functions | |
__construct ( $conf=[]) | |
finishWrite () | |
Finish a write transaction. More... | |
get ( $code, $key) | |
Get a value. More... | |
set ( $key, $value) | |
Set a key to a given value. More... | |
startWrite ( $code) | |
Start a write transaction. More... | |
Static Public Member Functions | |
static | decode (array $encoded) |
Decode something that was encoded with encode. More... | |
static | encode ( $value) |
Encodes a value into an array format. More... | |
Private Attributes | |
string null | $currentLang = null |
Current language code. More... | |
array | $data = [] |
Localisation data. More... | |
string | $directory |
Directory for cache files. More... | |
string | $fname = null |
File name. More... | |
Definition at line 26 of file LCStoreStaticArray.php.
LCStoreStaticArray::__construct | ( | $conf = [] | ) |
Definition at line 39 of file LCStoreStaticArray.php.
References $wgCacheDirectory, directory, and global.
|
static |
Decode something that was encoded with encode.
array | $encoded |
RuntimeException |
Definition at line 95 of file LCStoreStaticArray.php.
References $data, $type, and unserialize().
Referenced by get().
|
static |
Encodes a value into an array format.
mixed | $value |
RuntimeException |
Definition at line 69 of file LCStoreStaticArray.php.
References $value, and serialize().
Referenced by set().
LCStoreStaticArray::finishWrite | ( | ) |
Finish a write transaction.
Implements LCStore.
Definition at line 114 of file LCStoreStaticArray.php.
References data.
LCStoreStaticArray::get | ( | $code, | |
$key | |||
) |
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 58 of file LCStoreStaticArray.php.
References $currentLang, $value, data, and encode().
LCStoreStaticArray::startWrite | ( | $code | ) |
|
private |
|
private |
Localisation data.
Definition at line 31 of file LCStoreStaticArray.php.
|
private |
Directory for cache files.
Definition at line 37 of file LCStoreStaticArray.php.
|
private |
File name.
Definition at line 34 of file LCStoreStaticArray.php.
Referenced by get(), and startWrite().