eZPublish  3.8
eZTemplateOptimizer Class Reference

Analyses a compiled template tree and tries to optimize certain parts of it. More...

Public Member Functions

 eZTemplateOptimizer ()
 
 fetchClassDeclaration ($classID)
 
 optimize ($useComments, &$php, &$tpl, &$tree, &$resourceData)
 
 optimizeFunction ($useComments, &$php, &$tpl, &$node, &$resourceData)
 
 optimizeResourceAcquisition ($useComments, &$php, &$tpl, &$var, &$node, &$resourceData)
 
 optimizeVariable ($useComments, &$php, &$tpl, &$data, &$resourceData)
 

Detailed Description

Analyses a compiled template tree and tries to optimize certain parts of it.

Member Function Documentation

eZTemplateOptimizer::eZTemplateOptimizer ( )

Constructor

eZTemplateOptimizer::fetchClassDeclaration (   $classID)
eZTemplateOptimizer::optimize (   $useComments,
$php,
$tpl,
$tree,
$resourceData 
)

Runs the optimizer

Referenced by eZTemplateCompiler\compileTemplate().

eZTemplateOptimizer::optimizeFunction (   $useComments,
$php,
$tpl,
$node,
$resourceData 
)

Analyses function nodes and tries to optimize them

Referenced by optimizeVariable().

eZTemplateOptimizer::optimizeResourceAcquisition (   $useComments,
$php,
$tpl,
$var,
$node,
$resourceData 
)

Optimizes a resource acquisition node and the variable data before it

Referenced by optimize().

eZTemplateOptimizer::optimizeVariable (   $useComments,
$php,
$tpl,
$data,
$resourceData 
)

Analyses variables and tries to optimize them

Referenced by optimize(), and optimizeFunction().


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