$tasks
$tasks : \Nag_Task
A Nag_Task instance holding the current task list.
Nag_Driver:: defines an API for implementing storage backends for Nag.
See the enclosed file LICENSE for license information (GPL). If you did not receive this file, see http://www.horde.org/licenses/gpl.
$tasks : \Nag_Task
A Nag_Task instance holding the current task list.
__construct(array $params = array(), string $errormsg = null) : \Nag_Driver
Constructor - just store the $params in our newly-created object. All other work is done by initialize().
array | $params | Any parameters needed for this driver. |
string | $errormsg | Custom error message |
add(array $task) : array
Adds a task and handles notification.
array | $task | A hash with the following possible properties:
|
array(ID,UID) of new task
getChildren(string $parentId, boolean $include_history = true) : array
Retrieves sub-tasks from the database.
string | $parentId | The parent id for the sub-tasks to retrieve. |
boolean | $include_history | Include created/modified info? |
List of sub-tasks.
get(string $taskId) : \Nag_Task
Retrieves one task from the database.
string | $taskId | The id of the task to retrieve. |
A Nag_Task object.
getByUID( $uids, array $tasklists = null, boolean $getall = true) : \Nag_Task
Retrieves one or multiple tasks from the database by UID.
$uids | ||
array | $tasklists | An optional array of tasklists to search. |
boolean | $getall | If true, return all instances of the task, otherwise only one. Attempts to find the instance owned by the current user. |
A Nag_Task object.