Overview

Packages

  • Nag
  • None

Classes

  • Horde_Core_Ui_VarRenderer_Nag
  • Nag
  • Nag_Ajax_Application
  • Nag_Api
  • Nag_Driver
  • Nag_Driver_Kolab
  • Nag_Driver_Sql
  • Nag_Exception
  • Nag_Factory_Tasklists
  • Nag_Form_CreateTaskList
  • Nag_Form_DeleteTaskList
  • Nag_Form_EditTaskList
  • Nag_Form_Renderer_Task
  • Nag_Form_Task
  • Nag_Form_Type_NagAlarm
  • Nag_Form_Type_NagDue
  • Nag_Form_Type_NagMethod
  • Nag_Form_Type_NagStart
  • Nag_Task
  • Nag_Tasklists_Base
  • Nag_Tasklists_Default
  • Nag_Tasklists_Kolab
  • Overview
  • Package
  • Class
  • Tree

Class Nag_Driver_Sql

Nag storage implementation for PHP's PEAR database abstraction layer.

The table structure can be created by the scripts/sql/nag.sql script.

See the enclosed file COPYING for license information (GPL). If you did not receive this file, see http://www.horde.org/licenses/gpl.

Nag_Driver
Extended by Nag_Driver_Sql
Package: Nag
Author: Jon Parise jon@horde.org
Located at Driver/Sql.php
Methods summary
public Nag_Driver
# __construct( string $tasklist, array $params = array() )

Constructs a new SQL storage object.

Constructs a new SQL storage object.

Parameters

$tasklist
The tasklist to load.
$params
A hash containing connection parameters.

Returns

Nag_Driver

Overrides

Nag_Driver::__construct()
public Nag_Task
# get( string $taskId )

Retrieves one task from the database.

Retrieves one task from the database.

Parameters

$taskId
The id of the task to retrieve.

Returns

Nag_Task
A Nag_Task object.

Throws

Horde_Exception_NotFound
Nag_Exception

Overrides

Nag_Driver::get()
public Nag_Task
# getByUID( string $uid )

Retrieves one task from the database by UID.

Retrieves one task from the database by UID.

Parameters

$uid
The UID of the task to retrieve.

Returns

Nag_Task
A Nag_Task object.

Throws

Horde_Exception_NotFound
Nag_Exception

Overrides

Nag_Driver::getByUID()
public
# deleteAll( )

Deletes all tasks from the backend.

Deletes all tasks from the backend.

Throws

Nag_Exception
public
# retrieve( integer $completed = Nag::VIEW_ALL )

Retrieves tasks from the database.

Retrieves tasks from the database.

Parameters

$completed
<p>Which tasks to retrieve (1 = all tasks, 0 = incomplete tasks, 2 = complete tasks, 3 = future tasks, 4 = future and incomplete tasks).</p>

Throws

Nag_Exception

Overrides

Nag_Driver::retrieve()
public array
# getChildren( string $parentId )

Retrieves sub-tasks from the database.

Retrieves sub-tasks from the database.

Parameters

$parentId
The parent id for the sub-tasks to retrieve.

Returns

array
List of sub-tasks.

Throws

Nag_Exception

Overrides

Nag_Driver::getChildren()
public array
# listAlarms( integer $date )

Lists all alarms near $date.

Lists all alarms near $date.

Parameters

$date
The unix epoch time to check for alarms.

Returns

array
An array of tasks that have alarms that match.

Throws

Nag_Exception

Overrides

Nag_Driver::listAlarms()
Methods inherited from Nag_Driver
add(), delete(), factory(), modify(), singleton()
Properties inherited from Nag_Driver
$tasks
API documentation generated by ApiGen