|
eZ Publish
[trunk]
|
The class eZTemplateElementParser does. More...
Public Member Functions | |
| eZTemplateElementParser () | |
| identifierEndPosition ($tpl, &$text, $start_pos, $len) | |
| isWhitespace ($tpl, &$text, $startPosition) | |
| numericEndPos ($tpl, &$text, $start_pos, $len, &$float) | |
| parseVariableTag ($tpl, $relatedTemplateName, &$text, $startPosition, &$endPosition, $textLength, $defaultNamespace, $allowedType=false, $maxElements=false, $endMarker=false, $undefinedType=eZTemplate::TYPE_ATTRIBUTE) | |
| quoteEndPos ($tpl, &$text, $startPosition, $textLength, $quote) | |
| templateTypeName ($type) | |
| unescapeCharacters ($string) | |
| variableEndPos ($tpl, $relatedTemplateName, &$text, $startPosition, $textLength, &$namespace, &$name, &$scope) | |
| whitespaceEndPos ($tpl, &$text, $currentPosition, $textLength) | |
Static Public Member Functions | |
| static | instance () |
| Returns a shared instance of the eZTemplateElementParser class. | |
The class eZTemplateElementParser does.
Definition at line 17 of file eztemplateelementparser.php.
| eZTemplateElementParser::identifierEndPosition | ( | $ | tpl, |
| &$ | text, | ||
| $ | start_pos, | ||
| $ | len | ||
| ) |
Returns the end position of the identifier. If no identifier was found the end position is returned.
Definition at line 470 of file eztemplateelementparser.php.
Referenced by parseVariableTag(), and variableEndPos().
| static eZTemplateElementParser::instance | ( | ) | [static] |
Returns a shared instance of the eZTemplateElementParser class.
Definition at line 597 of file eztemplateelementparser.php.
| eZTemplateElementParser::isWhitespace | ( | $ | tpl, |
| &$ | text, | ||
| $ | startPosition | ||
| ) |
Returns the position of the first non-whitespace characters.
Definition at line 584 of file eztemplateelementparser.php.
| eZTemplateElementParser::numericEndPos | ( | $ | tpl, |
| &$ | text, | ||
| $ | start_pos, | ||
| $ | len, | ||
| &$ | float | ||
| ) |
Returns the end position of the numeric. If no numeric was found the end position is returned.
Definition at line 506 of file eztemplateelementparser.php.
Referenced by parseVariableTag().
| eZTemplateElementParser::parseVariableTag | ( | $ | tpl, |
| $ | relatedTemplateName, | ||
| &$ | text, | ||
| $ | startPosition, | ||
| &$ | endPosition, | ||
| $ | textLength, | ||
| $ | defaultNamespace, | ||
| $ | allowedType = false, |
||
| $ | maxElements = false, |
||
| $ | endMarker = false, |
||
| $ | undefinedType = eZTemplate::TYPE_ATTRIBUTE |
||
| ) |
Parses the variable and operators into a structure.
Definition at line 47 of file eztemplateelementparser.php.
| eZTemplateElementParser::quoteEndPos | ( | $ | tpl, |
| &$ | text, | ||
| $ | startPosition, | ||
| $ | textLength, | ||
| $ | quote | ||
| ) |
Returns the end position of the quote $quote. If no quote was found the end position is returned.
Definition at line 488 of file eztemplateelementparser.php.
Referenced by parseVariableTag().
Definition at line 26 of file eztemplateelementparser.php.
| eZTemplateElementParser::unescapeCharacters | ( | $ | string | ) |
Finds any escaped characters and unescapes them if they are one of:
If the escaped character is not known it keeps both characters (escape + character).
Definition at line 407 of file eztemplateelementparser.php.
Referenced by parseVariableTag().
| eZTemplateElementParser::variableEndPos | ( | $ | tpl, |
| $ | relatedTemplateName, | ||
| &$ | text, | ||
| $ | startPosition, | ||
| $ | textLength, | ||
| &$ | namespace, | ||
| &$ | name, | ||
| &$ | scope | ||
| ) |
Returns the end position of the variable.
Definition at line 307 of file eztemplateelementparser.php.
Referenced by parseVariableTag().
| eZTemplateElementParser::whitespaceEndPos | ( | $ | tpl, |
| &$ | text, | ||
| $ | currentPosition, | ||
| $ | textLength | ||
| ) |
Returns the position of the first non-whitespace characters.
Definition at line 566 of file eztemplateelementparser.php.
Referenced by parseVariableTag().