PHP Класс Horde_Core_Factory_Prefs, horde

Copyright 2010-2016 Horde LLC (http://www.horde.org/) See the enclosed file COPYING for license information (LGPL). If you did not receive this file, see http://www.horde.org/licenses/lgpl21.
Автор: Michael Slusarz ([email protected])
Наследование: extends Horde_Core_Factory_Base
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
$storage Horde_Prefs_Storage Storage driver.

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

Метод Описание
clearCache ( ) Clears the instances cache.
create ( string $scope = 'horde', array $opts = [] ) : Horde_Prefs Return the Horde_Prefs:: instance.
sizeCallback ( string $pref, integer $size ) : boolean Max size callback.

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

Метод Описание
_getCache ( string $user, boolean $fallback ) : Horde_Cache Return the cache object to use for the prefs driver.
_notifyError ( mixed $e ) Notifies (once) if one of the preference backends is not available and logs details for the administrator.

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

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

Return the cache object to use for the prefs driver.
protected _getCache ( string $user, boolean $fallback ) : Horde_Cache
$user string Username.
$fallback boolean Return the fallback cache driver?
Результат Horde_Cache Cache object.

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

Notifies (once) if one of the preference backends is not available and logs details for the administrator.
protected _notifyError ( mixed $e )
$e mixed Error to log.

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

Clears the instances cache.
public clearCache ( )

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

Return the Horde_Prefs:: instance.
public create ( string $scope = 'horde', array $opts = [] ) : Horde_Prefs
$scope string The scope for this set of preferences.
$opts array See Horde_Prefs::__construct(). Additional parameters: - driver: (boolean) Use this driver instead of the value in the Horde config. - driver_params: (array) Use these driver parameters instead of the values in the Horde config.
Результат Horde_Prefs The singleton instance.

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

Max size callback.
public sizeCallback ( string $pref, integer $size ) : boolean
$pref string Preference name.
$size integer Size (in bytes).
Результат boolean True if oversized.

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

$storage публичное свойство

Storage driver.
С версии: 2.5.0
public Horde_Prefs_Storage $storage
Результат Horde_Prefs_Storage