Pelzini

This is the code documentation for the Pelzini project

class TreeNode

A node in a tree

Extending this class

<?php
/**
* New class description goes here
* 
* @author Your Name, 2024-04-19
**/
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
    }
    
}
?>