Horde_Prefs_Cache_Base
in package
Cache driver for the preferences system.
Tags
Table of Contents
- $_params : string
- Configuration parameters.
- __construct() : mixed
- Constructor.
- get() : mixed
- Retrieves the requested preferences scope from the cache backend.
- remove() : mixed
- Removes preferences from the cache.
- store() : mixed
- Stores preferences in the cache backend.
Properties
$_params
Configuration parameters.
protected
string
$_params
= array()
'user' is always available as an entry.
Methods
__construct()
Constructor.
public
__construct(string $user[, array<string|int, mixed> $params = array() ]) : mixed
Parameters
- $user : string
-
The username.
- $params : array<string|int, mixed> = array()
-
Additional configuration parameters.
Return values
mixed —get()
Retrieves the requested preferences scope from the cache backend.
public
abstract get(string $scope) : mixed
Parameters
- $scope : string
-
Scope specifier.
Tags
Return values
mixed —Returns false if no data is available, otherwise the Horde_Prefs_Scope object.
remove()
Removes preferences from the cache.
public
abstract remove([string $scope = null ]) : mixed
Parameters
- $scope : string = null
-
The scope to remove. If null, clears entire cache.
Tags
Return values
mixed —store()
Stores preferences in the cache backend.
public
abstract store(Horde_Prefs_Scope $scope_ob) : mixed
Parameters
- $scope_ob : Horde_Prefs_Scope
-
The scope object to store.