eZPublish  4.4
eZTemplateOptimizer Class Reference

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

Static Public Member Functions

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

Detailed Description

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

Member Function Documentation

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

Runs the optimizer

Referenced by eZTemplateCompiler\compileTemplate().

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

Analyses function nodes and tries to optimize them

Referenced by optimizeVariable().

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

Optimizes a resource acquisition node and the variable data before it

Referenced by optimize().

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

Analyses variables and tries to optimize them

Referenced by optimize(), and optimizeFunction().


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