\Kronolith_Storage_Sql

Kronolith_Storage:: defines an API for storing free/busy information.

Summary

Methods
Properties
Constants
initialize()
search()
store()
__construct()
No public properties found
No constants found
No protected methods found
$_user
$_db
$_params
N/A
No private methods found
No private properties found
N/A

Properties

$_user

$_user : string

String containing the current username.

Type

string

$_db

$_db : \Horde_Db_Adapter

Handle for the current database connection, used for reading.

Type

\Horde_Db_Adapter

$_params

$_params : array

Hash containing connection parameters.

Type

array

Methods

initialize()

initialize() 

Stub to initiate a driver.

Throws

\Kronolith_Exception

search()

search(string  $email, boolean  $private_only = false) : \Horde_Icalendar_Vfreebusy

Search for a user's free/busy information.

Parameters

string $email

The email address to lookup

boolean $private_only

(optional) Only return free/busy information owned by this used.

Throws

\Kronolith_Exception

Returns

\Horde_Icalendar_Vfreebusy

store()

store(string  $email, \Horde_Icalendar_Vfreebusy  $vfb,   $public = false) 

Store the freebusy information for a given email address.

Parameters

string $email

The email address to store fb info for.

\Horde_Icalendar_Vfreebusy $vfb

TODO

$public

Throws

\Kronolith_Exception

__construct()

__construct(string  $user, array  $params = array()) : \Kronolith_Storage_Sql

Constructs a new Kronolith_Storage SQL instance.

Parameters

string $user

The user the fb info belongs to.

array $params

A hash containing connection parameters.

Returns

\Kronolith_Storage_Sql