src/PAGI/Node/NodeController.php
public function jumpTo($name)
    {
        if (!isset($this->nodes[$name])) {
            throw new NodeException("Unknown node: $name");
        }
        // Cant make this recursive because php does not support tail
        // recursion optimization.
        while ($name !== false) {
            $node = $this->nodes[$name];
            $this->logDebug("Running $name");
            $node->run();
            $name = $this->processNodeResult($node);
        }
    }
public function jumpTo($name)
    {
        if (!isset($this->nodes[$name])) {
            throw new NodeException("Unknown node: $name");
        }
        // Cant make this recursive because php does not support tail
        // recursion optimization.
        while ($name !== false) {
            $node = $this->nodes[$name];
            $this->logDebug("Running $name");
            $node->run();
            $name = $this->processNodeResult($node);
        }
    }
public function jumpTo ( $ name ) { if ( ! isset ( $ this -> nodes [ $ name ] ) ) { throw new NodeException ( "Unknown node: $name" ) ; } // Cant make this recursive because php does not support tail // recursion optimization. while ( $ name !== false ) { $ node = $ this -> nodes [ $ name ] ; $ this -> logDebug ( "Running $name" ) ; $ node -> run ( ) ; $ name = $ this -> processNodeResult ( $ node ) ; } }
Runs a node and process the result.

@param string $name Node to run.

@return void
@throws NodeException
Runs a node and process the result .