30 $this->options = array_merge(
array(
31 'needs_environment' =>
false,
32 'needs_context' =>
false,
33 'is_variadic' =>
false,
35 'is_safe_callback' => null,
36 'node_class' =>
'Twig_Node_Expression_Function',
37 'deprecated' =>
false,
38 'alternative' => null,
54 return $this->options[
'node_class'];
69 return $this->options[
'needs_environment'];
74 return $this->options[
'needs_context'];
79 if (null !== $this->options[
'is_safe']) {
80 return $this->options[
'is_safe'];
83 if (null !== $this->options[
'is_safe_callback']) {
84 return call_user_func($this->options[
'is_safe_callback'], $functionArgs);
92 return $this->options[
'is_variadic'];
97 return (
bool) $this->options[
'deprecated'];
102 return $this->options[
'deprecated'];
107 return $this->options[
'alternative'];
111 class_alias(
'Twig_SimpleFunction',
'Twig\TwigFunction',
false);
Represents a template function.
Represents a node in the AST.
__construct($name, $callable, array $options=array())
getSafe(Twig_Node $functionArgs)
Create styles array
The data for the language used.