]>
git.immae.eu Git - github/wallabag/wallabag.git/blob - inc/Twig/Extension.php
931fc0338ca5b5c0f6017e5c7afca5955a20ecea
4 * This file is part of Twig.
6 * (c) 2009 Fabien Potencier
8 * For the full copyright and license information, please view the LICENSE
9 * file that was distributed with this source code.
11 abstract class Twig_Extension
implements Twig_ExtensionInterface
14 * Initializes the runtime environment.
16 * This is where you can load some file that contains filter functions for instance.
18 * @param Twig_Environment $environment The current Twig_Environment instance
20 public function initRuntime(Twig_Environment
$environment)
25 * Returns the token parser instances to add to the existing list.
27 * @return array An array of Twig_TokenParserInterface or Twig_TokenParserBrokerInterface instances
29 public function getTokenParsers()
35 * Returns the node visitor instances to add to the existing list.
37 * @return array An array of Twig_NodeVisitorInterface instances
39 public function getNodeVisitors()
45 * Returns a list of filters to add to the existing list.
47 * @return array An array of filters
49 public function getFilters()
55 * Returns a list of tests to add to the existing list.
57 * @return array An array of tests
59 public function getTests()
65 * Returns a list of functions to add to the existing list.
67 * @return array An array of functions
69 public function getFunctions()
75 * Returns a list of operators to add to the existing list.
77 * @return array An array of operators
79 public function getOperators()
85 * Returns a list of global variables to add to the existing list.
87 * @return array An array of global variables
89 public function getGlobals()