ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
Interface implemented by extension classes. More...
Public Member Functions | |
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... | |
Interface implemented by extension classes.
Definition at line 17 of file ExtensionInterface.php.
Twig_ExtensionInterface::getFilters | ( | ) |
Returns a list of filters to add to the existing list.
Implemented in Twig_Tests_EnvironmentTest_Extension, Twig_Extension_Core, TwigTestExtension, JaimePerez\TwigConfigurableI18n\Twig\Extensions\Extension\I18n, InvalidOperatorExtension, Twig_Extension_Staging, Twig_Extensions_Extension_Date, Twig_Extension_Escaper, Twig_Extension, Twig_Extensions_Extension_I18n, Twig_Extensions_Extension_Intl, Twig_Extensions_Extension_Array, and Twig_Extensions_Extension_Text.
Referenced by Twig_Environment\initExtension().
Twig_ExtensionInterface::getFunctions | ( | ) |
Returns a list of functions to add to the existing list.
Implemented in Twig_Tests_EnvironmentTest_ExtensionWithoutRuntime, Twig_Tests_EnvironmentTest_Extension, Twig_Extension_Core, TwigTestExtension, InvalidOperatorExtension, Twig_Extension, Twig_Extension_Staging, Twig_Extension_Debug, and Twig_Extension_StringLoader.
Referenced by Twig_Environment\initExtension().
Twig_ExtensionInterface::getGlobals | ( | ) |
Returns a list of global variables to add to the existing list.
Implemented in Twig_Tests_EnvironmentTest_Extension, Twig_Tests_EnvironmentTest_Extension_WithGlobals, Twig_Extension_Staging, InvalidOperatorExtension, and Twig_Extension.
Twig_ExtensionInterface::getName | ( | ) |
Returns the name of the extension.
Implemented in Twig_Tests_EnvironmentTest_ExtensionWithoutRuntime, Twig_Tests_EnvironmentTest_Extension_DynamicWithDeprecatedName, Twig_Tests_EnvironmentTest_Extension_WithDeprecatedName, Twig_Extension_Core, Twig_Extension_Staging, Twig_Extension_Sandbox, Twig_Extensions_Extension_Date, Twig_Extension_Escaper, InvalidOperatorExtension, Twig_Extension, LegacyTwigTestExtension, Twig_Extension_Profiler, Twig_Extensions_Extension_Intl, Twig_Extensions_Extension_I18n, Twig_Extension_Debug, Twig_Extensions_Extension_Array, Twig_Extensions_Extension_Text, Twig_Extension_Optimizer, and Twig_Extension_StringLoader.
Referenced by Twig_Environment\addExtension().
Twig_ExtensionInterface::getNodeVisitors | ( | ) |
Returns the node visitor instances to add to the existing list.
Implemented in Twig_Tests_EnvironmentTest_Extension, Twig_Extension_Staging, InvalidOperatorExtension, Twig_Extension_Profiler, Twig_Extension_Escaper, Twig_Extension_Sandbox, Twig_Extension, and Twig_Extension_Optimizer.
Referenced by Twig_Environment\initExtension().
Twig_ExtensionInterface::getOperators | ( | ) |
Returns a list of operators to add to the existing list.
Implemented in Twig_Tests_EnvironmentTest_Extension, Twig_Extension_Core, InvalidOperatorExtension, and Twig_Extension.
Referenced by Twig_Environment\initExtension().
Twig_ExtensionInterface::getTests | ( | ) |
Returns a list of tests to add to the existing list.
Implemented in Twig_Tests_EnvironmentTest_Extension, Twig_Extension_Core, TwigTestExtension, Twig_Extension_Staging, InvalidOperatorExtension, LegacyTwigTestExtension, and Twig_Extension.
Referenced by Twig_Environment\initExtension().
Twig_ExtensionInterface::getTokenParsers | ( | ) |
Returns the token parser instances to add to the existing list.
Implemented in Twig_Tests_EnvironmentTest_Extension, TwigTestExtension, Twig_Extension_Core, Twig_Extension_Staging, JaimePerez\TwigConfigurableI18n\Twig\Extensions\Extension\I18n, InvalidOperatorExtension, Twig_Extension_Escaper, Twig_Extension_Sandbox, Twig_Extension, and Twig_Extensions_Extension_I18n.
Referenced by Twig_Environment\initExtension().
Twig_ExtensionInterface::initRuntime | ( | Twig_Environment | $environment | ) |
Initializes the runtime environment.
This is where you can load some file that contains filter functions for instance.
Implemented in Twig_Tests_EnvironmentTest_ExtensionWithoutDeprecationInitRuntime, Twig_Tests_EnvironmentTest_ExtensionWithDeprecationInitRuntime, InvalidOperatorExtension, and Twig_Extension.