Property | Type | Description | |
---|---|---|---|
$_data_cache | Horde_Kolab_Storage_Cache_Data | The data cache. | |
$_init | boolean | Has the cache already been loaded and validated? |
Method | Description | |
---|---|---|
__construct ( Horde_Kolab_Storage_Folder $folder, Horde_Kolab_Storage_Driver $driver, Horde_Kolab_Storage_Factory $factory, Horde_Kolab_Storage_Cache $cache, string $type = null, integer $version = 1 ) | Constructor. | |
getAttachment ( string $object_id, string $attachment_id ) : resource | Returns the specified attachment. | |
getBackendId ( $object_id ) : string | Return the backend ID for the given object ID. | |
getDuplicates ( ) : array | Retrieve the list of object duplicates. | |
getErrors ( ) : array | Retrieve the list of object errors. | |
getObject ( string $object_id ) : array | Return the specified object. | |
getObjectIds ( ) : array | Retrieve all object ids in the current folder. | |
getObjectToBackend ( ) : array | Return the mapping of object IDs to backend IDs. | |
getObjects ( ) : array | Retrieve all objects in the current folder. | |
objectIdExists ( string $object_id ) : boolean | Check if the given object ID exists. | |
synchronize ( $params = [] ) : null | Synchronize the query data with the information from the backend. |
Method | Description | |
---|---|---|
_init ( ) | Check if the cache has been initialized at all and synchronize it if not. | |
_isInitialized ( ) : null | Check if the cache has been initialized. |
Method | Description | |
---|---|---|
_completeSynchronization ( Horde_Kolab_Storage_Folder_Stamp $stamp, array $params = [] ) : null | Perform a complete synchronization. |
public __construct ( Horde_Kolab_Storage_Folder $folder, Horde_Kolab_Storage_Driver $driver, Horde_Kolab_Storage_Factory $factory, Horde_Kolab_Storage_Cache $cache, string $type = null, integer $version = 1 ) | ||
$folder | Horde_Kolab_Storage_Folder | The folder to retrieve the data from. |
$driver | Horde_Kolab_Storage_Driver | The primary connection driver. |
$factory | Horde_Kolab_Storage_Factory | The factory. |
$cache | Horde_Kolab_Storage_Cache | The cache storing data for this decorator. |
$type | string | The type of data we want to access in the folder. |
$version | integer | Format version of the object data. |
protected _init ( ) |
protected _isInitialized ( ) : null | ||
return | null |
public getAttachment ( string $object_id, string $attachment_id ) : resource | ||
$object_id | string | The object id. @since Kolab_Storage 2.1.0 |
$attachment_id | string | The attachment id. |
return | resource | An open stream to the attachment data. |
public getBackendId ( $object_id ) : string | ||
return | string | The backend ID for the object. |
public getDuplicates ( ) : array | ||
return | array | The list of duplicates. |
public getObjectIds ( ) : array | ||
return | array | The object ids. |
public getObjectToBackend ( ) : array | ||
return | array | The object to backend mapping. |
public getObjects ( ) : array | ||
return | array | An array of all objects. |
public objectIdExists ( string $object_id ) : boolean | ||
$object_id | string | The object ID. |
return | boolean | True if the ID was found, false otherwise. |
public synchronize ( $params = [] ) : null | ||
return | null |
protected Horde_Kolab_Storage_Cache_Data $_data_cache | ||
return | Horde_Kolab_Storage_Cache_Data |
protected bool $_init | ||
return | boolean |