Свойство | Тип | Описание | |
---|---|---|---|
$_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. |
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') |
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. |
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. |
public listScopes ( ) : array | ||
Результат | array | The list of scopes stored in the backend. |
public store ( Horde_Prefs_Scope $scope_ob ) | ||
$scope_ob | Horde_Prefs_Scope | The scope object. |
protected string $_folder | ||
Результат | string |
protected Horde_Kolab_Storage $_kolab | ||
Результат | Horde_Kolab_Storage |