$_folder
$_folder : \Horde_Kolab_Storage_Folder
The link to the parent folder object.
The basic handler for data objects in a Kolab storage folder.
$_folder : \Horde_Kolab_Storage_Folder
The link to the parent folder object.
$_driver : \Horde_Kolab_Storage_Driver
The driver for accessing the Kolab storage system.
$_factory : \Horde_Kolab_Storage_Factory
The factory for generating additional resources.
__construct(\Horde_Kolab_Storage_Folder $folder, \Horde_Kolab_Storage_Driver $driver, \Horde_Kolab_Storage_Factory $factory, string $type = null, integer $version = 1)
Constructor.
\Horde_Kolab_Storage_Folder | $folder | The folder to retrieve the data from. |
\Horde_Kolab_Storage_Driver | $driver | The primary connection driver. |
\Horde_Kolab_Storage_Factory | $factory | The factory. |
string | $type | The type of data we want to access in the folder. |
integer | $version | Format version of the object data. |
getStamp(\Horde_Kolab_Storage_Folder_Stamp $previous = null) : \Horde_Kolab_Storage_Folder_Stamp
Report the status of this folder.
\Horde_Kolab_Storage_Folder_Stamp | $previous | The previous stamp, if available. |
The stamp that can be used for detecting folder changes.
create( $object, boolean $raw = false) : string
Create a new object.
$object | ||
boolean | $raw | True if the data to be stored has been provided in raw format. |
In case an error occured while saving the data.
The ID of the new object or true in case the backend does not support this return value.
modify(array $object, boolean $raw = false) : string
Modify an existing object.
array | $object | The array that holds the updated object data. |
boolean | $raw | True if the data to be stored has been provided in raw format. |
In case an error occured while saving the data.
The new backend ID of the modified object or true in case the backend does not support this return value.
fetch(array $uids, boolean $raw = false) : array
Retrieves the objects for the given UIDs.
array | $uids | The message UIDs. |
boolean | $raw | True if the raw format should be returned rather than the parsed data. |
Horde_Kolab_Storage_Exception
An array of objects.
registerQuery(string $name, \Horde_Kolab_Storage_Query $query)
Register a query to be updated if the underlying data changes.
string | $name | The query name. |
\Horde_Kolab_Storage_Query | $query | The query to register. |
Horde_Kolab_Storage_Exception
getQuery(string $name = null) : \Horde_Kolab_Storage_Query
Return a registered query.
string | $name | The query name. |
In case the requested query does not exist.
The requested query.