ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
Twig_Extension_StringLoader Class Reference

@final More...

+ Inheritance diagram for Twig_Extension_StringLoader:
+ Collaboration diagram for Twig_Extension_StringLoader:

Public Member Functions

 getFunctions ()
 Returns a list of functions to add to the existing list. More...
 
 getName ()
 
- Public Member Functions inherited from Twig_Extension
 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

@final

Definition at line 15 of file StringLoader.php.

Member Function Documentation

◆ getFunctions()

Twig_Extension_StringLoader::getFunctions ( )

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

Returns
Twig_SimpleFunction[]

Reimplemented from Twig_Extension.

Definition at line 17 of file StringLoader.php.

18 {
19 return array(
20 new Twig_SimpleFunction('template_from_string', 'twig_template_from_string', array('needs_environment' => true)),
21 );
22 }
Represents a template function.

◆ getName()

Twig_Extension_StringLoader::getName ( )
Deprecated:
since 1.26 (to be removed in 2.0), not used anymore internally

Reimplemented from Twig_Extension.

Definition at line 24 of file StringLoader.php.

25 {
26 return 'string_loader';
27 }

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