本文整理匯總了PHP中ezcTemplateSourceToTstParser::atEnd方法的典型用法代碼示例。如果您正苦於以下問題:PHP ezcTemplateSourceToTstParser::atEnd方法的具體用法?PHP ezcTemplateSourceToTstParser::atEnd怎麽用?PHP ezcTemplateSourceToTstParser::atEnd使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類ezcTemplateSourceToTstParser
的用法示例。
在下文中一共展示了ezcTemplateSourceToTstParser::atEnd方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: atEnd
/**
* Figures out if the end as been reached and returns true if it has.
* This must be re-implemented by block parser which will utilize a
* sub-parser which does a callback to this method.
*
* The default throws an exception.
*
* @param ezcTemplateCursor $cursor
* @param ezcTemplateTstNode $operator
* @param bool $finalize
* @return bool
*/
public function atEnd(ezcTemplateCursor $cursor, $operator, $finalize = true)
{
if ($this->parentParser !== null) {
// The $finalize flag is not automatically sent to parent
return $this->parentParser->atEnd($cursor, $operator, false);
}
throw new ezcTemplateInternalException("atEnd() called on parser <" . get_class($this) . "> which has not implemented it properly.");
}