public function nextNode($nID)
    {
        if ($nID <= 0 || !isset($this->nodesRawIndex[$nID])) {
            return -3;
        }
        $this->runCurrNode($nID);
        $nodeOverride = $this->moveNextOverride($nID);
        if ($nodeOverride > 0) {
            return $nodeOverride;
        }
        //if ($nID == $GLOBALS["SL"]->treeRow->TreeLastPage) return -37;
        $nextNodeInd = $this->nodesRawIndex[$nID]+1;
        if (!isset($this->nodesRawOrder[$nextNodeInd])) {
            return -3;
        }
        $nextNodeID = $this->nodesRawOrder[$nextNodeInd];
        return $nextNodeID;
    }
public function nextNode($nID)
    {
        if ($nID <= 0 || !isset($this->nodesRawIndex[$nID])) {
            return -3;
        }
        $this->runCurrNode($nID);
        $nodeOverride = $this->moveNextOverride($nID);
        if ($nodeOverride > 0) {
            return $nodeOverride;
        }
        //if ($nID == $GLOBALS["SL"]->treeRow->TreeLastPage) return -37;
        $nextNodeInd = $this->nodesRawIndex[$nID]+1;
        if (!isset($this->nodesRawOrder[$nextNodeInd])) {
            return -3;
        }
        $nextNodeID = $this->nodesRawOrder[$nextNodeInd];
        return $nextNodeID;
    }
public function nextNode ( $ nID ) { if ( $ nID <= 0 || ! isset ( $ this -> nodesRawIndex [ $ nID ] ) ) { return - 3 ; } $ this -> runCurrNode ( $ nID ) ; $ nodeOverride = $ this -> moveNextOverride ( $ nID ) ; if ( $ nodeOverride > 0 ) { return $ nodeOverride ; } //if ($nID == $GLOBALS["SL"]->treeRow->TreeLastPage) return -37; $ nextNodeInd = $ this -> nodesRawIndex [ $ nID ] + 1 ; if ( ! isset ( $ this -> nodesRawOrder [ $ nextNodeInd ] ) ) { return - 3 ; } $ nextNodeID = $ this -> nodesRawOrder [ $ nextNodeInd ] ; return $ nextNodeID ; }
Locate next node in standard Pre-Order Traversal
Locate next node in standard Pre - Order Traversal