PHP Class Skeleton_Driver_Sql, horde

Author: Your Name ([email protected])
Inheritance: extends Skeleton_Driver
Show file Open project: horde/horde

Protected Properties

Property Type Description
$_db Horde_Db_Adapter Handle for the current database connection.
$_foo array Storage variable.

Public Methods

Method Description
__construct ( array $params = [] ) Constructs a new SQL storage object.
retrieve ( ) Retrieves the foos from the database.
store ( $data ) Stores a foo in the database.

Method Details

__construct() public method

Constructs a new SQL storage object.
public __construct ( array $params = [] )
$params array Class parameters: - db: (Horde_Db_Adapater) A database handle. - table: (string, optional) The name of the database table.

retrieve() public method

Retrieves the foos from the database.
public retrieve ( )

store() public method

Stores a foo in the database.
public store ( $data )

Property Details

$_db protected property

Handle for the current database connection.
protected Horde_Db_Adapter $_db
return Horde_Db_Adapter

$_foo protected property

Storage variable.
protected array $_foo
return array