Lines Matching refs:function

73 Next, let's use a ``lipsum`` *function*:
79 Here we go. For this specific example, the creation of a function is the
105 *function* trivial frequent Content generation
130 A filter is a regular PHP function or an object method that takes the left
143 filter, and it is simply mapped to the PHP ``strtolower()`` function. After
151 function.
159 In this case, the extra arguments are passed to the function after the main
185 Here, we use ``Twig_Filter_Function`` as the filter is a PHP function. The
187 of the PHP function to call, here ``str_rot13``, a native PHP function.
197 As the PHP ``str_rot13()`` function does not support this requirement, let's
198 create a new PHP function::
200 function project_compute_rot13($string, $prefix = '')
206 argument to the ``project_compute_rot13()`` function.
235 function twig_compute_rot13(\Twig\Environment $env, $string)
271 function twig_path($name, $arguments)
285 function twig_path($name, $suffix, $arguments)
297 A function is a regular PHP function or an object method that can be called from
305 associated with the ``constant`` function. The ``constant`` function is a built-in Twig
306 function, and it is simply mapped to the PHP ``constant()`` function. After
313 Adding a function is similar to adding a filter. This can be done by calling the
333 A function name containing the special ``*`` character is a dynamic function
338 function twig_path($name, $arguments)
343 The following functions will be matched by the above defined dynamic function:
348 A dynamic function can define more than one dynamic parts::
352 function twig_path($name, $suffix, $arguments)
357 The function will receive all dynamic part values before the normal functions
410 public function parse(\Twig\Token $token)
422 public function getTag()
466 …public function __construct($name, \Twig\Node\Expression\AbstractExpression $value, $lineno, $tag …
471 public function compile(\Twig\Compiler $compiler)
543 function initRuntime(\Twig\Environment $environment);
550 function getTokenParsers();
557 function getNodeVisitors();
564 function getFilters();
571 function getTests();
578 function getFunctions();
585 function getOperators();
592 function getGlobals();
599 function getName();
614 public function getName()
649 public function getGlobals()
667 public function getFunctions()
686 public function getFilters()
710 public function getFilters()
717 public function rot13Filter($string)
742 public function getFilters()
750 public function dateFilter($timestamp, $format = 'F j, Y H:i')
755 public function getName()
777 public function getTokenParsers()
797 public function getOperators()
820 public function getTests()
858 public function getExtensions()
866 public function getFixturesDir()
883 .. _`rot13`: https://secure.php.net/manual/en/function.str-rot13.php