$tasks
$tasks : \Nag_Task
A Nag_Task instance holding the current task list.
Nag storage implementation for PHP's PEAR database abstraction layer.
The table structure can be created by the scripts/sql/nag.sql script.
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(string $tasklist, array $params = array()) : \Nag_Driver
Constructs a new SQL storage object.
string | $tasklist | The tasklist to load. |
array | $params | A hash containing connection parameters. |
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
retrieve(integer $completed = \Nag::VIEW_ALL, boolean $include_history = true)
Retrieves tasks from the database.
integer | $completed | Which tasks to retrieve (1 = all tasks, 0 = incomplete tasks, 2 = complete tasks, 3 = future tasks, 4 = future and incomplete tasks). |
boolean | $include_history | Include created/changed data from Horde_History. |
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( $taskIds) : \Nag_Task
Retrieves one or multiple tasks from the database.
$taskIds |
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.
_add(array $task) : string
Adds a task to the backend storage.
array | $task | A hash with the following possible properties:
|
The Nag ID of the new task.
_getBy( $taskIds, string $column, array $tasklists = null) : \Nag_Task
Retrieves one or multiple tasks from the database.
$taskIds | ||
string | $column | The column name to search for the ID. |
array | $tasklists |
A Nag_Task object.