Adds a task to the backend storage.
mixed
add
(string $name, string $desc, [integer $start = 0], [integer $due = 0], [integer $priority = 0], [float $estimate = 0.0], [integer $completed = 0], [string $category = ''], [integer $alarm = 0], [string $uid = null], [string $parent = null], [boolean $private = false], [string $owner = null], [string $assignee = null])
-
string
$name: The name (short) of the task.
-
string
$desc: The description (long) of the task.
-
integer
$start: The start date of the task.
-
integer
$due: The due date of the task.
-
integer
$priority: The priority of the task.
-
float
$estimate: The estimated time to complete the task.
-
integer
$completed: The completion state of the task.
-
string
$category: The category of the task.
-
integer
$alarm: The alarm associated with the task.
-
string
$uid: A Unique Identifier for the task.
-
string
$parent: The parent task id.
-
boolean
$private: Whether the task is private.
-
string
$owner: The owner of the event.
-
string
$assignee: The assignee of the event.
Deletes a task from the backend.
void
delete
(string $taskId)
-
string
$taskId: The task to delete.
Deletes all tasks from the backend.
void
deleteAll
()
Retrieves one task from the store.
-
string
$taskId: The id of the task to retrieve.
Retrieves one task from the database by UID.
-
string
$uid: The UID of the task to retrieve.
Retrieves sub-tasks from the database.
array
getChildren
(string $parentId)
-
string
$parentId: The parent id for the sub-tasks to retrieve.
Lists all alarms near $date.
array
listAlarms
(integer $date)
-
integer
$date: The unix epoch time to check for alarms.
Modifies an existing task.
mixed
modify
(string $taskId, string $name, string $desc, [integer $start = 0], [integer $due = 0], [integer $priority = 0], [float $estimate = 0.0], [integer $completed = 0], [string $category = ''], [integer $alarm = 0], [string $parent = null], [boolean $private = false], [string $owner = null], [string $assignee = null], [integer $completed_date = null])
-
string
$taskId: The task to modify.
-
string
$name: The name (short) of the task.
-
string
$desc: The description (long) of the task.
-
integer
$start: The start date of the task.
-
integer
$due: The due date of the task.
-
integer
$priority: The priority of the task.
-
float
$estimate: The estimated time to complete the task.
-
integer
$completed: The completion state of the task.
-
string
$category: The category of the task.
-
integer
$alarm: The alarm associated with the task.
-
string
$parent: The parent task id.
-
boolean
$private: Whether the task is private.
-
string
$owner: The owner of the event.
-
string
$assignee: The assignee of the event.
-
integer
$completed_date: The task's completion date.
Moves a task to a different tasklist.
mixed
move
(string $taskId, string $newTasklist)
-
string
$taskId: The task to move.
-
string
$newTasklist: The new tasklist.
Retrieves tasks from the Kolab server.
mixed
retrieve
([integer $completed = 1])
-
integer
$completed: Which tasks to retrieve (1 = all tasks,
- = incomplete tasks, 2 = complete tasks,
3 = future tasks, 4 = future and incomplete tasks).
Build a task based a data array
array
_buildTask
(array $task)
-
array
$task: The data for the task
Add or modify a task.
mixed
_setObject
(string $name, string $desc, [integer $start = 0], [integer $due = 0], [integer $priority = 0], [float $estimate = 0.0], [integer $completed = 0], [string $category = ''], [integer $alarm = 0], [string $uid = null], [string $parent = null], [boolean $private = false], [string $owner = null], [string $assignee = null], [integer $completed_date = null])
-
string
$name: The name (short) of the task.
-
string
$desc: The description (long) of the task.
-
integer
$start: The start date of the task.
-
integer
$due: The due date of the task.
-
integer
$priority: The priority of the task.
-
float
$estimate: The estimated time to complete the task.
-
integer
$completed: The completion state of the task.
-
string
$category: The category of the task.
-
integer
$alarm: The alarm associated with the task.
-
string
$uid: A Unique Identifier for the task.
-
string
$parent: The parent task id.
-
boolean
$private: Whether the task is private.
-
string
$owner: The owner of the event.
-
string
$assignee: The assignee of the event.
-
integer
$completed_date: The task's completion date.
Split the tasklist name of the id. We use this to make ids unique across folders.
array
_splitId
(string $id)
-
string
$id: The ID of the task appended with the tasklist name.
Append the tasklist name to the id. We use this to make ids unique across folders.
string
_uniqueId
(string $id)
-
string
$id: The ID of the task
Inherited Methods
Inherited From Nag_Driver_kolab_wrapper
Nag_Driver_kolab_wrapper::Nag_Driver_kolab_wrapper()
Nag_Driver_kolab_wrapper::connect()