DatabaseMessageIndex Class Reference

Storage on the database itself. More...

Inheritance diagram for DatabaseMessageIndex:
Inheritance graph
[legend]
Collaboration diagram for DatabaseMessageIndex:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 retrieve ()

Protected Member Functions

 get ($key)
 Looks up the stored value for single key.
 store (array $array)

Protected Attributes

 $index

Detailed Description

Storage on the database itself.

This is likely to be the slowest backend. However it scales okay and provides random access. It also doesn't need any special setup, the database table is added with update.php together with other tables, which is the reason this is the default backend. It also works well on multi-server setup without needing for shared file storage.

Since:
2012-04-12

Definition at line 312 of file MessageIndex.php.


Member Function Documentation

DatabaseMessageIndex::get ( key  )  [protected]

Looks up the stored value for single key.

Only for testing.

Since:
2012-04-10
Parameters:
string $key
Returns:
string|array|null

Reimplemented from MessageIndex.

Reimplemented in TestableDatabaseMessageIndex.

Definition at line 334 of file MessageIndex.php.

Here is the call graph for this function:

DatabaseMessageIndex::retrieve (  ) 
Returns:
array

Reimplemented from MessageIndex.

Definition at line 317 of file MessageIndex.php.

Here is the call graph for this function:

DatabaseMessageIndex::store ( array $  array  )  [protected]

Reimplemented from MessageIndex.

Reimplemented in TestableDatabaseMessageIndex.

Definition at line 355 of file MessageIndex.php.

Here is the call graph for this function:


Member Data Documentation

DatabaseMessageIndex::$index [protected]

Definition at line 314 of file MessageIndex.php.


The documentation for this class was generated from the following file:
Generated on Tue Oct 29 00:00:45 2013 for MediaWiki Translate Extension by  doxygen 1.6.3