Pelzini

This is the code documentation for the Pelzini project

Page options:

Inherited members

class TreeNode

A node in a tree

Authors

Variables

NameVisibilityDescription
$children 
$data 
$parent 

Functions

NameVisibilityDescription
addChildpublicAdds a child node to this node
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

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

Adds a child node to this node

public dump

void $TreeNode->dump ( );

Used for debugging only

public findAncestors

unknown $TreeNode->findAncestors ( );

Returns an array of all the the ancestors of this node

public findNode

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

Finds a node in the database

public getChildren

unknown $TreeNode->getChildren ( );

Returns a list of all the child nodes of this node

public getData

unknown $TreeNode->getData ( );

Returns all of the data of this node

public offsetExists

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

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

public offsetGet

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

Returns the value of a specific data field

public offsetSet

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

Sets the value of a specific data field

public offsetUnset

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

Removes a specific data field