PHP Класс Horde_Kolab_Storage_Data_Cached, horde

Copyright 2011-2014 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.
Автор: Gunnar Wrobel ([email protected])
Наследование: extends Horde_Kolab_Storage_Data_Base
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$_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.

Описание методов

__construct() публичный Метод

Constructor.
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.

_init() защищенный Метод

Check if the cache has been initialized at all and synchronize it if not.
protected _init ( )

_isInitialized() защищенный Метод

Check if the cache has been initialized.
protected _isInitialized ( ) : null
Результат null

getAttachment() публичный Метод

Returns the specified attachment.
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.

getBackendId() публичный Метод

Return the backend ID for the given object ID.
public getBackendId ( $object_id ) : string
Результат string The backend ID for the object.

getDuplicates() публичный Метод

Retrieve the list of object duplicates.
public getDuplicates ( ) : array
Результат array The list of duplicates.

getErrors() публичный Метод

Retrieve the list of object errors.
public getErrors ( ) : array
Результат array The list of errors.

getObject() публичный Метод

Return the specified object.
public getObject ( string $object_id ) : array
$object_id string The object id.
Результат array The object data as an array.

getObjectIds() публичный Метод

Retrieve all object ids in the current folder.
public getObjectIds ( ) : array
Результат array The object ids.

getObjectToBackend() публичный Метод

Return the mapping of object IDs to backend IDs.
public getObjectToBackend ( ) : array
Результат array The object to backend mapping.

getObjects() публичный Метод

Retrieve all objects in the current folder.
public getObjects ( ) : array
Результат array An array of all objects.

objectIdExists() публичный Метод

Check if the given object ID exists.
public objectIdExists ( string $object_id ) : boolean
$object_id string The object ID.
Результат boolean True if the ID was found, false otherwise.

synchronize() публичный Метод

Synchronize the query data with the information from the backend.
См. также: Horde_Kolab_Storage_Query In addition to the parameters of the base class(es), the following may be passed as well: - logger: (Horde_Log_Logger) A logger instance.
public synchronize ( $params = [] ) : null
Результат null

Описание свойств

$_data_cache защищенное свойство

The data cache.
protected Horde_Kolab_Storage_Cache_Data $_data_cache
Результат Horde_Kolab_Storage_Cache_Data

$_init защищенное свойство

Has the cache already been loaded and validated?
protected bool $_init
Результат boolean