28 $this->options = array_merge(array(
29 'needs_environment' =>
false,
30 'needs_context' =>
false,
32 'is_safe_callback' => null,
33 'node_class' =>
'Twig_Node_Expression_Function',
49 return $this->options[
'node_class'];
64 return $this->options[
'needs_environment'];
69 return $this->options[
'needs_context'];
74 if (null !== $this->options[
'is_safe']) {
75 return $this->options[
'is_safe'];
78 if (null !== $this->options[
'is_safe_callback']) {
79 return call_user_func($this->options[
'is_safe_callback'], $functionArgs);
__construct($name, $callable, array $options=array())
Represents a node in the AST.
Represents a template function.
getSafe(Twig_Node $functionArgs)