MediaWiki
REL1_37
TrivialMediaHandlerState.php
Go to the documentation of this file.
1
<?php
2
8
class
TrivialMediaHandlerState
implements
MediaHandlerState
{
10
private
$state
= [];
11
12
public
function
getHandlerState
(
string
$key ) {
13
return
$this->state[$key] ??
null
;
14
}
15
16
public
function
setHandlerState
(
string
$key, $value ) {
17
$this->state[$key] = $value;
18
}
19
}
TrivialMediaHandlerState
Trivial implementation of MediaHandlerState.
Definition
TrivialMediaHandlerState.php:8
TrivialMediaHandlerState\$state
array $state
Definition
TrivialMediaHandlerState.php:10
TrivialMediaHandlerState\setHandlerState
setHandlerState(string $key, $value)
Set a value.
Definition
TrivialMediaHandlerState.php:16
TrivialMediaHandlerState\getHandlerState
getHandlerState(string $key)
Get a value, or null if it does not exist.
Definition
TrivialMediaHandlerState.php:12
MediaHandlerState
An interface to support process-local caching of handler data associated with a given file.
Definition
MediaHandlerState.php:10
includes
media
TrivialMediaHandlerState.php
Generated on Fri Apr 5 2024 23:40:35 for MediaWiki by
1.9.8