ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
Extension.php
Go to the documentation of this file.
1<?php
2
3/*
4 * This file is part of Twig.
5 *
6 * (c) Fabien Potencier
7 *
8 * For the full copyright and license information, please view the LICENSE
9 * file that was distributed with this source code.
10 */
11
12abstract class Twig_Extension implements Twig_ExtensionInterface
13{
17 public function initRuntime(Twig_Environment $environment)
18 {
19 }
20
21 public function getTokenParsers()
22 {
23 return array();
24 }
25
26 public function getNodeVisitors()
27 {
28 return array();
29 }
30
31 public function getFilters()
32 {
33 return array();
34 }
35
36 public function getTests()
37 {
38 return array();
39 }
40
41 public function getFunctions()
42 {
43 return array();
44 }
45
46 public function getOperators()
47 {
48 return array();
49 }
50
54 public function getGlobals()
55 {
56 return array();
57 }
58
62 public function getName()
63 {
64 return get_class($this);
65 }
66}
67
68class_alias('Twig_Extension', 'Twig\Extension\AbstractExtension', false);
69class_exists('Twig_Environment');
An exception for terminatinating execution or to throw for unit testing.
Stores the Twig configuration.
Definition: Environment.php:18
getTokenParsers()
Returns the token parser instances to add to the existing list.
Definition: Extension.php:21
getFunctions()
Returns a list of functions to add to the existing list.
Definition: Extension.php:41
getNodeVisitors()
Returns the node visitor instances to add to the existing list.
Definition: Extension.php:26
getTests()
Returns a list of tests to add to the existing list.
Definition: Extension.php:36
getFilters()
Returns a list of filters to add to the existing list.
Definition: Extension.php:31
initRuntime(Twig_Environment $environment)
Definition: Extension.php:17
getOperators()
Returns a list of operators to add to the existing list.
Definition: Extension.php:46
Interface implemented by extension classes.