Nag_DriverNag_Driver:: defines an API for implementing storage backends for Nag.
$Horde: nag/lib/Driver.php,v 1.57.2.30 2009/10/15 16:23:26 jan Exp $
See the enclosed file COPYING for license information (GPL). If you did not receive this file, see http://www.fsf.org/copyleft/gpl.html.
Located in /lib/Driver.php (line 15)
| Class | Description |
|---|---|
Nag_Driver_sql
|
Nag storage implementation for PHP's PEAR database abstraction layer. |
Nag_Driver_kolab
|
Nag driver proxy class for the Kolab IMAP server. |
array
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 = ''], [boolean $private = false], [string $owner = null], [string $assignee = null])
void
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 = ''], [boolean $private = false], [string $owner = null], [string $assignee = null], [integer $completed_date = null], [string $tasklist = null])
Nag_Task
$tasks
(line 22)
A Nag_Task instance holding the current task list.
string
$_errormsg
(line 43)
An error message to throw when something is wrong.
array
$_params
= array() (line 36)
Hash containing connection parameters.
string
$_tasklist
= '' (line 29)
String containing the current tasklist.
Constructor Nag_Driver (line 51)
Constructor - just store the $params in our newly-created object. All other work is done by initialize().
add (line 210)
Adds a task and handles notification.
delete (line 389)
Deletes a task and handles notification.
factory (line 119)
Attempts to return a concrete Nag_Driver instance based on $driver.
generateUID (line 95)
Generate a universal / unique identifier for a task. This is NOT something that we expect to be able to parse into a tasklist and a taskId.
get (line 451)
Retrieves one task from the database.
getByUID (line 463)
Retrieves one task from the database by UID.
getChildren (line 439)
Retrieves sub-tasks from the database.
listAlarms (line 69)
List all alarms near $date.
modify (line 279)
Modifies an existing task and handles notification.
retrieve (line 427)
Retrieves tasks from the database.
singleton (line 170)
Attempts to return a reference to a concrete Nag_Driver instance based on $driver. It will only create a new instance if no Nag_Driver instance with the same parameters currently exists.
This should be used if multiple storage sources are required.
This method must be invoked as: $var =& Nag_Driver::singleton()
Documentation generated on Sun, 30 Jan 2011 05:35:02 +0000 by phpDocumentor 1.4.3