public function getNodes()
    {
        $nodes = array();
        foreach ($this->nodes[$this->options['rootid']]->getDescendants() as $subnode) {
            $nodes[] = $subnode;
        }
        return $nodes;
    }
public function getNodes()
    {
        $nodes = array();
        foreach ($this->nodes[$this->options['rootid']]->getDescendants() as $subnode) {
            $nodes[] = $subnode;
        }
        return $nodes;
    }
public function getNodes ( ) { $ nodes = array ( ) ; foreach ( $ this -> nodes [ $ this -> options [ 'rootid' ] ] -> getDescendants ( ) as $ subnode ) { $ nodes [ ] = $ subnode ; } return $ nodes ; }
Returns a flat, sorted array of all node objects in the tree.

@return Node[] Nodes, sorted as if the tree was hierarchical,
i.e.: the first level 1 item, then the children of
the first level 1 item (and their children), then
the second level 1 item and so on.
Returns a flat sorted array of all node objects in the tree .