MediaWiki  1.23.2
LCStoreDB Class Reference

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

Inheritance diagram for LCStoreDB:
Collaboration diagram for LCStoreDB:

Public Member Functions

 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...
 

Private 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 1143 of file LocalisationCache.php.

Member Function Documentation

◆ finishWrite()

LCStoreDB::finishWrite ( )

Finish a write transaction.

Implements LCStore.

Definition at line 1196 of file LocalisationCache.php.

References array(), and batch.

◆ get()

LCStoreDB::get (   $code,
  $key 
)

Get a value.

Parameters
string$codeLanguage code
string$keyCache key

Implements LCStore.

Definition at line 1153 of file LocalisationCache.php.

References array(), DB_MASTER, DB_SLAVE, and wfGetDB().

◆ set()

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 1212 of file LocalisationCache.php.

References $value, array(), and batch.

◆ startWrite()

LCStoreDB::startWrite (   $code)

Start a write transaction.

Parameters
string$codeLanguage code

Implements LCStore.

Definition at line 1168 of file LocalisationCache.php.

References $e, array(), batch, DB_MASTER, and wfGetDB().

Member Data Documentation

◆ $batch

LCStoreDB::$batch
private

Definition at line 1150 of file LocalisationCache.php.

◆ $currentLang

LCStoreDB::$currentLang
private

Definition at line 1144 of file LocalisationCache.php.

◆ $dbw

DatabaseBase LCStoreDB::$dbw
private

Definition at line 1149 of file LocalisationCache.php.

◆ $readOnly

LCStoreDB::$readOnly = false
private

Definition at line 1151 of file LocalisationCache.php.

◆ $writesDone

LCStoreDB::$writesDone = false
private

Definition at line 1145 of file LocalisationCache.php.


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