MediaWiki  REL1_22
LCStore_DB Class Reference

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

Inheritance diagram for LCStore_DB:
Collaboration diagram for LCStore_DB:

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.

Public Attributes

 $batch
 $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 1078 of file LocalisationCache.php.


Member Function Documentation

Finish a write transaction.

Implements LCStore.

Definition at line 1130 of file LocalisationCache.php.

LCStore_DB::get ( code,
key 
)

Get a value.

Parameters:
string$codeLanguage code
string$keyCache key

Implements LCStore.

Definition at line 1088 of file LocalisationCache.php.

References array(), and wfGetDB().

LCStore_DB::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 1146 of file LocalisationCache.php.

Start a write transaction.

Parameters:
string$codeLanguage code

Implements LCStore.

Definition at line 1103 of file LocalisationCache.php.


Member Data Documentation

LCStore_DB::$batch

Definition at line 1085 of file LocalisationCache.php.

LCStore_DB::$currentLang

Definition at line 1079 of file LocalisationCache.php.

DatabaseBase LCStore_DB::$dbw

Definition at line 1084 of file LocalisationCache.php.

LCStore_DB::$readOnly = false

Definition at line 1086 of file LocalisationCache.php.

LCStore_DB::$writesDone = false

Definition at line 1080 of file LocalisationCache.php.


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