PHP Класс Horde_Prefs_Storage_Base, horde

Автор: Michael Slusarz ([email protected])
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$_params string 'user' is always available as an entry.

Открытые методы

Метод Описание
__construct ( string $user, array $params = [] ) Constructor.
get ( Horde_Prefs_Scope $scope_ob ) : Horde_Prefs_Scope Retrieves the requested preferences scope from the storage backend.
getParams ( ) : array Get the list of driver parameters.
listScopes ( ) : array Lists all available scopes.
onChange ( string $scope, string $pref ) Called whenever a preference value is changed.
remove ( string $scope = null, string $pref = null ) Removes preferences from the backend.
store ( Horde_Prefs_Scope $scope_ob ) Stores changed preferences in the storage backend.

Описание методов

__construct() публичный Метод

Constructor.
public __construct ( string $user, array $params = [] )
$user string The username.
$params array Additional configuration parameters.

get() абстрактный публичный Метод

Retrieves the requested preferences scope from the storage backend.
abstract public get ( Horde_Prefs_Scope $scope_ob ) : Horde_Prefs_Scope
$scope_ob Horde_Prefs_Scope The scope object.
Результат Horde_Prefs_Scope The modified scope object.

getParams() публичный Метод

Get the list of driver parameters.
public getParams ( ) : array
Результат array Driver parameters.

listScopes() публичный Метод

Lists all available scopes.
public listScopes ( ) : array
Результат array The list of scopes stored in the backend.

onChange() публичный Метод

Called whenever a preference value is changed.
public onChange ( string $scope, string $pref )
$scope string Scope specifier.
$pref string The preference name.

remove() абстрактный публичный Метод

Removes preferences from the backend.
abstract public remove ( string $scope = null, string $pref = null )
$scope string The scope of the prefs to clear. If null, clears all scopes.
$pref string The pref to clear. If null, clears the entire scope.

store() абстрактный публичный Метод

Stores changed preferences in the storage backend.
abstract public store ( Horde_Prefs_Scope $scope_ob )
$scope_ob Horde_Prefs_Scope The scope object.

Описание свойств

$_params защищенное свойство

'user' is always available as an entry.
protected string $_params
Результат string