PHP Класс Horde_Prefs_Storage_KolabImap, horde

Автор: Gunnar Wrobel ([email protected])
Наследование: extends Horde_Prefs_Storage_Base
Показать файл Открыть проект

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

Свойство Тип Описание
$_folder string Name of the preferences default folder
$_kolab Horde_Kolab_Storage Handle for the current Kolab connection.
$_logger Horde_Log_Logger Log handler.

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

Метод Описание
__construct ( string $user, array $params = [] ) Constructor.
get ( Horde_Prefs_Scope $scope_ob ) : Horde_Prefs_Scope Retrieves the requested preferences scope from the storage backend.
listScopes ( ) : array Lists all available scopes.
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.

Защищенные методы

Метод Описание
_getStorage ( boolean $create_missing = false ) : Horde_Kolab_Storage_Data Opens a connection to the Kolab server.

Приватные методы

Метод Описание
_arrayToPref ( array $pref ) : array Convert a key => value list of preferences to the Kolab preferences.
_logMissingScope ( Exception $e, string $scope ) : null Log the missing scope.
_logMissingStorage ( Exception $e ) : null Log the missing backend.
_prefToArray ( array $pref ) : array Convert Kolab preferences data to an array.

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

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

Constructor.
public __construct ( string $user, array $params = [] )
$user string The username.
$params array Configuration parameters.
'kolab'  - (Horde_Kolab_Storage) [REQUIRED] The storage backend.
'folder' - (string) The default name of the preferences folder.
           DEFAULT: _('Preferences')

_getStorage() защищенный Метод

Opens a connection to the Kolab server.
protected _getStorage ( boolean $create_missing = false ) : Horde_Kolab_Storage_Data
$create_missing boolean Create a preferences folder if it is missing.
Результат Horde_Kolab_Storage_Data The storage backend.

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

Retrieves the requested preferences scope from the storage backend.
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.

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

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

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

Removes preferences from the backend.
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.
public store ( Horde_Prefs_Scope $scope_ob )
$scope_ob Horde_Prefs_Scope The scope object.

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

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

Name of the preferences default folder
protected string $_folder
Результат string

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

Handle for the current Kolab connection.
protected Horde_Kolab_Storage $_kolab
Результат Horde_Kolab_Storage

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

Log handler.
protected Horde_Log_Logger $_logger
Результат Horde_Log_Logger