A node in a tree
This is the code documentation for the Pelzini project
Search documentation |
class TreeNodeA node in a tree
Extending this class<?php
/**
* New class description goes here
*
* @author Your Name, 2025-10-27
**/
class NewClassName extends TreeNode {
/**
* Returns an array of all the the ancestors of this node
**/
public function findAncestors () {
// Method code goes here
}
/**
* Used for debugging only
**/
public function dump () {
// Method code goes here
}
/**
* Returns the value of a specific data field
**/
public function offsetGet ($index) {
// Method code goes here
}
/**
* Sets the value of a specific data field
**/
public function offsetSet ($index, $value) {
// Method code goes here
}
/**
* Removes a specific data field
**/
public function offsetUnset ($index) {
// Method code goes here
}
/**
* Finds a node in the database
**/
public function findNode (TreeNodeMatcher $matcher) {
// Method code goes here
}
/**
* Returns true if a specific data field exists, and false otherwise
**/
public function offsetExists ($index) {
// Method code goes here
}
/**
* Adds a child node to this node
**/
public function addChild (TreeNode $child) {
// Method code goes here
}
/**
* Returns all of the data of this node
**/
public function getData () {
// Method code goes here
}
/**
* Returns a list of all the child nodes of this node
**/
public function getChildren () {
// Method code goes here
}
}
?>
|
| Powered by Pelzini, version 0.9.0 |
Documentation is made available under the
GNU Free Documentation License 1.2. Generated: Thursday, 15th March, 2018 at 02:05 pm |
|