Documentation

SqlDriver extends AbstractDriver
in package
implements Driver

Skeleton storage implementation for the Horde_Db database abstraction layer.

Tags
author

Your Name you@example.com

category

Horde

copyright

2007-2021 Horde LLC

license

http://www.horde.org/licenses/gpl GPL

Interfaces, Classes and Traits

Driver
Skeleton_Driver defines an API for implementing storage backends for Skeleton.

Table of Contents

$_db  : Horde_Db_Adapter
Handle for the current database connection.
$_foo  : array<string|int, mixed>
Storage variable.
$_foos  : array<string|int, mixed>
Array holding the current foo list. Each array entry is a hash describing a foo. The array is indexed by the IDs.
$_params  : array<string|int, mixed>
Hash containing connection parameters.
__construct()  : mixed
Constructs a new SQL storage object.
listFoos()  : array<string|int, mixed>
Lists all foos.
retrieve()  : mixed
Retrieves the foos from the database.
store()  : mixed
Stores a foo in the database.

Properties

$_db

Handle for the current database connection.

protected Horde_Db_Adapter $_db

$_foo

Storage variable.

protected array<string|int, mixed> $_foo = []

$_foos

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

protected array<string|int, mixed> $_foos = []

$_params

Hash containing connection parameters.

protected array<string|int, mixed> $_params = []

Methods

__construct()

Constructs a new SQL storage object.

public __construct([array<string|int, mixed> $params = [] ]) : mixed
Parameters
$params : array<string|int, mixed> = []

Class parameters:

  • db: (Horde_Db_Adapater) A database handle.
  • table: (string, optional) The name of the database table.
Tags
throws
InvalidArgumentException
Return values
mixed

listFoos()

Lists all foos.

public listFoos() : array<string|int, mixed>
Return values
array<string|int, mixed>

Returns a list of all foos.

store()

Stores a foo in the database.

public store(mixed $data) : mixed
Parameters
$data : mixed
Tags
throws
SkeletonException
Return values
mixed

Search results