PHP 클래스 Horde_Kolab_Storage_List_Cache, 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.
파일 보기 프로젝트 열기: horde/horde 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( Horde_Kolab_Storage_Cache $cache, array $parameters = [] ) Constructor.
getFolderTypes ( ) : array Returns the folder type annotation from the cache.
getFolders ( ) : array Returns the list of folders from the cache.
getListId ( ) : string Return the ID for the list cache.
getLongTerm ( string $key ) : mixed Return long term information.
getNamespace ( ) : mixed Return namespace information.
getQuery ( string $key ) : mixed Return query information.
getStamp ( ) : string Returns the last sync stamp.
hasFolderTypes ( ) : boolean Returns if the folder type annotation is stored in the cache.
hasLongTerm ( string $key ) : boolean Is the specified long term data available in the cache?
hasNamespace ( ) : boolean Returns if the namespace information is available.
hasQuery ( string $key ) : boolean Is the specified query data available in the cache?
hasSupport ( string $capability ) : boolean Has the list support for the requested capability?
isInitialized ( ) : boolean Check if the cache has been initialized.
issetSupport ( $capability ) : boolean Has the capability support already been cached?
save ( ) : null Cache the list data.
setLongTerm ( string $key, mixed $data ) : null Set long term information.
setNamespace ( mixed $data ) : null Set namespace information.
setQuery ( string $key, mixed $data ) : null Set query information.
setSupport ( string $capability, boolean $flag ) : null Set if the list supports the given capability.
store ( array $folders = null, array $types = null ) : null Store the folder list and folder type annotations in the cache.

비공개 메소드들

메소드 설명
_load ( ) : mixed Retrieve the cached list data.
_setListId ( ) Compose the list key.

메소드 상세

__construct() 공개 메소드

Constructor.
public __construct ( Horde_Kolab_Storage_Cache $cache, array $parameters = [] )
$cache Horde_Kolab_Storage_Cache The core cache driver.
$parameters array Connection parameters that are only recorded and have no further impact.

getFolderTypes() 공개 메소드

Returns the folder type annotation from the cache.
public getFolderTypes ( ) : array
리턴 array The list folder types with the folder names as key and the folder type as values.

getFolders() 공개 메소드

Returns the list of folders from the cache.
public getFolders ( ) : array
리턴 array The list of folders, represented as a list of strings.

getListId() 공개 메소드

Return the ID for the list cache.
public getListId ( ) : string
리턴 string The unique ID for the list used when caching it.

getLongTerm() 공개 메소드

Return long term information.
public getLongTerm ( string $key ) : mixed
$key string The long term key.
리턴 mixed The long term data.

getNamespace() 공개 메소드

Return namespace information.
public getNamespace ( ) : mixed
리턴 mixed The namespace data.

getQuery() 공개 메소드

Return query information.
public getQuery ( string $key ) : mixed
$key string The query key.
리턴 mixed The query data.

getStamp() 공개 메소드

Returns the last sync stamp.
public getStamp ( ) : string
리턴 string The last sync stamp.

hasFolderTypes() 공개 메소드

Returns if the folder type annotation is stored in the cache.
public hasFolderTypes ( ) : boolean
리턴 boolean True if the type annotation is available.

hasLongTerm() 공개 메소드

Is the specified long term data available in the cache?
public hasLongTerm ( string $key ) : boolean
$key string The long term key.
리턴 boolean True in case cached data is available.

hasNamespace() 공개 메소드

Returns if the namespace information is available.
public hasNamespace ( ) : boolean
리턴 boolean True if the information exists in the cache.

hasQuery() 공개 메소드

Is the specified query data available in the cache?
public hasQuery ( string $key ) : boolean
$key string The query key.
리턴 boolean True in case cached data is available.

hasSupport() 공개 메소드

Has the list support for the requested capability?
public hasSupport ( string $capability ) : boolean
$capability string The name of the requested capability.
리턴 boolean True if the backend supports the requested capability.

isInitialized() 공개 메소드

Check if the cache has been initialized.
public isInitialized ( ) : boolean
리턴 boolean True if cache data is available.

issetSupport() 공개 메소드

Has the capability support already been cached?
public issetSupport ( $capability ) : boolean
리턴 boolean True if the value is already in the cache.

save() 공개 메소드

Cache the list data.
public save ( ) : null
리턴 null

setLongTerm() 공개 메소드

Set long term information.
public setLongTerm ( string $key, mixed $data ) : null
$key string The long term key.
$data mixed The long term data.
리턴 null

setNamespace() 공개 메소드

Set namespace information.
public setNamespace ( mixed $data ) : null
$data mixed The namespace data.
리턴 null

setQuery() 공개 메소드

Set query information.
public setQuery ( string $key, mixed $data ) : null
$key string The query key.
$data mixed The query data.
리턴 null

setSupport() 공개 메소드

Set if the list supports the given capability.
public setSupport ( string $capability, boolean $flag ) : null
$capability string The name of the requested capability.
$flag boolean True if the capability is supported.
리턴 null

store() 공개 메소드

Store the folder list and folder type annotations in the cache.
public store ( array $folders = null, array $types = null ) : null
$folders array
$types array
리턴 null