eZ Publish  [trunk]
eZTemplateOptimizer Class Reference

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

List of all members.

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.

Definition at line 17 of file eztemplateoptimizer.php.


Member Function Documentation

static eZTemplateOptimizer::fetchClassDeclaration ( classID) [static]

Definition at line 188 of file eztemplateoptimizer.php.

Referenced by eZTemplateCompiler\compileTemplate().

static eZTemplateOptimizer::optimize ( useComments,
&$  php,
tpl,
&$  tree,
&$  resourceData 
) [static]

Runs the optimizer

Definition at line 137 of file eztemplateoptimizer.php.

Referenced by eZTemplateCompiler\compileTemplate().

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

Analyses function nodes and tries to optimize them

Definition at line 71 of file eztemplateoptimizer.php.

Referenced by optimizeVariable().

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

Optimizes a resource acquisition node and the variable data before it

Definition at line 22 of file eztemplateoptimizer.php.

Referenced by optimize().

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

Analyses variables and tries to optimize them

Definition at line 88 of file eztemplateoptimizer.php.

Referenced by optimize(), and optimizeFunction().


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