Compiler.php
protected function compileFilter(Node $node)
    {

        $name = $node->name;

        if (!isset($this->options['filters'][$name]))
            $this->throwException(
                "Filter $name was not defined. Make sure to add it via the [`filters`]-option or the [`->addFilter`]-method ",
                $node
            );

        $result = call_user_func($this->options['filters'][$name], $node, $this->indent(), $this->newLine(), $this);

        return $result instanceof Node ? $this->compileNode($result) : (string)$result;
    }
protected function compileFilter(Node $node)
    {

        $name = $node->name;

        if (!isset($this->options['filters'][$name]))
            $this->throwException(
                "Filter $name was not defined. Make sure to add it via the [`filters`]-option or the [`->addFilter`]-method ",
                $node
            );

        $result = call_user_func($this->options['filters'][$name], $node, $this->indent(), $this->newLine(), $this);

        return $result instanceof Node ? $this->compileNode($result) : (string)$result;
    }
protected function compileFilter ( Node $ node ) { $ name = $ node -> name ; if ( ! isset ( $ this -> options [ 'filters' ] [ $ name ] ) ) $ this -> throwException ( "Filter $name was not defined. Make sure to add it via the [`filters`]-option or the [`->addFilter`]-method " , $ node ) ; $ result = call_user_func ( $ this -> options [ 'filters' ] [ $ name ] , $ node , $ this -> indent ( ) , $ this -> newLine ( ) , $ this ) ; return $ result instanceof Node ? $ this -> compileNode ( $ result ) : ( string ) $ result ; }
Compiles a filter-node into PHTML.

The filters are drawn from the filters-option

@param Node $node the filter node to compile

@return string The compiled PHTML
@throws Exception
Compiles a filter - node into PHTML .