MediaWiki  REL1_24
LCStoreDB Class Reference

LCStore implementation which uses the standard DB functions to store data. More...

Inheritance diagram for LCStoreDB:
Collaboration diagram for LCStoreDB:

List of all members.

Public Member Functions

 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.

Private Attributes

array $batch = array()
 *
 $currentLang
DatabaseBase $dbw
 *
 $readOnly = false
 $writesDone = false

Detailed Description

LCStore implementation which uses the standard DB functions to store data.

This will work on any MediaWiki installation.

Definition at line 1137 of file LocalisationCache.php.


Member Function Documentation

Finish a write transaction.

Implements LCStore.

Definition at line 1174 of file LocalisationCache.php.

LCStoreDB::get ( code,
key 
)

Get a value.

Parameters:
string$codeLanguage code
string$keyCache key

Implements LCStore.

Definition at line 1146 of file LocalisationCache.php.

References array(), and wfGetDB().

LCStoreDB::set ( key,
value 
)

Set a key to a given value.

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

Parameters:
string$key
mixed$value

Implements LCStore.

Definition at line 1202 of file LocalisationCache.php.

LCStoreDB::startWrite ( code)

Start a write transaction.

Parameters:
string$codeLanguage code

Implements LCStore.

Definition at line 1161 of file LocalisationCache.php.


Member Data Documentation

array LCStoreDB::$batch = array() [private]

*

Definition at line 1142 of file LocalisationCache.php.

LCStoreDB::$currentLang [private]

Definition at line 1138 of file LocalisationCache.php.

DatabaseBase LCStoreDB::$dbw [private]

*

Definition at line 1141 of file LocalisationCache.php.

LCStoreDB::$readOnly = false [private]

Definition at line 1144 of file LocalisationCache.php.

LCStoreDB::$writesDone = false [private]

Definition at line 1139 of file LocalisationCache.php.


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