The basic handler for data objects in a Kolab storage folder.
Copyright 2011-2012 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.
Methods summary
public
|
|
public
string
|
#
getPath( )
Return the folder path for this data handler.
Return the folder path for this data handler.
Returns
string The folder path.
Since
Horde_Kolab_Storage 1.1.0
Implementation of
|
public
string
|
#
getAuth( )
Return the ID of the current user.
Return the ID of the current user.
Returns
string The current user.
Since
Horde_Kolab_Storage 1.1.0
Implementation of
|
public
string
|
#
getId( )
Return the ID of this data handler.
Return the ID of this data handler.
Returns
string The ID.
Implementation of
|
public
array
|
#
getIdParameters( )
Return the ID parameters for this data handler.
Return the ID parameters for this data handler.
Returns
array The ID parameters.
Implementation of
|
public
string
|
#
getType( )
Return the data type represented by this object.
Return the data type represented by this object.
Returns
string The type of data this instance handles.
Implementation of
|
public
string
|
#
getVersion( )
Return the data version.
Returns
string The data version.
Implementation of
|
public
Horde_Kolab_Storage_Folder_Stamp
|
#
getStamp( )
Report the status of this folder.
Report the status of this folder.
Returns
Implementation of
|
public
string
|
#
create( array & $object, boolean $raw = false )
Create a new object.
Parameters
- $object
- $object The array that holds the object data.
- $raw
- <p>True if the data to be stored has been provided in
raw format.</p>
Returns
string The ID of the new object or true in case the backend does
not support this return value.
Throws
Implementation of
|
public
string
|
#
modify( array $object, boolean $raw = false )
Modify an existing object.
Modify an existing object.
Parameters
- $object
- The array that holds the updated object data.
- $raw
- <p>True if the data to be stored has been provided in
raw format.</p>
Returns
string The new backend ID of the modified object or true in case
the backend does not support this return value.
Throws
Implementation of
|
public
array
|
#
fetchComplete( string $uid )
Retrieves the complete message for the given UID.
Retrieves the complete message for the given UID.
Parameters
Returns
array The message encapsuled as an array that contains a
Horde_Mime_Headers and a Horde_Mime_Part object.
Implementation of
|
public
resource
|
#
fetchPart( string $uid, string $id )
Retrieves the body part for the given UID and mime part ID.
Retrieves the body part for the given UID and mime part ID.
Parameters
- $uid
- The message UID.
- $id
- The mime part ID.
Returns
resource The message part as stream resource.
|
public
array
|
#
fetch( array $uids, boolean $raw = false )
Retrieves the objects for the given UIDs.
Retrieves the objects for the given UIDs.
Parameters
- $uids
- The message UIDs.
- $raw
- <p>True if the raw format should be returned rather than
the parsed data.</p>
Returns
array An array of objects.
Implementation of
|
public
string
|
#
getBackendId( string $object_id )
Return the backend ID for the given object ID.
Return the backend ID for the given object ID.
Parameters
- $object_id
- $object_uid The object ID.
Returns
string The backend ID for the object.
Implementation of
|
public
string
|
#
generateUid( )
Generate a unique object ID.
Generate a unique object ID.
Returns
string The unique ID.
Implementation of
|
public
boolean
|
#
objectIdExists( string $object_id )
Check if the given object ID exists.
Check if the given object ID exists.
Parameters
- $object_id
- The object ID.
Returns
boolean True if the ID was found, false otherwise.
Implementation of
|
public
array
|
#
getObject( string $object_id )
Return the specified object.
Return the specified object.
Parameters
- $object_id
- The object id.
Returns
array The object data as an array.
Implementation of
|
public
resource
|
#
getAttachment( string $attachment_id )
Return the specified attachment.
Return the specified attachment.
Parameters
- $attachment_id
- The attachment id.
Returns
resource An open stream to the attachment data.
Implementation of
|
public
array
|
#
getObjectIds( )
Retrieve all object ids in the current folder.
Retrieve all object ids in the current folder.
Returns
array The object ids.
Implementation of
|
public
array
|
#
getObjects( )
Retrieve all objects in the current folder.
Retrieve all objects in the current folder.
Returns
array An array of all objects.
Implementation of
|
public
array
|
#
getObjectsByBackendId( )
Retrieve all objects in the current folder by backend id.
Retrieve all objects in the current folder by backend id.
Returns
array An array of all objects.
Since
Horde_Kolab_Storage 1.1.0
Implementation of
|
public
array
|
#
getObjectByBackendId( string $uid )
Retrieve an object in the current folder by backend id.
Retrieve an object in the current folder by backend id.
Parameters
- $uid
- Backend id of the object to be returned.
Returns
array An array of all objects.
Since
Horde_Kolab_Storage 1.1.0
Implementation of
|
public
array
|
#
getObjectToBackend( )
Return the mapping of object IDs to backend IDs.
Return the mapping of object IDs to backend IDs.
Returns
array The object to backend mapping.
Since
Horde_Kolab_Storage 1.1.0
Implementation of
|
public
array
|
#
getDuplicates( )
Retrieve the list of object duplicates.
Retrieve the list of object duplicates.
Returns
array The list of duplicates.
Since
Horde_Kolab_Storage 1.1.0
Implementation of
|
public
array
|
#
getErrors( )
Retrieve the list of object errors.
Retrieve the list of object errors.
Returns
array The list of errors.
Since
Horde_Kolab_Storage 1.1.0
Implementation of
|
public
null
|
#
move( string $object_id, string $new_folder )
Move the specified message from the current folder into a new
folder.
Move the specified message from the current folder into a new
folder.
Parameters
- $object_id
- ID of the message to be moved.
- $new_folder
- Target folder.
Returns
null
Implementation of
|
public
null
|
#
delete( array|string $object_ids )
Delete the specified objects from this data set.
Delete the specified objects from this data set.
Parameters
- $object_ids
- Id(s) of the object to be deleted.
Returns
null
Implementation of
|
public
null
|
#
deleteAll( )
Delete all objects from this data set.
Delete all objects from this data set.
Returns
null
Implementation of
|
public
null
|
#
deleteBackendIds( array|string $uids )
Delete the specified messages from this folder.
Delete the specified messages from this folder.
Parameters
- $uids
- Backend id(s) of the message to be deleted.
Returns
null
Since
Horde_Kolab_Storage 1.1.0
Implementation of
|
public
null
|
#
registerQuery( string $name, Horde_Kolab_Storage_Query $query )
Register a query to be updated if the underlying data changes.
Register a query to be updated if the underlying data changes.
Parameters
- $name
- The query name.
- $query
- The query to register.
Returns
null
Implementation of
|
public
null
|
#
synchronize( array $params = array() )
Synchronize the data information with the information from the backend.
Synchronize the data information with the information from the backend.
Parameters
- $params
- Additional parameters.
Returns
null
Implementation of
|
public
Horde_Kolab_Storage_Query
|
#
getQuery( string $name = null )
Return a registered query.
Return a registered query.
Parameters
Returns
Throws
Implementation of
|