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

@final 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 ()
 
- 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...
 

Protected Attributes

 $optimizers
 

Detailed Description

@final

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.

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

References $optimizers.

Member Function Documentation

◆ getName()

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

Reimplemented from Twig_Extension.

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[]

Reimplemented from Twig_Extension.

Definition at line 24 of file Optimizer.php.

25 {
26 return array(new Twig_NodeVisitor_Optimizer($this->optimizers));
27 }
Twig_NodeVisitor_Optimizer tries to optimizes the AST.
Definition: Optimizer.php:25

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: