ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
Twig_Extension Class Reference
+ Inheritance diagram for Twig_Extension:
+ Collaboration diagram for Twig_Extension:

Public Member Functions

 initRuntime (Twig_Environment $environment)
 
 getTokenParsers ()
 Returns the token parser instances to add to the existing list. More...
 
 getNodeVisitors ()
 Returns the node visitor instances to add to the existing list. More...
 
 getFilters ()
 Returns a list of filters to add to the existing list. More...
 
 getTests ()
 Returns a list of tests to add to the existing list. More...
 
 getFunctions ()
 Returns a list of functions to add to the existing list. More...
 
 getOperators ()
 Returns a list of operators to add to the existing list. More...
 
 getGlobals ()
 
 getName ()
 
 initRuntime (Twig_Environment $environment)
 Initializes the runtime environment. More...
 
 getTokenParsers ()
 Returns the token parser instances to add to the existing list. More...
 
 getNodeVisitors ()
 Returns the node visitor instances to add to the existing list. More...
 
 getFilters ()
 Returns a list of filters to add to the existing list. More...
 
 getTests ()
 Returns a list of tests to add to the existing list. More...
 
 getFunctions ()
 Returns a list of functions to add to the existing list. More...
 
 getOperators ()
 Returns a list of operators to add to the existing list. More...
 
 getGlobals ()
 Returns a list of global variables to add to the existing list. More...
 
 getName ()
 Returns the name of the extension. More...
 

Detailed Description

Definition at line 12 of file Extension.php.

Member Function Documentation

◆ getFilters()

◆ getFunctions()

Twig_Extension::getFunctions ( )

Returns a list of functions to add to the existing list.

Returns
Twig_SimpleFunction[]

Implements Twig_ExtensionInterface.

Reimplemented in Twig_Extension_Core, Twig_Extension_Debug, Twig_Extension_Staging, Twig_Extension_StringLoader, Twig_Tests_EnvironmentTest_Extension, Twig_Tests_EnvironmentTest_ExtensionWithoutRuntime, and TwigTestExtension.

Definition at line 41 of file Extension.php.

42 {
43 return array();
44 }

◆ getGlobals()

Twig_Extension::getGlobals ( )
Deprecated:
since 1.23 (to be removed in 2.0), implement Twig_Extension_GlobalsInterface instead

Implements Twig_ExtensionInterface.

Reimplemented in Twig_Extension_Staging, Twig_Tests_EnvironmentTest_Extension_WithGlobals, and Twig_Tests_EnvironmentTest_Extension.

Definition at line 54 of file Extension.php.

55 {
56 return array();
57 }

◆ getName()

◆ getNodeVisitors()

Twig_Extension::getNodeVisitors ( )

Returns the node visitor instances to add to the existing list.

Returns
Twig_NodeVisitorInterface[]

Implements Twig_ExtensionInterface.

Reimplemented in Twig_Extension_Escaper, Twig_Extension_Optimizer, Twig_Extension_Profiler, Twig_Extension_Sandbox, Twig_Extension_Staging, and Twig_Tests_EnvironmentTest_Extension.

Definition at line 26 of file Extension.php.

27 {
28 return array();
29 }

◆ getOperators()

Twig_Extension::getOperators ( )

Returns a list of operators to add to the existing list.

Returns
array<array> First array of unary operators, second array of binary operators

Implements Twig_ExtensionInterface.

Reimplemented in Twig_Extension_Core, and Twig_Tests_EnvironmentTest_Extension.

Definition at line 46 of file Extension.php.

47 {
48 return array();
49 }

◆ getTests()

Twig_Extension::getTests ( )

Returns a list of tests to add to the existing list.

Returns
Twig_SimpleTest[]

Implements Twig_ExtensionInterface.

Reimplemented in Twig_Extension_Core, Twig_Extension_Staging, Twig_Tests_EnvironmentTest_Extension, TwigTestExtension, and LegacyTwigTestExtension.

Definition at line 36 of file Extension.php.

37 {
38 return array();
39 }

◆ getTokenParsers()

Twig_Extension::getTokenParsers ( )

◆ initRuntime()

Twig_Extension::initRuntime ( Twig_Environment  $environment)

The documentation for this class was generated from the following file: