lib/eztemplate/classes/eztemplatecompiler.php
File containing the eZTemplateCompiler class.
- Copyright
- Copyright (C) 1999-2011 eZ Systems AS. All rights reserved.
- License
- eZ Business Use License Agreement Version 2.0
- Package
- lib
- Version
- 4.6.0
\eZTemplateCompiler
Package: lib
File containing the eZTemplateCompiler class.
- Copyright
- Copyright (C) 1999-2011 eZ Systems AS. All rights reserved.
- License
- eZ Business Use License Agreement Version 2.0
- Version
- 4.6.0
Constants
Methods


boundVariableName(
$variableID, $parameters
)
:
void
static
Parameters
Name | Type | Description |
---|---|---|
$variableID | ||
$parameters |


combineStaticNodes(
$tpl, $resourceData, $lastNode, $newNode
)
:
void
static
Parameters
Name | Type | Description |
---|---|---|
$tpl | ||
$resourceData | ||
$lastNode | ||
$newNode |


compilationFilename(
$key, $resourceData
)
:
void
static
Parameters
Name | Type | Description |
---|---|---|
$key | ||
$resourceData |


compileTemplate(
$tpl, $key, $resourceData
)
:
void
static
Parameters
Name | Type | Description |
---|---|---|
$tpl | ||
$key | ||
$resourceData |


createStaticVariableData(
$tpl, $staticData, $variableItemPlacement
)
:
void
static
Parameters
Name | Type | Description |
---|---|---|
$tpl | ||
$staticData | ||
$variableItemPlacement |


executeCompilation(
$tpl, $textElements, $key, $resourceData, $rootNamespace, $currentNamespace
)
:
void
static
Parameters
Name | Type | Description |
---|---|---|
$tpl | ||
$textElements | ||
$key | ||
$resourceData | ||
$rootNamespace | ||
$currentNamespace |


executeCompilationHelper(
$phpScript, $text, $tpl, $key, $resourceData, $rootNamespace, $currentNamespace
)
:
void
static
Parameters
Name | Type | Description |
---|---|---|
$phpScript | ||
$text | ||
$tpl | ||
$key | ||
$resourceData | ||
$rootNamespace | ||
$currentNamespace |


generateMergeNamespaceCode(
$php, $tpl, $namespace, $namespaceScope, $parameters
=
array(), $skipSimpleAssignment
=
false
)
:
void
static
Parameters
Name | Type | Description |
---|---|---|
$php | ||
$tpl | ||
$namespace | ||
$namespaceScope | ||
$parameters | ||
$skipSimpleAssignment |


generatePHPCode(
$useComments, $php, $tpl, $node, $resourceData
)
:
void
static
Parameters
Name | Type | Description |
---|---|---|
$useComments | ||
$php | ||
$tpl | ||
$node | ||
$resourceData |


generatePHPCodeChildren(
$useComments, $php, $tpl, $nodeChildren, $resourceData, $parameters, $currentParameters
)
:
void
static
Parameters
Name | Type | Description |
---|---|---|
$useComments | ||
$php | ||
$tpl | ||
$nodeChildren | ||
$resourceData | ||
$parameters | ||
$currentParameters |


generateVariableCode(
$php, $tpl, $node, $knownTypes, $dataInspection, $parameters, $resourceData
)
:
void
static
Parameters
Name | Type | Description |
---|---|---|
$php | ||
$tpl | ||
$node | ||
$knownTypes | ||
$dataInspection | ||
$parameters | ||
$resourceData |


generateVariableDataCode(
$php, $tpl, $variableData, $knownTypes, $dataInspection, $persistence, $parameters, $resourceData
)
:
void
static
Parameters
Name | Type | Description |
---|---|---|
$php | ||
$tpl | ||
$variableData | ||
$knownTypes | ||
$dataInspection | ||
$persistence | ||
$parameters | ||
$resourceData |


hasCompiledTemplate(
$key, $timestamp, $resourceData
)
:
void
static
Parameters
Name | Type | Description |
---|---|---|
$key | ||
$timestamp | ||
$resourceData |


inspectVariableData(
$tpl, $variableData, $variablePlacement, $resourceData
)
:
void
static
Parameters
Name | Type | Description |
---|---|---|
$tpl | ||
$variableData | ||
$variablePlacement | ||
$resourceData |


operatorHint(
$tpl, $operatorName
)
:
void
static
Parameters
Name | Type | Description |
---|---|---|
$tpl | ||
$operatorName |


operatorStaticData(
$tpl, $operatorName
)
:
void
static
Parameters
Name | Type | Description |
---|---|---|
$tpl | ||
$operatorName |


processElementTransformationChild(
$useComments, $php, $tpl, $node, $elementTree, $elementList, $resourceData
)
:
void
static
Parameters
Name | Type | Description |
---|---|---|
$useComments | ||
$php | ||
$tpl | ||
$node | ||
$elementTree | ||
$elementList | ||
$resourceData |


processElementTransformationList(
$tpl, $node, $elements, $privateData
)
:
void
static
Parameters
Name | Type | Description |
---|---|---|
$tpl | ||
$node | ||
$elements | ||
$privateData |


processNodeCombining(
$useComments, $php, $tpl, $node, $resourceData, $newNode
)
:
void
static
Parameters
Name | Type | Description |
---|---|---|
$useComments | ||
$php | ||
$tpl | ||
$node | ||
$resourceData | ||
$newNode |


processNodeCombiningChildren(
$useComments, $php, $tpl, $nodeChildren, $resourceData, $parentNode
)
:
void
static
Parameters
Name | Type | Description |
---|---|---|
$useComments | ||
$php | ||
$tpl | ||
$nodeChildren | ||
$resourceData | ||
$parentNode |


processNodeTransformation(
$useComments, $php, $tpl, $node, $resourceData, $newNode
)
:
void
static
Parameters
Name | Type | Description |
---|---|---|
$useComments | ||
$php | ||
$tpl | ||
$node | ||
$resourceData | ||
$newNode |


processNodeTransformationChild(
$useComments, $php, $tpl, $node, $resourceData
)
:
void
static
Parameters
Name | Type | Description |
---|---|---|
$useComments | ||
$php | ||
$tpl | ||
$node | ||
$resourceData |


processNodeTransformationChildren(
$useComments, $php, $tpl, $node, $children, $resourceData
)
:
void
static
Parameters
Name | Type | Description |
---|---|---|
$useComments | ||
$php | ||
$tpl | ||
$node | ||
$children | ||
$resourceData |


processNodeTransformationNodes(
$tpl, $node, $nodes, $privateData
)
:
void
static
Parameters
Name | Type | Description |
---|---|---|
$tpl | ||
$node | ||
$nodes | ||
$privateData |


processNodeTransformationRoot(
$useComments, $php, $tpl, $node, $resourceData
)
:
void
static
Parameters
Name | Type | Description |
---|---|---|
$useComments | ||
$php | ||
$tpl | ||
$node | ||
$resourceData |


processStaticOptimizations(
$useComments, $php, $tpl, $node, $resourceData, $newNode
)
:
void
static
Parameters
Name | Type | Description |
---|---|---|
$useComments | ||
$php | ||
$tpl | ||
$node | ||
$resourceData | ||
$newNode |