Manages database access for {@link Tree} class.

Usually extended by a DataManager class.

package dstruct_tree
author David

 Methods

Insert Tree data.

insert(array $data) : integer
Static

Parameters

$data

array

Returns

integer

Load data for Tree object.

load(integer $id) : \DBIterator
Static

Parameters

$id

integer

The id of the Tree to load

Returns

Load all Trees.

loadAll() : \DBIterator
Static

Returns

Update Tree

update(array $data) 
Static

Parameters

$data

array

Data for object being updated

Prepares and executes an SQL statement.

doStatement(string $statement, array $values) : object
InheritedStatic

Caches prepared statements via prepareStatement().

inherited_from \Base::doStatement()

Parameters

$statement

string

SQL statement

$values

array

Values for SQL statement

Returns

objectExecuted PDO::Statement

Prepare an SQL statement and return the handle.

prepareStatement(string $statement) : object
InheritedStatic

If previously prepared, returns the cached statement handle.
This method is usually called by doStatement().

inherited_from \Base::prepareStatement()

Parameters

$statement

string

SQL statement to prepare

Returns

objectPDO::Statement

 Properties

 

$statements : array
Inherited
inherited_from \Base::$$statements
 

$insert : string
 

$load : string
 

$load_all : string
 

$update : string