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

Public Member Functions

 __construct ($operators)
 
 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...
 
 getGlobals ()
 Returns a list of global variables to add to the existing list. More...
 
 getOperators ()
 Returns a list of operators to add to the existing list. More...
 
 getName ()
 Returns the name of the extension. More...
 

Private Attributes

 $operators
 

Detailed Description

Definition at line 41 of file CustomExtensionTest.php.

Constructor & Destructor Documentation

◆ __construct()

InvalidOperatorExtension::__construct (   $operators)

Definition at line 45 of file CustomExtensionTest.php.

46  {
47  $this->operators = $operators;
48  }

Member Function Documentation

◆ getFilters()

InvalidOperatorExtension::getFilters ( )

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

Returns
Twig_SimpleFilter[]

Implements Twig_ExtensionInterface.

Definition at line 64 of file CustomExtensionTest.php.

References array.

65  {
66  return array();
67  }
Create styles array
The data for the language used.

◆ getFunctions()

InvalidOperatorExtension::getFunctions ( )

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

Returns
Twig_SimpleFunction[]

Implements Twig_ExtensionInterface.

Definition at line 74 of file CustomExtensionTest.php.

References array.

75  {
76  return array();
77  }
Create styles array
The data for the language used.

◆ getGlobals()

InvalidOperatorExtension::getGlobals ( )

Returns a list of global variables to add to the existing list.

Returns
array An array of global variables
Deprecated:
since 1.23 (to be removed in 2.0), implement Twig_Extension_GlobalsInterface instead

Implements Twig_ExtensionInterface.

Definition at line 79 of file CustomExtensionTest.php.

References array.

80  {
81  return array();
82  }
Create styles array
The data for the language used.

◆ getName()

InvalidOperatorExtension::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 89 of file CustomExtensionTest.php.

90  {
91  return __CLASS__;
92  }

◆ getNodeVisitors()

InvalidOperatorExtension::getNodeVisitors ( )

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

Returns
Twig_NodeVisitorInterface[]

Implements Twig_ExtensionInterface.

Definition at line 59 of file CustomExtensionTest.php.

References array.

60  {
61  return array();
62  }
Create styles array
The data for the language used.

◆ getOperators()

InvalidOperatorExtension::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

Implements Twig_ExtensionInterface.

Definition at line 84 of file CustomExtensionTest.php.

◆ getTests()

InvalidOperatorExtension::getTests ( )

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

Returns
Twig_SimpleTest[]

Implements Twig_ExtensionInterface.

Definition at line 69 of file CustomExtensionTest.php.

References array.

70  {
71  return array();
72  }
Create styles array
The data for the language used.

◆ getTokenParsers()

InvalidOperatorExtension::getTokenParsers ( )

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

Returns
Twig_TokenParserInterface[]

Implements Twig_ExtensionInterface.

Definition at line 54 of file CustomExtensionTest.php.

References array.

55  {
56  return array();
57  }
Create styles array
The data for the language used.

◆ initRuntime()

InvalidOperatorExtension::initRuntime ( Twig_Environment  $environment)

Initializes the runtime environment.

This is where you can load some file that contains filter functions for instance.

Deprecated:
since 1.23 (to be removed in 2.0), implement Twig_Extension_InitRuntimeInterface instead

Implements Twig_ExtensionInterface.

Definition at line 50 of file CustomExtensionTest.php.

51  {
52  }

Field Documentation

◆ $operators

InvalidOperatorExtension::$operators
private

Definition at line 43 of file CustomExtensionTest.php.


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