\Skeleton_Driver_Sql

Skeleton storage implementation for the Horde_Db database abstraction layer.

Summary

Methods
Properties
Constants
__construct()
listFoos()
retrieve()
store()
No public properties found
No constants found
No protected methods found
$_params
$_foos
$_db
$_foo
N/A
No private methods found
No private properties found
N/A

Properties

$_params

$_params : array

Hash containing connection parameters.

Type

array

$_foos

$_foos : array

Array holding the current foo list. Each array entry is a hash describing a foo. The array is indexed by the IDs.

Type

array

$_db

$_db : \Horde_Db_Adapter

Handle for the current database connection.

Type

\Horde_Db_Adapter

$_foo

$_foo : array

Storage variable.

Type

array

Methods

__construct()

__construct(array  $params = array()) 

Constructs a new SQL storage object.

Parameters

array $params

Class parameters:

  • db: (Horde_Db_Adapater) A database handle.
  • table: (string, optional) The name of the database table.

Throws

\InvalidArgumentException

listFoos()

listFoos() : array

Lists all foos.

Returns

array —

Returns a list of all foos.

retrieve()

retrieve() 

Retrieves the foos from the database.

Throws

\Skeleton_Exception

store()

store(  $data) 

Stores a foo in the database.

Parameters

$data

Throws

\Sms_Exception