Class Nag_Driver_Kolab
Nag driver classes for the Kolab IMAP server.
Copyright 2004-2012 Horde LLC (http://www.horde.org/)
See the enclosed file COPYING for license information (GPL). If you
did not receive this file, see http://www.horde.org/licenses/gpl.
-
Nag_Driver
-
Nag_Driver_Kolab
Methods summary
public
Nag_Driver
|
#
__construct( string $tasklist, array $params = array() )
Constructs a new Kolab storage object.
Constructs a new Kolab storage object.
Parameters
- $tasklist
- The tasklist to load.
- $params
- A hash containing connection parameters.
Returns
Overrides
|
public
Nag_Task
|
#
get( string $taskId )
Retrieves one task from the backend.
Retrieves one task from the backend.
Parameters
- $taskId
- The id of the task to retrieve.
Returns
Throws
Overrides
|
public
array
|
#
_buildTask( array $task )
Build a task based a data array
Build a task based a data array
Parameters
- $task
- The data for the task
Returns
array The converted data array representing the task
|
public
array
|
#
getByUID( string $uid )
Retrieves one task from the database by UID.
Retrieves one task from the database by UID.
Parameters
- $uid
- The UID of the task to retrieve.
Returns
array The array of task attributes.
Throws
Overrides
|
public
|
#
deleteAll( )
Deletes all tasks from the backend.
Deletes all tasks from the backend.
|
public
mixed
|
#
retrieve( integer $completed = Nag::VIEW_ALL )
Retrieves tasks from the Kolab server.
Retrieves tasks from the Kolab server.
Parameters
- $completed
- <p>Which tasks to retrieve (1 = all tasks,
0 = incomplete tasks, 2 = complete tasks).</p>
Returns
mixed True on success, PEAR_Error on failure.
Throws
Overrides
|
public
array
|
#
listAlarms( integer $date )
Lists all alarms near $date.
Lists all alarms near $date.
Parameters
- $date
- The unix epoch time to check for alarms.
Returns
array An array of tasks that have alarms that match.
Overrides
|
public
array
|
#
getChildren( string $parentId )
Retrieves sub-tasks from the database.
Retrieves sub-tasks from the database.
Parameters
- $parentId
- The parent id for the sub-tasks to retrieve.
Returns
array List of sub-tasks.
Throws
Overrides
|