Translate extension for MediaWiki
Loading...
Searching...
No Matches
HashMessageIndex.php
1
<?php
2
declare( strict_types = 1 );
3
4
namespace
MediaWiki\Extension\Translate\MessageLoading;
5
7
class
HashMessageIndex
extends
MessageIndexStore
{
8
private
array $index = [];
9
10
public
function
retrieve(
bool
$readLatest =
false
): array {
11
return
$this->index;
12
}
13
15
public
function
get
(
string
$key ) {
16
return
$this->index[$key] ??
null
;
17
}
18
20
public
function
store
( array $array, array $diff ): void {
21
$this->index = $array;
22
}
23
}
MediaWiki\Extension\Translate\MessageLoading\HashMessageIndex
Storage on hash.
Definition
HashMessageIndex.php:7
MediaWiki\Extension\Translate\MessageLoading\HashMessageIndex\store
store(array $array, array $diff)
@inheritDoc
Definition
HashMessageIndex.php:20
MediaWiki\Extension\Translate\MessageLoading\MessageIndexStore
Definition
MessageIndexStore.php:11
src
MessageLoading
HashMessageIndex.php
Generated by
1.10.0