Nag storage implementation for PHP's PEAR database abstraction layer.
Required parameters:
'phptype' The database type (e.g. 'pgsql', 'mysql', etc.). 'charset' The database's internal charset.
Required by some database implementations:
'hostspec' The hostname of the database server. 'protocol' The communication protocol ('tcp', 'unix', etc.). 'database' The name of the database. 'username' The username with which to connect to the database. 'password' The password associated with 'username'. 'options' Additional options to pass to the database. 'tty' The TTY on which to connect to the database. 'port' The port on which to connect to the database.
Optional values when using separate reading and writing servers, for example in replication settings:
'splitread' Boolean, whether to implement the separation or not. 'read' Array containing the parameters which are different for the read database connection, currently supported only 'hostspec' and 'port' parameters.
Optional parameters:
'table' The name of the tasks table in 'database'. Default is 'nag_tasks'.
The table structure can be created by the scripts/sql/nag.sql script.
$Horde: nag/lib/Driver/sql.php,v 1.60.2.24 2009/10/22 14:24:20 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/sql.php (line 41)
Nag_Driver | --Nag_Driver_sql
Handle for the current database connection.
Handle for the current database connection, used for writing. Defaults to the same handle as $_db if a separate write database is not required.
Inherited from Nag_Driver
Nag_Driver::$tasks
Nag_Driver::$_errormsg
Nag_Driver::$_params
Nag_Driver::$_tasklist
Constructs a new SQL storage object.
Deletes all tasks from the backend.
Retrieves one task from the database.
Retrieves one task from the database by UID.
Retrieves sub-tasks from the database.
Attempts to open a connection to the SQL server.
Lists all alarms near $date.
Retrieves tasks from the database.
Adds a task to the backend storage.
Deletes a task from the backend.
Modifies an existing task.
Moves a task to a different tasklist.
Inherited From Nag_Driver
Nag_Driver::Nag_Driver()
Nag_Driver::add()
Nag_Driver::delete()
Nag_Driver::factory()
Nag_Driver::generateUID()
Nag_Driver::get()
Nag_Driver::getByUID()
Nag_Driver::getChildren()
Nag_Driver::listAlarms()
Nag_Driver::modify()
Nag_Driver::retrieve()
Nag_Driver::singleton()
Documentation generated on Sun, 30 Jan 2011 05:35:04 +0000 by phpDocumentor 1.4.3