MediaWiki REL1_37
MediaHandlerState Interface Reference

An interface to support process-local caching of handler data associated with a given file. More...

Inheritance diagram for MediaHandlerState:

Public Member Functions

 getHandlerState (string $key)
 Get a value, or null if it does not exist.
 
 setHandlerState (string $key, $value)
 Set a value.
 

Detailed Description

An interface to support process-local caching of handler data associated with a given file.

Intended to replace the previous usage of custom properties on the File object.

Since
1.37

Definition at line 10 of file MediaHandlerState.php.

Member Function Documentation

◆ getHandlerState()

MediaHandlerState::getHandlerState ( string  $key)

Get a value, or null if it does not exist.

Parameters
string$key
Returns
mixed|null

Implemented in File, and TrivialMediaHandlerState.

◆ setHandlerState()

MediaHandlerState::setHandlerState ( string  $key,
  $value 
)

Set a value.

Parameters
string$key
mixed$value

Implemented in File, and TrivialMediaHandlerState.


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