MediaWiki
master
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\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 Thu Oct 10 2024 17:24:49 for MediaWiki by
1.10.0