Translate extension for MediaWiki
 
Loading...
Searching...
No Matches
MediaWiki\Extension\Translate\MessageLoading\MessageIndexStore Class Reference
Inheritance diagram for MediaWiki\Extension\Translate\MessageLoading\MessageIndexStore:
MediaWiki\Extension\Translate\MessageLoading\CDBMessageIndex MediaWiki\Extension\Translate\MessageLoading\DatabaseMessageIndex MediaWiki\Extension\Translate\MessageLoading\HashMessageIndex MediaWiki\Extension\Translate\MessageLoading\SerializedMessageIndex

Public Member Functions

 retrieve (bool $readLatest=false)
 
 get (string $key)
 
 store (array $array, array $diff)
 
 getKeys ()
 

Protected Member Functions

 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

Since
2024.05 @license GPL-2.0-or-later
Author
Niklas Laxström

Definition at line 11 of file MessageIndexStore.php.

Member Function Documentation

◆ get()

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

◆ getKeys()

MediaWiki\Extension\Translate\MessageLoading\MessageIndexStore::getKeys ( )
Returns
string[]

Reimplemented in MediaWiki\Extension\Translate\MessageLoading\CDBMessageIndex.

Definition at line 23 of file MessageIndexStore.php.

◆ serialize()

MediaWiki\Extension\Translate\MessageLoading\MessageIndexStore::serialize ( $data)
protected

These are probably slower than serialize and unserialize, but they are more space efficient because we only need strings and arrays.

Parameters
mixed$data
Returns
mixed

Definition at line 34 of file MessageIndexStore.php.

◆ store()

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

◆ unserialize()

MediaWiki\Extension\Translate\MessageLoading\MessageIndexStore::unserialize ( $data)
protected

Definition at line 38 of file MessageIndexStore.php.


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