MediaWiki REL1_41
LCStoreStaticArray Class Reference

Localisation cache storage based on PHP files and static arrays. More...

Inherits LCStore.

Collaboration diagram for LCStoreStaticArray:

Public Member Functions

 __construct ( $conf=[])
 
 finishWrite ()
 Finish a cache write transaction.
 
 get ( $code, $key)
 Get a value.
 
 set ( $key, $value)
 Set a key to a given value.
 
 startWrite ( $code)
 Start a cache 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.
 

Detailed Description

Localisation cache storage based on PHP files and static arrays.

Since
1.26

Definition at line 29 of file LCStoreStaticArray.php.

Constructor & Destructor Documentation

◆ __construct()

LCStoreStaticArray::__construct ( $conf = [])

Definition at line 42 of file LCStoreStaticArray.php.

Member Function Documentation

◆ decode()

static LCStoreStaticArray::decode ( $encoded)
static

Decode something that was encoded with 'encode'.

Parameters
mixed$encoded
Returns
array|mixed
Exceptions
RuntimeException

Definition at line 117 of file LCStoreStaticArray.php.

Referenced by get().

◆ encode()

static LCStoreStaticArray::encode ( $value)
static

Encodes a value into an array format.

Parameters
mixed$value
Returns
array|mixed
Exceptions
RuntimeException

Definition at line 90 of file LCStoreStaticArray.php.

Referenced by set().

◆ finishWrite()

LCStoreStaticArray::finishWrite ( )

Finish a cache write transaction.

Implements LCStore.

Definition at line 140 of file LCStoreStaticArray.php.

◆ get()

LCStoreStaticArray::get ( $code,
$key )

Get a value.

Parameters
string$codeLanguage code
string$keyCache key

Implements LCStore.

Definition at line 157 of file LCStoreStaticArray.php.

References decode().

◆ set()

LCStoreStaticArray::set ( $key,
$value )

Set a key to a given value.

startWrite() must be called before this is called, and finishWrite() must be called after.

Parameters
string$key
mixed$value

Implements LCStore.

Definition at line 60 of file LCStoreStaticArray.php.

References encode().

◆ startWrite()

LCStoreStaticArray::startWrite ( $code)

Start a cache write transaction.

Parameters
string$codeLanguage code

Implements LCStore.

Definition at line 46 of file LCStoreStaticArray.php.

References wfMkdirParents().


The documentation for this class was generated from the following file: