Translate extension for MediaWiki
 
Loading...
Searching...
No Matches
MediaWiki\Extension\Translate\MessageLoading\DatabaseMessageIndex Class Reference

Storage on the database itself. More...

Inheritance diagram for MediaWiki\Extension\Translate\MessageLoading\DatabaseMessageIndex:
MediaWiki\Extension\Translate\MessageLoading\MessageIndexStore

Public Member Functions

 retrieve (bool $readLatest=false)
 
 get (string $key)
 @inheritDoc
 
 store (array $array, array $diff)
 
- Public Member Functions inherited from MediaWiki\Extension\Translate\MessageLoading\MessageIndexStore
 getKeys ()
 

Additional Inherited Members

- Protected Member Functions inherited from MediaWiki\Extension\Translate\MessageLoading\MessageIndexStore
 serialize ( $data)
 These are probably slower than serialize and unserialize, but they are more space efficient because we only need strings and arrays.
 
 unserialize ( $data)
 

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.

Definition at line 18 of file DatabaseMessageIndex.php.

Constructor & Destructor Documentation

◆ __construct()

MediaWiki\Extension\Translate\MessageLoading\DatabaseMessageIndex::__construct ( )

Definition at line 22 of file DatabaseMessageIndex.php.

Member Function Documentation

◆ get()

MediaWiki\Extension\Translate\MessageLoading\DatabaseMessageIndex::get ( string $key)

@inheritDoc

Reimplemented from MediaWiki\Extension\Translate\MessageLoading\MessageIndexStore.

Definition at line 46 of file DatabaseMessageIndex.php.

◆ retrieve()

MediaWiki\Extension\Translate\MessageLoading\DatabaseMessageIndex::retrieve ( bool $readLatest = false)

◆ store()

MediaWiki\Extension\Translate\MessageLoading\DatabaseMessageIndex::store ( array $array,
array $diff )

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