PHP Class Elgg\Cache\PluginSettingsCache

Since: 2.1
Show file Open project: elgg/elgg

Public Methods

Method Description
clear ( integer $entity_guid ) : void Clear cache for an entity
clearAll ( ) : void Clear entire cache
getAll ( integer $entity_guid ) : null | string[] Get all the non-user, non-internal settings for a plugin
setCachedValues ( array $cache ) : void Set the settings cache for known plugins

Method Details

clear() public method

Clear cache for an entity
public clear ( integer $entity_guid ) : void
$entity_guid integer The GUID of the entity
return void

clearAll() public method

Clear entire cache
public clearAll ( ) : void
return void

getAll() public method

Get all the non-user, non-internal settings for a plugin
public getAll ( integer $entity_guid ) : null | string[]
$entity_guid integer The GUID of the entity
return null | string[] null if settings are not loaded for this entity

setCachedValues() public method

Set the settings cache for known plugins
public setCachedValues ( array $cache ) : void
$cache array The settings from the boot data
return void