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

Public Member Functions

 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 ()
 
- 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 538 of file EnvironmentTest.php.

Member Function Documentation

◆ getFilters()

Twig_Tests_EnvironmentTest_Extension::getFilters ( )

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

Returns
Twig_SimpleFilter[]

Reimplemented from Twig_Extension.

Definition at line 554 of file EnvironmentTest.php.

555 {
556 return array(
557 new Twig_SimpleFilter('foo_filter', 'foo_filter'),
558 );
559 }
Represents a template filter.

◆ getFunctions()

Twig_Tests_EnvironmentTest_Extension::getFunctions ( )

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

Returns
Twig_SimpleFunction[]

Reimplemented from Twig_Extension.

Definition at line 568 of file EnvironmentTest.php.

569 {
570 return array(
571 new Twig_SimpleFunction('foo_function', 'foo_function'),
572 );
573 }
Represents a template function.

◆ getGlobals()

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

Reimplemented from Twig_Extension.

Definition at line 583 of file EnvironmentTest.php.

584 {
585 return array(
586 'foo_global' => 'foo_global',
587 );
588 }

◆ getNodeVisitors()

Twig_Tests_EnvironmentTest_Extension::getNodeVisitors ( )

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

Returns
Twig_NodeVisitorInterface[]

Reimplemented from Twig_Extension.

Definition at line 547 of file EnvironmentTest.php.

◆ getOperators()

Twig_Tests_EnvironmentTest_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

Reimplemented from Twig_Extension.

Definition at line 575 of file EnvironmentTest.php.

576 {
577 return array(
578 array('foo_unary' => array()),
579 array('foo_binary' => array()),
580 );
581 }

◆ getTests()

Twig_Tests_EnvironmentTest_Extension::getTests ( )

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

Returns
Twig_SimpleTest[]

Reimplemented from Twig_Extension.

Definition at line 561 of file EnvironmentTest.php.

562 {
563 return array(
564 new Twig_SimpleTest('foo_test', 'foo_test'),
565 );
566 }
Represents a template test.
Definition: SimpleTest.php:20

◆ getTokenParsers()

Twig_Tests_EnvironmentTest_Extension::getTokenParsers ( )

Returns the token parser instances to add to the existing list.

Returns
Twig_TokenParserInterface[]

Reimplemented from Twig_Extension.

Definition at line 540 of file EnvironmentTest.php.


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