MediaWiki REL1_37
|
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. | |
Static Private Member Functions | |
static | isValueArray (array $arr) |
Determine whether this array contains only scalar values. | |
Private Attributes | |
string null | $currentLang = null |
Current language code. | |
array | $data = [] |
Localisation data. | |
string | $directory |
Directory for cache files. | |
string | $fname = null |
File name. | |
Definition at line 28 of file LCStoreStaticArray.php.
LCStoreStaticArray::__construct | ( | $conf = [] | ) |
Definition at line 41 of file LCStoreStaticArray.php.
|
static |
Decode something that was encoded with encode.
mixed | $encoded |
RuntimeException |
Definition at line 116 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 89 of file LCStoreStaticArray.php.
References serialize().
Referenced by set().
LCStoreStaticArray::finishWrite | ( | ) |
Finish a write transaction.
Implements LCStore.
Definition at line 139 of file LCStoreStaticArray.php.
LCStoreStaticArray::get | ( | $code, | |
$key | |||
) |
|
staticprivate |
Determine whether this array contains only scalar values.
array | $arr |
Definition at line 69 of file LCStoreStaticArray.php.
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 59 of file LCStoreStaticArray.php.
References $currentLang, and encode().
LCStoreStaticArray::startWrite | ( | $code | ) |
Start a write transaction.
string | $code | Language code |
Implements LCStore.
Definition at line 45 of file LCStoreStaticArray.php.
References $fname, and wfMkdirParents().
|
private |
|
private |
Localisation data.
Definition at line 33 of file LCStoreStaticArray.php.
|
private |
Directory for cache files.
Definition at line 39 of file LCStoreStaticArray.php.
|
private |
File name.
Definition at line 36 of file LCStoreStaticArray.php.
Referenced by get(), and startWrite().