PHP 클래스 Horde_Prefs_Storage_File, horde

저자: Thomas Jarosch ([email protected])
저자: Michael Slusarz ([email protected])
상속: extends Horde_Prefs_Storage_Base
파일 보기 프로젝트 열기: horde/horde

보호된 프로퍼티들

프로퍼티 타입 설명
$_fileCache array Cached unserialized data of all scopes.
$_fullpath string Full path to the current preference file.

공개 메소드들

메소드 설명
__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.
updateFileFormat ( ) Updates format of file.

보호된 메소드들

메소드 설명
_loadFileCache ( ) : boolean Load the preferences from the files.

메소드 상세

__construct() 공개 메소드

Constructor.
public __construct ( string $user, array $params = [] )
$user string The username.
$params array Configuration parameters:
'directory' - (string) [REQUIRED] Preference storage directory.

_loadFileCache() 보호된 메소드

Load the preferences from the files.
protected _loadFileCache ( ) : boolean
리턴 boolean True on success.

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.

updateFileFormat() 공개 메소드

Updates format of file.
public updateFileFormat ( )

프로퍼티 상세

$_fileCache 보호되어 있는 프로퍼티

Cached unserialized data of all scopes.
protected array $_fileCache
리턴 array

$_fullpath 보호되어 있는 프로퍼티

Full path to the current preference file.
protected string $_fullpath
리턴 string