PHP 클래스 Horde_Kolab_Storage_Data_Old, horde

Copyright 2009-2016 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.
저자: Stuart Binge ([email protected])
저자: Thomas Jarosch ([email protected])
저자: Gunnar Wrobel ([email protected])
파일 보기 프로젝트 열기: horde/horde

공개 메소드들

메소드 설명
__construct ( string $folder, string $type, Horde_Kolab_Storage_Driver $driver, Horde_Kolab_Storage_Factory $factory, string $object_type = null, integer $data_version = 1 ) Creates a Kolab Folder Data representation.
delete ( string $object_uid ) : boolean | PEAR_Error Delete the specified message from this folder.
deleteAll ( ) : boolean | PEAR_Error Delete all messages from the current folder.
generateUID ( ) : string Generate a unique object id.
getAttachment ( string $attachment_id ) : string | PEAR_Error Return the specified attachment.
getObjectArray ( ) : array Retrieve all objects in the current folder as an array.
move ( string $object_uid, string $new_share ) : boolean | PEAR_Error Move the specified message from the current folder into a new folder.
save ( array $object, string $old_object_id = null ) : boolean Save an object.
storageIdExists ( integer $uid ) : boolean Test if the storage ID exists.
synchronize ( string $history_ignore = null ) : null Synchronize the data cache for the current folder.

비공개 메소드들

메소드 설명
_updateHistory ( string $object_uid, integer $mod_ts, string $action ) : null Update the Horde history in case an element was modified outside of Horde.

메소드 상세

__construct() 공개 메소드

Creates a Kolab Folder Data representation.
public __construct ( string $folder, string $type, Horde_Kolab_Storage_Driver $driver, Horde_Kolab_Storage_Factory $factory, string $object_type = null, integer $data_version = 1 )
$folder string Name/ID of the folder.
$type string Type of the folder.
$driver Horde_Kolab_Storage_Driver The primary connection driver.
$factory Horde_Kolab_Storage_Factory The factory.
$object_type string Type of the objects we want to read.
$data_version integer Format version of the object data.

delete() 공개 메소드

Delete the specified message from this folder.
public delete ( string $object_uid ) : boolean | PEAR_Error
$object_uid string Id of the message to be deleted.
리턴 boolean | PEAR_Error True is successful, false if the message does not exist.

deleteAll() 공개 메소드

Delete all messages from the current folder.
public deleteAll ( ) : boolean | PEAR_Error
리턴 boolean | PEAR_Error True if successful.

generateUID() 공개 메소드

Generate a unique object id.
public generateUID ( ) : string
리턴 string The unique id.

getAttachment() 공개 메소드

Return the specified attachment.
public getAttachment ( string $attachment_id ) : string | PEAR_Error
$attachment_id string The attachment id.
리턴 string | PEAR_Error The attachment data as a string.

getObjectArray() 공개 메소드

Retrieve all objects in the current folder as an array.
public getObjectArray ( ) : array
리턴 array The object data array.

move() 공개 메소드

Move the specified message from the current folder into a new folder.
public move ( string $object_uid, string $new_share ) : boolean | PEAR_Error
$object_uid string ID of the message to be deleted.
$new_share string ID of the target share.
리턴 boolean | PEAR_Error True is successful, false if the object does not exist.

save() 공개 메소드

Save an object.
public save ( array $object, string $old_object_id = null ) : boolean
$object array The array that holds the data object.
$old_object_id string The id of the object if it existed before.
리턴 boolean True on success.

storageIdExists() 공개 메소드

Test if the storage ID exists.
public storageIdExists ( integer $uid ) : boolean
$uid integer The storage ID.
리턴 boolean True if the ID exists.

synchronize() 공개 메소드

Synchronize the data cache for the current folder.
public synchronize ( string $history_ignore = null ) : null
$history_ignore string Object uid that should not be updated in the History
리턴 null