Свойство | Type | Description | |
---|---|---|---|
$_cache | Horde_Kolab_Storage_Cache | The core cache driver. | |
$_data | array | The cache data. | |
$_data_id | string | Data ID. | |
$_parameters | array | Data parameters that will be recorded in the cache. |
Méthode | Description | |
---|---|---|
__construct ( Horde_Kolab_Storage_Cache $cache, array $parameters = null ) | Constructor. | |
backendMap ( array $backend_ids ) : array | Maps backend IDs to object ids. | |
getAttachment ( string $obid, string $attachment_id ) : resource | Retrieves an attachment. | |
getAttachmentByName ( string $obid, $name ) : array | Retrieves an attachment by name. | |
getAttachmentByType ( string $obid, $type ) : array | Retrieves an attachment by name. | |
getBackendToObject ( ) : array | Returns the backend ID to object ID mapping. | |
getDataId ( ) : string | Returns the ID for the data cache. | |
getDuplicates ( ) : array | Retrieves the list of object duplicates. | |
getErrors ( ) : array | Retrieves the list of object errors. | |
getLastSync ( ) : integer | Returns the timestamp of the last synchronization. | |
getObjectByBackendId ( string $obid ) : array | Retrieves the specified object from the cache. | |
getObjectToBackend ( ) : array | Returns the object ID to backend ID mapping. | |
getObjects ( ) : array | Retrieves the object list from the cache. | |
getQuery ( string $key ) : mixed | Returns query information. | |
getStamp ( ) : Horde_Kolab_Storage_Folder_Stamp | Retrieves the last stamp. | |
getVersion ( ) : string | Retrieves the data version. | |
hasQuery ( string $key ) : boolean | Is the specified query data available in the cache? | |
isInitialized ( ) : boolean | Checks if the cache has been initialized. | |
reset ( ) | Initializes the cache structure. | |
save ( ) | Caches the data. | |
setDataId ( string $data_id ) | Sets the ID for the data cache. | |
setQuery ( string $key, mixed $data ) | Sets query information. | |
store ( array $objects, Horde_Kolab_Storage_Folder_Stamp $stamp, string $version, array $delete = [] ) | Stores the objects list in the cache. |
Méthode | Description | |
---|---|---|
_checkInit ( string $key ) | Verifies that the data cache is initialized. | |
_fetchCacheEntry ( string $key ) : array | Fetches the specified cache entry in case it is present. | |
_load ( ) : mixed | Retrieves the cached list data. |
public __construct ( Horde_Kolab_Storage_Cache $cache, array $parameters = null ) | ||
$cache | Horde_Kolab_Storage_Cache | The core cache driver. |
$parameters | array | Data set parameters that are only recorded and have no further impact. |
protected _checkInit ( string $key ) | ||
$key | string | The key in the cached data array. |
protected _fetchCacheEntry ( string $key ) : array | ||
$key | string | The key in the cached data array. |
Résultat | array | The cache entry. |
public backendMap ( array $backend_ids ) : array | ||
$backend_ids | array | The list of backend IDs |
Résultat | array | A list that associates object IDs (values) to backend IDs (keys). |
public getAttachment ( string $obid, string $attachment_id ) : resource | ||
$obid | string | Object backend id. |
$attachment_id | string | Attachment ID. |
Résultat | resource | A stream opened to the attachment data. |
public getAttachmentByName ( string $obid, $name ) : array | ||
$obid | string | Object backend id. |
Résultat | array | An array of attachment resources. |
public getAttachmentByType ( string $obid, $type ) : array | ||
$obid | string | Object backend id. |
Résultat | array | An array of attachment resources. |
public getBackendToObject ( ) : array | ||
Résultat | array | The mapping. |
public getDuplicates ( ) : array | ||
Résultat | array | The list of duplicates. |
public getLastSync ( ) : integer | ||
Résultat | integer | Timestamp of the last sync. |
public getObjectByBackendId ( string $obid ) : array | ||
$obid | string | The object ID to fetch. |
Résultat | array | The list of objects. |
public getObjectToBackend ( ) : array | ||
Résultat | array | The mapping. |
public getObjects ( ) : array | ||
Résultat | array | The list of objects. |
public getStamp ( ) : Horde_Kolab_Storage_Folder_Stamp | ||
Résultat | Horde_Kolab_Storage_Folder_Stamp | The last recorded stamp. |
public getVersion ( ) : string | ||
Résultat | string | The version of the stored data. |
public isInitialized ( ) : boolean | ||
Résultat | boolean | True if cache data is available. |
protected Horde_Kolab_Storage_Cache $_cache | ||
Résultat | Horde_Kolab_Storage_Cache |
protected array $_parameters | ||
Résultat | array |