ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
Twig_Extensions_Extension_Text Class Reference

This file is part of Twig. More...

+ Inheritance diagram for Twig_Extensions_Extension_Text:
+ Collaboration diagram for Twig_Extensions_Extension_Text:

Public Member Functions

 getFilters ()
 {Returns a list of filters to add to the existing list.
Returns
Twig_SimpleFilter[]
} More...
 
 getName ()
 {Returns the name of the extension.
Returns
string The extension name
Deprecated:
since 1.26 (to be removed in 2.0), not used anymore internally
} More...
 
- 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 ()
 

Detailed Description

This file is part of Twig.

(c) 2009 Fabien Potencier

For the full copyright and license information, please view the LICENSE file that was distributed with this source code.

Author
Henrik Bjornskov hb@pe.nosp@m.ytz..nosp@m.dk

Definition at line 15 of file Text.php.

Member Function Documentation

◆ getFilters()

Twig_Extensions_Extension_Text::getFilters ( )

{Returns a list of filters to add to the existing list.

Returns
Twig_SimpleFilter[]
}

Implements Twig_ExtensionInterface.

Definition at line 20 of file Text.php.

References array.

21  {
22  return array(
23  new Twig_SimpleFilter('truncate', 'twig_truncate_filter', array('needs_environment' => true)),
24  new Twig_SimpleFilter('wordwrap', 'twig_wordwrap_filter', array('needs_environment' => true)),
25  );
26  }
Represents a template filter.
Create styles array
The data for the language used.

◆ getName()

Twig_Extensions_Extension_Text::getName ( )

{Returns the name of the extension.

Returns
string The extension name
Deprecated:
since 1.26 (to be removed in 2.0), not used anymore internally
}

Implements Twig_ExtensionInterface.

Definition at line 31 of file Text.php.

References $env, array, and Twig_Environment\getCharset().

32  {
33  return 'Text';
34  }
+ Here is the call graph for this function:

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