lib/eztemplate/classes/eztemplatemultipassparser.php
\eZTemplateMultiPassParser
Package:
- Parent(s)
- \eZTemplateParser
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 |