本文整理汇总了PHP中ezcTemplateSourceToTstParser类的典型用法代码示例。如果您正苦于以下问题:PHP ezcTemplateSourceToTstParser类的具体用法?PHP ezcTemplateSourceToTstParser怎么用?PHP ezcTemplateSourceToTstParser使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了ezcTemplateSourceToTstParser类的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1:
/**
* Passes control to parent.
*
* @param ezcTemplateParser $parser
* @param ezcTemplateSourceToTstParser $parentParser
* @param ezcTemplateCursor $startCursor
*/
function __construct(ezcTemplateParser $parser, $parentParser, $startCursor)
{
parent::__construct($parser, $parentParser, $startCursor);
$this->startBracket = '{';
$this->endBracket = '}';
$this->block = null;
}
开发者ID:zetacomponents,项目名称:template,代码行数:14,代码来源:expression_block.php
示例2:
/**
* Passes control to parent.
*
* @param ezcTemplateParser $parser
* @param ezcTemplateSourceToTstParser $parentParser
* @param ezcTemplateCursor $startCursor
*/
function __construct(ezcTemplateParser $parser, $parentParser, $startCursor)
{
parent::__construct($parser, $parentParser, $startCursor);
$this->currentOperator = null;
$this->rootOperator = null;
$this->minPrecedence = false;
}
开发者ID:jacomyma,项目名称:GEXF-Atlas,代码行数:14,代码来源:expression.php
示例3:
/**
* Passes control to parent.
*
* @param ezcTemplateParser $parser
* @param ezcTemplateSourceToTstParser $parentParser
* @param ezcTemplateCursor $startCursor
*/
function __construct(ezcTemplateParser $parser, $parentParser, $startCursor)
{
parent::__construct($parser, $parentParser, $startCursor);
$this->block = null;
}
开发者ID:zetacomponents,项目名称:template,代码行数:12,代码来源:translation_context.php
示例4:
/**
* Passes control to parent.
*
* @param ezcTemplateParser $parser
* @param ezcTemplateSourceToTstParser $parentParser
* @param ezcTemplateCursor $startCursor
*/
function __construct(ezcTemplateParser $parser, $parentParser, $startCursor)
{
parent::__construct($parser, $parentParser, $startCursor);
$this->variable = null;
$this->variableName = null;
}
开发者ID:bmdevel,项目名称:ezc,代码行数:13,代码来源:variable.php
示例5:
/**
* Passes control to parent.
*
* @param ezcTemplateParser $parser
* @param ezcTemplateSourceToTstParser $parentParser
* @param ezcTemplateCursor $startCursor
*/
function __construct(ezcTemplateParser $parser, $parentParser, $startCursor)
{
parent::__construct($parser, $parentParser, $startCursor);
}
开发者ID:zetacomponents,项目名称:template,代码行数:11,代码来源:array_fetch.php
示例6: parseRequiredType
/**
* Parses a required type.
*
* @param mixed $type
* @param ezcTemplateCursor $startCursor
* @param bool $mergeElements
* @return bool
*/
protected function parseRequiredType($type, ezcTemplateCursor $startCursor = null, $mergeElements = true)
{
if (is_string($type)) {
$className = 'ezcTemplate' . $type . 'SourceToTstParser';
if (!ezcBaseFeatures::classExists($className)) {
throw new ezcTemplateInternalException("Could instantiate sub-parser for type <{$type}>, the class <{$className}> does not exist");
}
$this->subParser = new $className($this->parser, $this, $startCursor);
} else {
if (is_object($type) && $type instanceof ezcTemplateSourceToTstParser) {
$this->subParser = $type;
} else {
throw new ezcTemplateInternalException("Cannot use <" . gettype($type) . "> as parser in ezcTemplateSourceToTstParser::parseRequiredType()");
}
}
$this->lastParser = $this->subParser;
$this->subParser->parse();
if ($this->subParser->status == self::PARSE_SUCCESS) {
$this->currentCursor->copy($this->subParser->endCursor);
$this->lastCursor->copy($this->currentCursor);
if ($mergeElements) {
$this->mergeElements($this->subParser);
}
$this->subParser = null;
return true;
} elseif ($this->subParser->status === self::PARSE_PARTIAL_SUCCESS) {
$this->status = $this->subParser->status;
return false;
}
return false;
}
开发者ID:jordanmanning,项目名称:ezpublish,代码行数:39,代码来源:source_to_tst_parser.php
示例7:
/**
* Passes control to parent.
*
* @param ezcTemplateParser $parser
* @param ezcTemplateSourceToTstParser $parentParser
* @param ezcTemplateCursor $startCursor
*/
function __construct(ezcTemplateParser $parser, $parentParser, $startCursor)
{
parent::__construct($parser, $parentParser, $startCursor);
$this->value = null;
$this->element = null;
}
开发者ID:jordanmanning,项目名称:ezpublish,代码行数:13,代码来源:include.php
示例8:
/**
* Passes control to parent.
*
* @param ezcTemplateParser $parser
* @param ezcTemplateSourceToTstParser $parentParser
* @param ezcTemplateCursor $startCursor
*/
function __construct(ezcTemplateParser $parser, $parentParser, $startCursor)
{
parent::__construct($parser, $parentParser, $startCursor);
$this->readingParameter = false;
}
开发者ID:bmdevel,项目名称:ezc,代码行数:12,代码来源:function_call.php
示例9: __construct
/**
* Passes control to parent.
*
* @param ezcTemplateParser $parser
* @param ezcTemplateSourceToTstParser $parentParser
* @param ezcTemplateCursor $startCursor
*/
function __construct(ezcTemplateParser $parser, ezcTemplateSourceToTstParser $parentParser, ezcTemplateCursor $startCursor = null)
{
parent::__construct($parser, $parentParser, $startCursor);
$this->block = null;
}
开发者ID:jacomyma,项目名称:GEXF-Atlas,代码行数:12,代码来源:capture.php
注:本文中的ezcTemplateSourceToTstParser类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论