lib/eztemplate/classes/eztemplatemultipassparser.php
File containing the eZTemplateMultiPassParser 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
\eZTemplateMultiPassParser
Package: lib
File containing the eZTemplateMultiPassParser class.
- Parent(s)
- \eZTemplateParser
- Copyright
- Copyright (C) 1999-2011 eZ Systems AS. All rights reserved.
- License
- eZ Business Use License Agreement Version 2.0
- Version
- 4.6.0
Properties
Methods


gotoEndPosition(
$text, $line, $column, $endLine, $endColumn
)
:
void
Parameters
Name | Type | Description |
---|---|---|
$text | ||
$line | ||
$column | ||
$endLine | ||
$endColumn |


instance(
)
:
\eZTemplateMultiPassParser
static
Returns a shared instance of the eZTemplateMultiPassParser class.
Returns
Type | Description |
---|---|
\eZTemplateMultiPassParser |


parse(
$tpl, $sourceText, $rootElement, $rootNamespace, $resourceData
)
:
void
Parameters
Name | Type | Description |
---|---|---|
$tpl | ||
$sourceText | ||
$rootElement | ||
$rootNamespace | ||
$resourceData |


parseBlockFunction(
$funcName, $args, $tpl, $text, $text_len, $cur_pos, $relatedTemplateName, $startLine, $startColumn, $rootNamespace
)
:
void
Parameters
Name | Type | Description |
---|---|---|
$funcName | ||
$args | ||
$tpl | ||
$text | ||
$text_len | ||
$cur_pos | ||
$relatedTemplateName | ||
$startLine | ||
$startColumn | ||
$rootNamespace |


parseDefFunction(
$funcName, $args, $tpl, $text, $text_len, $cur_pos, $relatedTemplateName, $startLine, $startColumn, $rootNamespace
)
:
void
Parameters
Name | Type | Description |
---|---|---|
$funcName | ||
$args | ||
$tpl | ||
$text | ||
$text_len | ||
$cur_pos | ||
$relatedTemplateName | ||
$startLine | ||
$startColumn | ||
$rootNamespace |


parseDoFunction(
$args, $tpl, $text, $text_len, $cur_pos, $relatedTemplateName, $startLine, $startColumn, $rootNamespace
)
:
void
Parameters
Name | Type | Description |
---|---|---|
$args | ||
$tpl | ||
$text | ||
$text_len | ||
$cur_pos | ||
$relatedTemplateName | ||
$startLine | ||
$startColumn | ||
$rootNamespace |


parseForFunction(
$args, $tpl, $text, $text_len, $cur_pos, $relatedTemplateName, $startLine, $startColumn, $rootNamespace
)
:
void
Parameters
Name | Type | Description |
---|---|---|
$args | ||
$tpl | ||
$text | ||
$text_len | ||
$cur_pos | ||
$relatedTemplateName | ||
$startLine | ||
$startColumn | ||
$rootNamespace |


parseForeachFunction(
$args, $tpl, $text, $text_len, $cur_pos, $relatedTemplateName, $startLine, $startColumn, $rootNamespace
)
:
void
Parameters
Name | Type | Description |
---|---|---|
$args | ||
$tpl | ||
$text | ||
$text_len | ||
$cur_pos | ||
$relatedTemplateName | ||
$startLine | ||
$startColumn | ||
$rootNamespace |


parseIntoTextElements(
$tpl, $sourceText, $sourcePosition, $leftDelimiter, $rightDelimiter, $sourceLength, $relatedTemplateName
)
:
void
Parameters
Name | Type | Description |
---|---|---|
$tpl | ||
$sourceText | ||
$sourcePosition | ||
$leftDelimiter | ||
$rightDelimiter | ||
$sourceLength | ||
$relatedTemplateName |


parseIntoTree(
$tpl, $textElements, $treeRoot, $rootNamespace, $relatedResource, $relatedTemplateName
)
:
void
Parameters
Name | Type | Description |
---|---|---|
$tpl | ||
$textElements | ||
$treeRoot | ||
$rootNamespace | ||
$relatedResource | ||
$relatedTemplateName |


parseSectionFunction(
$funcName, $args, $tpl, $text, $text_len, $cur_pos, $relatedTemplateName, $startLine, $startColumn, $rootNamespace
)
:
void
Parameters
Name | Type | Description |
---|---|---|
$funcName | ||
$args | ||
$tpl | ||
$text | ||
$text_len | ||
$cur_pos | ||
$relatedTemplateName | ||
$startLine | ||
$startColumn | ||
$rootNamespace |


parseSequenceParameter(
$parseSequenceKeyword, $funcName, $args, $tpl, $text, $text_len, $cur_pos, $relatedTemplateName, $startLine, $startColumn, $rootNamespace
)
:
void
Parameters
Name | Type | Description |
---|---|---|
$parseSequenceKeyword | ||
$funcName | ||
$args | ||
$tpl | ||
$text | ||
$text_len | ||
$cur_pos | ||
$relatedTemplateName | ||
$startLine | ||
$startColumn | ||
$rootNamespace |


parseSetFunction(
$funcName, $args, $tpl, $text, $text_len, $cur_pos, $relatedTemplateName, $startLine, $startColumn, $rootNamespace
)
:
void
Parameters
Name | Type | Description |
---|---|---|
$funcName | ||
$args | ||
$tpl | ||
$text | ||
$text_len | ||
$cur_pos | ||
$relatedTemplateName | ||
$startLine | ||
$startColumn | ||
$rootNamespace |


parseUnnamedCondition(
$funcName, $args, $tpl, $text, $text_len, $cur_pos, $relatedTemplateName, $startLine, $startColumn, $rootNamespace
)
:
void
Parameters
Name | Type | Description |
---|---|---|
$funcName | ||
$args | ||
$tpl | ||
$text | ||
$text_len | ||
$cur_pos | ||
$relatedTemplateName | ||
$startLine | ||
$startColumn | ||
$rootNamespace |


parseWhileFunction(
$args, $tpl, $text, $text_len, $cur_pos, $relatedTemplateName, $startLine, $startColumn, $rootNamespace
)
:
void
Parameters
Name | Type | Description |
---|---|---|
$args | ||
$tpl | ||
$text | ||
$text_len | ||
$cur_pos | ||
$relatedTemplateName | ||
$startLine | ||
$startColumn | ||
$rootNamespace |


parseWhitespaceRemoval(
$tpl, $textElements
)
:
void
Parameters
Name | Type | Description |
---|---|---|
$tpl | ||
$textElements |