Pelzini

This is the code documentation for the Pelzini project

Page options:

Inherited members

class RootTreeNode

The root node in a tree

Authors

Variables

NameVisibilityDescription
$children 
$data 
$parent 

Functions

NameVisibilityDescription
addChildpublicAdds a child node to this node
createFromDatabasepublic (static)Creates a tree based on a set of nodes in the database
dumppublicUsed for debugging only
findAncestorspublicReturns an array of all the the ancestors of this node
findNodepublicFinds a node in the database
getChildrenpublicReturns a list of all the child nodes of this node
getDatapublicReturns all of the data of this node
offsetExistspublicReturns true if a specific data field exists, and false otherwise
offsetGetpublicReturns the value of a specific data field
offsetSetpublicSets the value of a specific data field
offsetUnsetpublicRemoves a specific data field

public addChild (from TreeNode)

void $TreeNode->addChild ( TreeNode $child );

Adds a child node to this node

public createFromDatabase

unknown RootTreeNode::createFromDatabase ( resource $res , string $id_col , string $parent_col );

Creates a tree based on a set of nodes in the database

public dump (from TreeNode)

void $TreeNode->dump ( );

Used for debugging only

public findAncestors (from TreeNode)

unknown $TreeNode->findAncestors ( );

Returns an array of all the the ancestors of this node

public findNode (from TreeNode)

unknown $TreeNode->findNode ( TreeNodeMatcher $matcher );

Finds a node in the database

public getChildren (from TreeNode)

unknown $TreeNode->getChildren ( );

Returns a list of all the child nodes of this node

public getData (from TreeNode)

unknown $TreeNode->getData ( );

Returns all of the data of this node

public offsetExists (from TreeNode)

unknown $TreeNode->offsetExists ( mixed $index );

Returns true if a specific data field exists, and false otherwise

public offsetGet (from TreeNode)

unknown $TreeNode->offsetGet ( mixed $index );

Returns the value of a specific data field

public offsetSet (from TreeNode)

void $TreeNode->offsetSet ( mixed $index , mixed $value );

Sets the value of a specific data field

public offsetUnset (from TreeNode)

void $TreeNode->offsetUnset ( mixed $index );

Removes a specific data field