RESPONSE_NONE
RESPONSE_NONE
Status codes
Nag Base Class.
See the enclosed file LICENSE for license information (GPL). If you did not receive this file, see http://www.horde.org/licenses/gpl.
parseDate(string $date, boolean $withtime = true) : \Horde_Date
Parses a complete date-time string into a Horde_Date object.
string | $date | The date-time string to parse. |
boolean | $withtime | Whether time is included in the string. |
The parsed date.
listTasks(\arary $options = array()) : \Nag_Task
Retrieves the current user's task list from storage.
This function will also sort the resulting list, if requested.
\arary | $options | Options array:
|
A list of the requested tasks.
getTask(string $tasklist, string $task) : \Nag_Task
Returns a single task.
string | $tasklist | A tasklist. |
string | $task | A task id. |
The task hash.
createTasksFromText(string $text, string $tasklist = null) : array
Imports one or more tasks parsed from a string.
string | $text | The text to parse into |
string | $tasklist | The tasklist into which the task will be imported. If 'null', the user's default tasklist will be used. |
The UIDs of all tasks that were added.
listTasklists(boolean $owneronly = false, integer $permission = \Horde_Perms::SHOW, boolean $smart = true) : array
Lists all task lists a user has access to.
boolean | $owneronly | Only return task lists that this user owns? Defaults to false. |
integer | $permission | The permission to filter task lists by. |
boolean | $smart | Include SmartLists in the results. |
The task lists.
hasPermission(string $tasklist, integer $perm) : boolean
Returns whether the current user has certain permissions on a tasklist.
string | $tasklist | A tasklist id. |
integer | $perm | A Horde_Perms permission mask. |
True if the current user has the requested permissions.
getDefaultTasklist(integer $permission = \Horde_Perms::SHOW) : string
Returns the default tasklist for the current user at the specified permissions level.
integer | $permission | Horde_Perms constant for permission level required. |
The default tasklist or null if none.
formatOrganizer(string $organizer, boolean $link = false) : string
Returns formatted string representing a task organizer.
string | $organizer | The organinzer, as an email or mailto: format. |
boolean | $link | Whether to link to an email compose screen. |
The formatted organizer name.
sendNotification(string $action, \Nag_Task $task, \Nag_Task $old_task = null)
Sends email notifications that a task has been added, edited, or deleted to users that want such notifications.
string | $action | The event action. One of "add", "edit", or "delete". |
\Nag_Task | $task | The changed task. |
\Nag_Task | $old_task | The original task if $action is "edit". |
buildMimeMessage(\Horde_View $view, string $template, \Horde_Mime_Part $image) : \Horde_Mime_Part
Builds the body MIME part of a multipart message.
\Horde_View | $view | A view to render the HTML and plain text templates for the messate. |
string | $template | The template base name for the view. |
\Horde_Mime_Part | $image | The MIME part of a related image. |
A multipart/alternative MIME part.
sendITipNotifications(\Nag_Task $task, \Horde_Notification_Handler $notification, integer $action, \Horde_Date $instance = null, string $range = null)
Sends out iTip task notification to the assignee.
Can be used to send task invitations, updates, and cancellations.
\Nag_Task | $task | The task in question. |
\Horde_Notification_Handler | $notification | A notification object used to show result status. |
integer | $action | The type of notification to send. One of the Nag::ITIP_* values. |
\Horde_Date | $instance | If cancelling a single instance of a recurring task, the date of this instance. |
string | $range | The range parameter if this is a recurring event. Possible values are self::RANGE_THISANDFUTURE |
_notificationPref(string $user, string $mode, string $tasklist = null) : boolean
Returns whether a user wants email notifications for a tasklist.
string | $user | A user name. |
string | $mode | The check "mode". If "owner", the method checks if the user wants notifications only for tasklists he owns. If "read", the method checks if the user wants notifications for all tasklists he has read access to, or only for shown tasklists and the specified tasklist is currently shown. |
string | $tasklist | The name of the tasklist if mode is "read". |
True if the user wants notifications for the tasklist.
_getOwner(\Nag_Task $task) : string
Returns the owner of a task.
\Nag_Task | $task | A task. |
The task's owner.