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.
상속: extends Horde_Kolab_Storage_Data_Base
파일 보기 프로젝트 열기: horde/horde

보호된 프로퍼티들

프로퍼티 타입 설명
$_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