Свойство | Тип | Описание | |
---|---|---|---|
$_data_cache | Horde_Kolab_Storage_Cache_Data | The data cache. | |
$_init | boolean | Has the cache already been loaded and validated? |
Метод | Описание | |
---|---|---|
__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. |
Метод | Описание | |
---|---|---|
_init ( ) | Check if the cache has been initialized at all and synchronize it if not. | |
_isInitialized ( ) : null | Check if the cache has been initialized. |
Метод | Описание | |
---|---|---|
_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 | ||
Результат | 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. |
Результат | resource | An open stream to the attachment data. |
public getBackendId ( $object_id ) : string | ||
Результат | string | The backend ID for the object. |
public getDuplicates ( ) : array | ||
Результат | array | The list of duplicates. |
public getObjectIds ( ) : array | ||
Результат | array | The object ids. |
public getObjectToBackend ( ) : array | ||
Результат | array | The object to backend mapping. |
public getObjects ( ) : array | ||
Результат | array | An array of all objects. |
public objectIdExists ( string $object_id ) : boolean | ||
$object_id | string | The object ID. |
Результат | boolean | True if the ID was found, false otherwise. |
public synchronize ( $params = [] ) : null | ||
Результат | null |
protected Horde_Kolab_Storage_Cache_Data $_data_cache | ||
Результат | Horde_Kolab_Storage_Cache_Data |
protected bool $_init | ||
Результат | boolean |