DataManager for {@link TreeNode} class

Usually extended by a DataManager class.

package dstruct_tree
author David

 Methods

Insert object data into database.

insert(array $data) : integer
Static

Parameters

$data

array

Data for object

Returns

integerID of the inserted row

Load the object data

load(integer $id) : \DBIterator
Static

Parameters

$id

integer

ID to load data for.

Returns

Load all node objects accepting members

loadAllAcceptingMembers(integer $id) : \DBIterator
Static

Parameters

$id

integer

ID of {@link Tree} to load nodes for.

Returns

Load nodes by level.

loadByLevel(integer $level, integer $tree) : \DBIterator
Static

Parameters

$level

integer

Level of nodes to load.

$tree

integer

ID of {@link Tree} to load nodes for.

Returns

Load node by its parent.

loadByParent(integer $parent, integer $tree) : \DBIterator
Static

Parameters

$parent

integer

ID of parent node

$tree

integer

ID of Tree

Returns

Update the object's data in the database.

update(array $data) 
Static

Parameters

$data

array

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_accepting_members : string
 

$load_by_level : string
 

$update : string