\Horde_Prefs_Cache_Session

Session cache implementation for the preferences system.

Summary

Methods
Properties
Constants
__construct()
get()
store()
remove()
No public properties found
No constants found
No protected methods found
$_params
$_key
N/A
No private methods found
No private properties found
N/A

Properties

$_params

$_params : string

Configuration parameters.

'user' is always available as an entry.

Type

string

$_key

$_key : string

Session key.

Type

string

Methods

__construct()

__construct(string  $user, array  $params = array()) 

Constructor.

Parameters

string $user

The username.

array $params

Additional configuration parameters.

get()

get(string  $scope) : mixed

Retrieves the requested preferences scope from the cache backend.

Parameters

string $scope

Scope specifier.

Returns

mixed —

Returns false if no data is available, otherwise the Horde_Prefs_Scope object.

store()

store(\Horde_Prefs_Scope  $scope_ob) 

Stores preferences in the cache backend.

Parameters

\Horde_Prefs_Scope $scope_ob

The scope object to store.

remove()

remove(string  $scope = null) 

Removes preferences from the cache.

Parameters

string $scope

The scope to remove. If null, clears entire cache.