|
MediaWiki master
|
An interface to support process-local caching of handler data associated with a given file. More...
Inherited by MediaWiki\FileRepo\File\File, and TrivialMediaHandlerState.
Public Member Functions | |
| getHandlerState (string $key) | |
| Get a value, or null if it does not exist. | |
| setHandlerState (string $key, $value) | |
| Set a value. | |
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.
Definition at line 10 of file MediaHandlerState.php.
| MediaHandlerState::getHandlerState | ( | string | $key | ) |
Get a value, or null if it does not exist.
| string | $key |
Implemented in MediaWiki\FileRepo\File\File, and TrivialMediaHandlerState.
| MediaHandlerState::setHandlerState | ( | string | $key, |
| $value ) |
Set a value.
| string | $key | |
| mixed | $value |
Implemented in MediaWiki\FileRepo\File\File, and TrivialMediaHandlerState.