ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
LegacyTwigTestExtension Class Reference
+ Inheritance diagram for LegacyTwigTestExtension:
+ Collaboration diagram for LegacyTwigTestExtension:

Public Member Functions

 getTests ()
 Returns a list of tests to add to the existing list. More...
 
 is_multi_word ($value)
 
 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

Definition at line 36 of file LegacyIntegrationTest.php.

Member Function Documentation

◆ getName()

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

Reimplemented from Twig_Extension.

Definition at line 50 of file LegacyIntegrationTest.php.

51 {
52 return 'legacy_integration_test';
53 }

◆ getTests()

LegacyTwigTestExtension::getTests ( )

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

Returns
Twig_SimpleTest[]

Reimplemented from Twig_Extension.

Definition at line 38 of file LegacyIntegrationTest.php.

39 {
40 return array(
41 'multi word' => new Twig_Test_Method($this, 'is_multi_word'),
42 );
43 }
Represents a method template test.
Definition: Method.php:22

◆ is_multi_word()

LegacyTwigTestExtension::is_multi_word (   $value)

Definition at line 45 of file LegacyIntegrationTest.php.

46 {
47 return false !== strpos($value, ' ');
48 }

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