Documentation

Horde_Prefs_Cache_Base
in package

Cache driver for the preferences system.

Tags
author

Michael Slusarz slusarz@horde.org

category

Horde

license

http://www.horde.org/licenses/lgpl21 LGPL 2.1

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
throws
Horde_Prefs_Exception
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
throws
Horde_Prefs_Exception
Return values
mixed

Search results