MediaWiki REL1_39
TrivialMediaHandlerState.php
Go to the documentation of this file.
1<?php
2
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}
Trivial implementation of MediaHandlerState.
setHandlerState(string $key, $value)
Set a value.
getHandlerState(string $key)
Get a value, or null if it does not exist.
An interface to support process-local caching of handler data associated with a given file.