15 parent::__construct(array(
'arguments' => $arguments), array(
'name' => $name),
$lineno);
26 $this->
setAttribute(
'needs_environment', $function->needsEnvironment());
27 $this->
setAttribute(
'needs_context', $function->needsContext());
28 $this->
setAttribute(
'arguments', $function->getArguments());
30 $this->
setAttribute(
'callable', $function->getCallable());
Compiles a node to PHP code.
__construct($name, Twig_NodeInterface $arguments, $lineno)
Represents a template function.
getAttribute($name)
Gets an attribute.
compileCallable(Twig_Compiler $compiler)
setAttribute($name, $value)
Sets an attribute.
getEnvironment()
Returns the environment instance related to this compiler.
compile(Twig_Compiler $compiler)
Compiles the node to PHP.
Represents a node in the AST.
Represents a callable template function.