The base driver definition for accessing Kolab storage drivers.
Copyright 2009-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
mixed
|
#
getBackend( )
Returns the actual backend driver.
Returns the actual backend driver.
If there is no driver set the driver should be constructed within this
method.
Returns
mixed The backend driver.
Implementation of
|
public
null
|
#
setBackend( mixed $backend )
Set the backend driver.
Parameters
- $backend
- The driver that should be used.
Returns
null
Implementation of
|
public
Horde_Kolab_Storage_Data_Parser
|
#
getParser( )
Returns the parser for data objects.
Returns the parser for data objects.
Returns
Implementation of
|
public
null
|
|
public
array
|
#
getParams( )
Return all parameter settings for this connection.
Return all parameter settings for this connection.
Returns
array The parameters.
|
public
mixed
|
#
getParam( string $key, mixed $default = null )
Return a parameter setting for this connection.
Return a parameter setting for this connection.
Parameters
- $key
- The parameter key.
- $default
- An optional default value.
Returns
mixed The parameter value.
|
public
null
|
#
setParam( string $key, mixed $value )
Set a parameter setting for this connection.
Set a parameter setting for this connection.
Parameters
- $key
- The parameter key.
- $value
- The parameter value.
Returns
null
|
public
string
|
#
getAuth( )
Return the id of the user currently authenticated.
Return the id of the user currently authenticated.
Returns
string The id of the user that opened the IMAP connection.
Implementation of
|
public
string
|
#
getId( )
Return the unique connection id.
Return the unique connection id.
Returns
string The connection id.
Implementation of
|
public
array
|
#
getParameters( )
Return the connection parameters.
Return the connection parameters.
Returns
array The connection parameters.
Implementation of
|
public
boolean
|
#
hasCatenateSupport( )
Checks if the backend supports CATENATE.
Checks if the backend supports CATENATE.
Returns
boolean True if the backend supports CATENATE.
Implementation of
|
public
Horde_Kolab_Storage_Driver_Modifiable
|
#
getModifiable( string $folder, string $obid, array $object )
Return a modifiable message object.
Return a modifiable message object.
Parameters
- $folder
- The folder to access.
- $obid
- The backend ID of the object to retrieve from the folder.
- $object
- The object data.
Returns
Horde_Kolab_Storage_Driver_Modifiable The modifiable message object.
|
public
Horde_Kolab_Storage_Folder_Namespace
|
#
getNamespace( )
Retrieve the namespace information for this connection.
Retrieve the namespace information for this connection.
Returns
Implementation of
|
public
Horde_Kolab_Storage_Folder_Stamp
|
#
getStamp( string $folder )
Returns a stamp for the current folder status. This stamp can be used to
identify changes in the folder data.
Returns a stamp for the current folder status. This stamp can be used to
identify changes in the folder data.
Parameters
- $folder
- Return the stamp for this folder.
Returns
Implementation of
|
public
array
|
#
fetch( string $folder, array $uids, array $options = array() )
Fetches the objects for the specified UIDs.
Fetches the objects for the specified UIDs.
Parameters
- $folder
- The folder to access.
- $uids
- The message UIDs.
- $options
- Additional options.
<pre>- type - (string) The data type.
- version - (int) The format version.
- raw - (bool) Should the raw data be returned?</pre>
Returns
array The objects.
Implementation of
|
public
Horde_Mime_Part
|
#
fetchStructure( string $mailbox, array $uids )
Retrieves the messages for the given message ids.
Retrieves the messages for the given message ids.
Parameters
- $mailbox
- The mailbox to fetch the messages from.
- $uids
- The message UIDs.
Returns
Horde_Mime_Part The message structure parsed into a
Horde_Mime_Part instance.
Implementation of
|
public
resource
|
#
fetchBodypart( string $mailbox, array $uid, array $id )
Retrieves a bodypart for the given message ID and mime part ID.
Retrieves a bodypart for the given message ID and mime part ID.
Parameters
- $mailbox
- The mailbox to fetch the messages from.
- $uid
- The message UID.
- $id
- The mime part ID.
Returns
resource The body part, in a stream resource.
Implementation of
|
public
array
|
#
fetchComplete( string $folder, array $uid )
Retrieves a complete message.
Retrieves a complete message.
Parameters
- $folder
- The folder to fetch the messages from.
- $uid
- The message UID.
Returns
array The message encapsuled as an array that contains a
Horde_Mime_Headers and a Horde_Mime_Part object.
Implementation of
|