16 parent::__construct(array(
'node' => $node,
'filter' => $filterName,
'arguments' => $arguments), array(),
$lineno,
$tag);
21 $name = $this->
getNode(
'filter')->getAttribute(
'value');
27 $this->
setAttribute(
'needs_environment', $filter->needsEnvironment());
28 $this->
setAttribute(
'needs_context', $filter->needsContext());
29 $this->
setAttribute(
'arguments', $filter->getArguments());
__construct(Twig_NodeInterface $node, Twig_Node_Expression_Constant $filterName, Twig_NodeInterface $arguments, $lineno, $tag=null)
Compiles a node to PHP code.
compile(Twig_Compiler $compiler)
Compiles the node to PHP.
compileCallable(Twig_Compiler $compiler)
setAttribute($name, $value)
Sets an attribute.
getEnvironment()
Returns the environment instance related to this compiler.
Represents a node in the AST.
Represents a template filter.
Represents a callable template filter.
getNode($name)
Gets a node by name.