eZ Publish Community Project (Legacy Stack) 2013.4
Class

eZTemplateMultiPassParser

class eZTemplateMultiPassParser extends eZTemplateParser

Properties

$ElementParser

Methods

eZTemplateParser()

from eZTemplateParser
parse($tpl, $sourceText, $rootElement, $rootNamespace, $resourceData)

eZTemplateMultiPassParser()

gotoEndPosition($text, $line, $column, $endLine, $endColumn)

parseIntoTextElements($tpl, $sourceText, $sourcePosition, $leftDelimiter, $rightDelimiter, $sourceLength, $relatedTemplateName)

parseWhitespaceRemoval($tpl, $textElements)

appendChild($root, $node)

parseIntoTree($tpl, $textElements, $treeRoot, $rootNamespace, $relatedResource, $relatedTemplateName)

parseSequenceParameter($parseSequenceKeyword, $funcName, $args, $tpl, $text, $text_len, $cur_pos, $relatedTemplateName, $startLine, $startColumn, $rootNamespace)

parseForFunction($args, $tpl, $text, $text_len, $cur_pos, $relatedTemplateName, $startLine, $startColumn, $rootNamespace)

parseForeachFunction($args, $tpl, $text, $text_len, $cur_pos, $relatedTemplateName, $startLine, $startColumn, $rootNamespace)

parseDoFunction($args, $tpl, $text, $text_len, $cur_pos, $relatedTemplateName, $startLine, $startColumn, $rootNamespace)

parseDefFunction($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)

parseWhileFunction($args, $tpl, $text, $text_len, $cur_pos, $relatedTemplateName, $startLine, $startColumn, $rootNamespace)

parseSetFunction($funcName, $args, $tpl, $text, $text_len, $cur_pos, $relatedTemplateName, $startLine, $startColumn, $rootNamespace)

parseBlockFunction($funcName, $args, $tpl, $text, $text_len, $cur_pos, $relatedTemplateName, $startLine, $startColumn, $rootNamespace)

parseSectionFunction($funcName, $args, $tpl, $text, $text_len, $cur_pos, $relatedTemplateName, $startLine, $startColumn, $rootNamespace)

showParseErrorMessage($tpl, $text, $text_len, $cur_pos, $tplName, $startLine, $startColumn, $funcName, $message)

Details

in eZTemplateParser at line 22
public eZTemplateParser()

at line 33
public parse($tpl, $sourceText, $rootElement, $rootNamespace, $resourceData)

Parameters

$tpl
$sourceText
$rootElement
$rootNamespace
$resourceData

at line 22
public eZTemplateMultiPassParser()

at line 60
public gotoEndPosition($text, $line, $column, $endLine, $endColumn)

Parameters

$text
$line
$column
$endLine
$endColumn

at line 80
public parseIntoTextElements($tpl, $sourceText, $sourcePosition, $leftDelimiter, $rightDelimiter, $sourceLength, $relatedTemplateName)

Parameters

$tpl
$sourceText
$sourcePosition
$leftDelimiter
$rightDelimiter
$sourceLength
$relatedTemplateName

at line 309
public parseWhitespaceRemoval($tpl, $textElements)

Parameters

$tpl
$textElements

at line 391
public appendChild($root, $node)

Parameters

$root
$node

at line 398
public parseIntoTree($tpl, $textElements, $treeRoot, $rootNamespace, $relatedResource, $relatedTemplateName)

Parameters

$tpl
$textElements
$treeRoot
$rootNamespace
$relatedResource
$relatedTemplateName

at line 799
public parseSequenceParameter($parseSequenceKeyword, $funcName, $args, $tpl, $text, $text_len, $cur_pos, $relatedTemplateName, $startLine, $startColumn, $rootNamespace)

Parameters

$parseSequenceKeyword
$funcName
$args
$tpl
$text
$text_len
$cur_pos
$relatedTemplateName
$startLine
$startColumn
$rootNamespace

at line 861
public parseForFunction($args, $tpl, $text, $text_len, $cur_pos, $relatedTemplateName, $startLine, $startColumn, $rootNamespace)

Parameters

$args
$tpl
$text
$text_len
$cur_pos
$relatedTemplateName
$startLine
$startColumn
$rootNamespace

at line 931
public parseForeachFunction($args, $tpl, $text, $text_len, $cur_pos, $relatedTemplateName, $startLine, $startColumn, $rootNamespace)

Parameters

$args
$tpl
$text
$text_len
$cur_pos
$relatedTemplateName
$startLine
$startColumn
$rootNamespace

at line 1028
public parseDoFunction($args, $tpl, $text, $text_len, $cur_pos, $relatedTemplateName, $startLine, $startColumn, $rootNamespace)

Parameters

$args
$tpl
$text
$text_len
$cur_pos
$relatedTemplateName
$startLine
$startColumn
$rootNamespace

at line 1071
public parseDefFunction($funcName, $args, $tpl, $text, $text_len, $cur_pos, $relatedTemplateName, $startLine, $startColumn, $rootNamespace)

Parameters

$funcName
$args
$tpl
$text
$text_len
$cur_pos
$relatedTemplateName
$startLine
$startColumn
$rootNamespace

at line 1137
public parseUnnamedCondition($funcName, $args, $tpl, $text, $text_len, $cur_pos, $relatedTemplateName, $startLine, $startColumn, $rootNamespace)

Parameters

$funcName
$args
$tpl
$text
$text_len
$cur_pos
$relatedTemplateName
$startLine
$startColumn
$rootNamespace

at line 1154
public parseWhileFunction($args, $tpl, $text, $text_len, $cur_pos, $relatedTemplateName, $startLine, $startColumn, $rootNamespace)

Parameters

$args
$tpl
$text
$text_len
$cur_pos
$relatedTemplateName
$startLine
$startColumn
$rootNamespace

at line 1181
public parseSetFunction($funcName, $args, $tpl, $text, $text_len, $cur_pos, $relatedTemplateName, $startLine, $startColumn, $rootNamespace)

Parameters

$funcName
$args
$tpl
$text
$text_len
$cur_pos
$relatedTemplateName
$startLine
$startColumn
$rootNamespace

at line 1251
public parseBlockFunction($funcName, $args, $tpl, $text, $text_len, $cur_pos, $relatedTemplateName, $startLine, $startColumn, $rootNamespace)

Parameters

$funcName
$args
$tpl
$text
$text_len
$cur_pos
$relatedTemplateName
$startLine
$startColumn
$rootNamespace

at line 1301
public parseSectionFunction($funcName, $args, $tpl, $text, $text_len, $cur_pos, $relatedTemplateName, $startLine, $startColumn, $rootNamespace)

Parameters

$funcName
$args
$tpl
$text
$text_len
$cur_pos
$relatedTemplateName
$startLine
$startColumn
$rootNamespace

at line 1349
public showParseErrorMessage($tpl, $text, $text_len, $cur_pos, $tplName, $startLine, $startColumn, $funcName, $message)

Parameters

$tpl
$text
$text_len
$cur_pos
$tplName
$startLine
$startColumn
$funcName
$message