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

More...

+ Inheritance diagram for Twig_Extension_Optimizer:
+ Collaboration diagram for Twig_Extension_Optimizer:

Public Member Functions

 __construct ($optimizers=-1)
 
 getNodeVisitors ()
 Returns the node visitor instances to add to the existing list. More...
 
 getName ()
 Returns the name of the extension. 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 ()
 

Protected Attributes

 $optimizers
 

Detailed Description

Definition at line 15 of file Optimizer.php.

Constructor & Destructor Documentation

◆ __construct()

Twig_Extension_Optimizer::__construct (   $optimizers = -1)

Definition at line 19 of file Optimizer.php.

References $optimizers.

20  {
21  $this->optimizers = $optimizers;
22  }

Member Function Documentation

◆ getName()

Twig_Extension_Optimizer::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 29 of file Optimizer.php.

30  {
31  return 'optimizer';
32  }

◆ getNodeVisitors()

Twig_Extension_Optimizer::getNodeVisitors ( )

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

Returns
Twig_NodeVisitorInterface[]

Implements Twig_ExtensionInterface.

Definition at line 24 of file Optimizer.php.

References array.

25  {
26  return array(new Twig_NodeVisitor_Optimizer($this->optimizers));
27  }
Twig_NodeVisitor_Optimizer tries to optimizes the AST.
Definition: Optimizer.php:24
Create styles array
The data for the language used.

Field Documentation

◆ $optimizers

Twig_Extension_Optimizer::$optimizers
protected

Definition at line 17 of file Optimizer.php.

Referenced by __construct().


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