프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$tasks | Nag_Task | A Nag_Task instance holding the current task list. |
프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$_errormsg | string | An error message to throw when something is wrong. | |
$_params | array | Hash containing connection parameters. | |
$_tasklist | string | String containing the current tasklist. |
메소드 | 설명 | |
---|---|---|
__construct ( array $params = [], string $errormsg = null ) : Nag_Driver | Constructor - just store the $params in our newly-created object. All other work is done by initialize(). | |
add ( array $task ) : array | Adds a task and handles notification. | |
delete ( string $taskId ) | Deletes a task and handles notification. | |
deleteAll ( ) | Deletes all tasks for the current task list. | |
get ( string $taskId ) : Nag_Task | Retrieves one task from the database. | |
getByUID ( $uids, array $tasklists = null, boolean $getall = true ) : Nag_Task | Retrieves one or multiple tasks from the database by UID. | |
getChildren ( string $parentId, boolean $include_history = true ) : array | Retrieves sub-tasks from the database. | |
listAlarms ( integer $date ) : array | List all alarms near $date. | |
modify ( string $taskId, array $properties ) | Modifies an existing task and handles notification. | |
open ( string $tasklist ) | Sets the currently open tasklist. | |
retrieve ( ) | Retrieves tasks from the database. | |
synchronize ( mixed $token = false ) | Synchronize with the Kolab backend. |
메소드 | 설명 | |
---|---|---|
_add ( array $task ) | ||
_addTags ( array $task ) | Helper function to add tags from a newly created event to the tagger. | |
_modify ( $taskId, array $task ) | ||
_updateTags ( array $task ) | Helper function to update an existing event's tags to tagger storage. |
public __construct ( array $params = [], string $errormsg = null ) : Nag_Driver | ||
$params | array | Any parameters needed for this driver. |
$errormsg | string | Custom error message |
리턴 | Nag_Driver |
protected _updateTags ( array $task ) | ||
$task | array | The task to update |
public add ( array $task ) : array | ||
$task | array | A hash with the following possible properties: - desc: (string) The description (long) of the task. - name: (string) The name (short) of the task. - actual: (OPTIONAL, float) The actual time spent on the task. - alarm: (OPTIONAL, integer) The alarm associated with the task. - assignee: (OPTIONAL, string) The assignee of the event. - completed: (OPTIONAL, integer) The completion state of the task. - completed_date: (OPTIONAL, integer) The task's completion date. - due: (OPTIONAL, integer) The due date of the task. - estimate: (OPTIONAL, float) The estimated time to complete the task. - methods: (OPTIONAL, array) The overridden alarm notification methods. - owner: (OPTIONAL, string) The owner of the event. - parent: (OPTIONAL, string) The parent task. - priority: (OPTIONAL, integer) The priority of the task. - private: (OPTIONAL, boolean) Whether the task is private. - recurrence: (OPTIONAL, Horde_Date_Recurrence|array) Recurrence information. - start: (OPTIONAL, integer) The start date of the task. - tags: (OPTIONAL, string) The comma delimited list of tags. - uid: (OPTIONAL, string) A Unique Identifier for the task. |
리턴 | array | array(ID,UID) of new task |
public getByUID ( $uids, array $tasklists = null, boolean $getall = true ) : Nag_Task | ||
$tasklists | array | An optional array of tasklists to search. |
$getall | boolean | If true, return all instances of the task, otherwise only one. Attempts to find the instance owned by the current user. |
리턴 | Nag_Task | A Nag_Task object. |
public listAlarms ( integer $date ) : array | ||
$date | integer | The unix epoch time to check for alarms. |
리턴 | array | An array of tasks that have alarms that match. |
public synchronize ( mixed $token = false ) | ||
$token | mixed | A value indicating the last synchronization point, if available. |
protected string $_errormsg | ||
리턴 | string |
protected string $_tasklist | ||
리턴 | string |