lib/eztemplate/classes/eztemplatenodetool.php
File containing the eZTemplateNodeTool 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
\eZTemplateNodeTool
Package: lib
File containing the eZTemplateNodeTool 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
Methods


createArrayElement(
$array, $variablePlacement
=
false
)
:
void
static
Parameters
Name | Type | Description |
---|---|---|
$array | ||
$variablePlacement |


createAssignFromOutputVariableNode(
$variableName, $parameters
=
array(), $assignmentType
=
eZPHPCreator::VARIABLE_ASSIGNMENT
)
:
void
static
Parameters
Name | Type | Description |
---|---|---|
$variableName | ||
$parameters | ||
$assignmentType |


createAttributeLookupElement(
$attributeValues
=
array(), $variablePlacement
=
false
)
:
void
static
Parameters
Name | Type | Description |
---|---|---|
$attributeValues | ||
$variablePlacement |


createBooleanElement(
$boolean, $variablePlacement
=
false
)
:
void
static
Parameters
Name | Type | Description |
---|---|---|
$boolean | ||
$variablePlacement |


createCodePieceElement(
$codePiece, $values
=
false, $placement
=
false, $tmpValues
=
false, $knownTypes
=
true
)
:
void
static
Parameters
Name | Type | Description |
---|---|---|
$codePiece | ||
$values | ||
$placement | ||
$tmpValues | ||
$knownTypes |


createCodePieceNode(
$codePiece, $parameters
=
array()
)
:
void
static
Parameters
Name | Type | Description |
---|---|---|
$codePiece | ||
$parameters |


createConstantElement(
$constant, $variablePlacement
=
false
)
:
void
static
Parameters
Name | Type | Description |
---|---|---|
$constant | ||
$variablePlacement |


createDynamicArrayElement(
$arrayKeys, $arrayValues, $variablePlacement
=
false
)
:
void
static
Parameters
Name | Type | Description |
---|---|---|
$arrayKeys | ||
$arrayValues | ||
$variablePlacement |


createErrorNode(
$text, $label, $placement
=
false, $parameters
=
array()
)
:
void
static
Parameters
Name | Type | Description |
---|---|---|
$text | ||
$label | ||
$placement | ||
$parameters |


createFunctionNodeHook(
$node, $hookName, $hookParameters
=
array(), $hookFunction
=
false
)
:
void
static
Parameters
Name | Type | Description |
---|---|---|
$node | ||
$hookName | ||
$hookParameters | ||
$hookFunction |


createIdentifierElement(
$identifier, $variablePlacement
=
false
)
:
void
static
Parameters
Name | Type | Description |
---|---|---|
$identifier | ||
$variablePlacement |


createNamespaceChangeNode(
$variableData, $parameters
=
array()
)
:
void
static
Parameters
Name | Type | Description |
---|---|---|
$variableData | ||
$parameters |


createNamespaceRestoreNode(
$parameters
=
array()
)
:
void
static
Parameters
Name | Type | Description |
---|---|---|
$parameters |


createNumericElement(
$number, $variablePlacement
=
false
)
:
void
static
Parameters
Name | Type | Description |
---|---|---|
$number | ||
$variablePlacement |


createOperatorElement(
$name, $parameters
=
array(), $variablePlacement
=
false
)
:
void
static
Parameters
Name | Type | Description |
---|---|---|
$name | ||
$parameters | ||
$variablePlacement |


createOutputVariableDecreaseNode(
$parameters
=
array()
)
:
void
static
Parameters
Name | Type | Description |
---|---|---|
$parameters |


createOutputVariableIncreaseNode(
$parameters
=
array()
)
:
void
static
Parameters
Name | Type | Description |
---|---|---|
$parameters |


createPHPVariableElement(
$variableName, $variablePlacement
=
false
)
:
void
static
Parameters
Name | Type | Description |
---|---|---|
$variableName | ||
$variablePlacement |


createResourceAcquisitionNode(
$resourceName, $templateName, $fileName, $method, $extraParameters, $placement
=
false, $parameters
=
array(), $newRootNamespace
=
false, $resourceVariableName
=
false
)
:
void
static
Parameters
Name | Type | Description |
---|---|---|
$resourceName | ||
$templateName | ||
$fileName | ||
$method | ||
$extraParameters | ||
$placement | ||
$parameters | ||
$newRootNamespace | ||
$resourceVariableName |


createSpacingDecreaseNode(
$spacing
=
4, $parameters
=
array()
)
:
void
static
Parameters
Name | Type | Description |
---|---|---|
$spacing | ||
$parameters |


createSpacingIncreaseNode(
$spacing
=
4, $parameters
=
array()
)
:
void
static
Parameters
Name | Type | Description |
---|---|---|
$spacing | ||
$parameters |


createStaticElement(
$static, $variablePlacement
=
false
)
:
void
static
Parameters
Details
Name | Type | Description |
---|---|---|
$static | ||
$variablePlacement |
- Deprecated
- Use createConstantElement() instead.
- See
- \createConstantElement()


createStringElement(
$string, $variablePlacement
=
false
)
:
void
static
Parameters
Name | Type | Description |
---|---|---|
$string | ||
$variablePlacement |


createVariableElement(
$variableName, $namespaceName, $namespaceScope
=
eZTemplate::NAMESPACE_SCOPE_LOCAL, $variablePlacement
=
false
)
:
void
static
Parameters
Name | Type | Description |
---|---|---|
$variableName | ||
$namespaceName | ||
$namespaceScope | ||
$variablePlacement |


createVariableNode(
$originalNode
=
false, $variableData
=
false, $variablePlacement
=
false, $parameters
=
array(), $variableAssignmentName
=
false, $onlyExisting
=
false, $overWrite
=
true, $assignFromVariable
=
false, $rememberSet
=
false
)
:
void
static
Parameters
Name | Type | Description |
---|---|---|
$originalNode | ||
$variableData | ||
$variablePlacement | ||
$parameters | ||
$variableAssignmentName | ||
$onlyExisting | ||
$overWrite | ||
$assignFromVariable | ||
$rememberSet |


createVariableUnsetNode(
$variableName, $parameters
=
array()
)
:
void
static
Parameters
Name | Type | Description |
---|---|---|
$variableName | ||
$parameters |


createWarningNode(
$text, $label, $placement
=
false, $parameters
=
array()
)
:
void
static
Parameters
Name | Type | Description |
---|---|---|
$text | ||
$label | ||
$placement | ||
$parameters |


createWriteToOutputVariableNode(
$variableName, $parameters
=
array(), $assignmentType
=
eZPHPCreator::VARIABLE_APPEND_TEXT
)
:
void
static
Parameters
Name | Type | Description |
---|---|---|
$variableName | ||
$parameters | ||
$assignmentType |


deflateFunctionNode(
$node, $preHook, $postHook
)
:
void
static
Parameters
Name | Type | Description |
---|---|---|
$node | ||
$preHook | ||
$postHook |


elementStaticValue(
$elements
)
:
void
static
Parameters
Details
Name | Type | Description |
---|---|---|
$elements |
- Deprecated
- Use elementConstantValue instead.
- See
- \elementConstantValue().


extractNodes(
$nodeList, $parameters
=
array()
)
:
void
static
Parameters
Name | Type | Description |
---|---|---|
$nodeList | ||
$parameters |