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
파일 보기 프로젝트 열기: horde/horde

공개 프로퍼티들

프로퍼티 타입 설명
$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