當前位置: 首頁>>代碼示例>>PHP>>正文


PHP ezcTemplateStatementAstNode::__construct方法代碼示例

本文整理匯總了PHP中ezcTemplateStatementAstNode::__construct方法的典型用法代碼示例。如果您正苦於以下問題:PHP ezcTemplateStatementAstNode::__construct方法的具體用法?PHP ezcTemplateStatementAstNode::__construct怎麽用?PHP ezcTemplateStatementAstNode::__construct使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在ezcTemplateStatementAstNode的用法示例。


在下文中一共展示了ezcTemplateStatementAstNode::__construct方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: __construct

 /**
  * Initialize with function name code and optional arguments
  *
  * @param ezcTemplateConditionBodyAstNode $conditionBody
  */
 public function __construct(ezcTemplateConditionBodyAstNode $conditionBody = null)
 {
     parent::__construct();
     if ($conditionBody !== null) {
         $this->conditions[] = $conditionBody;
     }
 }
開發者ID:jordanmanning,項目名稱:ezpublish,代碼行數:12,代碼來源:if.php

示例2: __construct

 /**
  * Initialize with function name code and optional arguments
  *
  * @param ezcTemplateAstNode $initial
  * @param ezcTemplateAstNode $condition
  * @param ezcTemplateAstNode $iteration
  * @param ezcTemplateBodyAstNode $body
  */
 public function __construct(ezcTemplateAstNode $initial = null, ezcTemplateAstNode $condition = null, ezcTemplateAstNode $iteration = null, ezcTemplateBodyAstNode $body = null)
 {
     parent::__construct();
     $this->initial = $initial;
     $this->condition = $condition;
     $this->iteration = $iteration;
     $this->body = $body;
 }
開發者ID:zetacomponents,項目名稱:template,代碼行數:16,代碼來源:for.php

示例3: __construct

 /**
  * Initialize with function name code and optional arguments
  *
  * @param ezcTemplateAstNode $array
  * @param ezcTemplateVariableAstNode $key
  * @param ezcTemplateVariableAstNode $value
  * @param ezcTemplateBodyAstNode $body
  */
 public function __construct(ezcTemplateAstNode $array = null, ezcTemplateVariableAstNode $key = null, ezcTemplateVariableAstNode $value = null, ezcTemplateBodyAstNode $body = null)
 {
     parent::__construct();
     $this->arrayExpression = $array;
     $this->keyVariable = $key;
     $this->valueVariable = $value;
     $this->body = $body;
 }
開發者ID:zetacomponents,項目名稱:template,代碼行數:16,代碼來源:foreach.php

示例4: __construct

 /**
  * Constructs a new ezcTemplateBlockCommentAstNode
  *
  * @param string $text         Text for comment.
  * @param bool   $hasSeparator Use spacing separator or not?
  */
 public function __construct($text, $hasSeparator = true)
 {
     parent::__construct();
     if (!is_string($text)) {
         throw new ezcBaseValueException("text", $text, 'string');
     }
     $this->text = $text;
     $this->hasSeparator = $hasSeparator;
 }
開發者ID:zetacomponents,項目名稱:template,代碼行數:15,代碼來源:block_comment.php

示例5: __construct

 /**
  * Initialize with function name code and optional arguments
  *
  * @param string $className
  * @param ezcTemplateVariableAstNode $var
  * @param ezcTemplateBodyAstNode $body
  */
 public function __construct($className, ezcTemplateVariableAstNode $var, ezcTemplateBodyAstNode $body = null)
 {
     parent::__construct();
     if (!is_string($className)) {
         throw new ezcBaseValueException("className", $className, 'string');
     }
     $this->className = $className;
     $this->variableExpression = $var;
     $this->body = $body;
 }
開發者ID:jacomyma,項目名稱:GEXF-Atlas,代碼行數:17,代碼來源:catch.php

示例6: __construct

 /**
  * Constructs a new ezcTemplateEolCommentAstNode
  *
  * @param string $text         Text for comment.
  * @param bool   $hasSeparator Use spacing separator or not?
  * @param int    $type         Type of EOL comment, see {@link self::$type}.
  */
 public function __construct($text, $hasSeparator = true, $type = ezcTemplateEolCommentAstNode::MARKER_DOUBLE_SLASH)
 {
     parent::__construct();
     if (!is_string($text)) {
         throw new ezcBaseValueException("text", $text, 'string');
     }
     $this->text = $text;
     $this->type = $type;
     $this->hasSeparator = $hasSeparator;
 }
開發者ID:jacomyma,項目名稱:GEXF-Atlas,代碼行數:17,代碼來源:eol_comment.php

示例7: __construct

 /**
  * Constructs a new ezcTemplateEchoAstNode
  *
  * @param array(ezcTemplateAstNode) $outputList
  */
 public function __construct(array $outputList = null)
 {
     parent::__construct();
     $this->outputList = array();
     if ($outputList !== null) {
         foreach ($outputList as $output) {
             $this->appendOutput($output);
         }
     }
 }
開發者ID:bmdevel,項目名稱:ezc,代碼行數:15,代碼來源:echo.php

示例8: __construct

 /**
  * Initialize with function name code and optional arguments
  *
  * @param array(ezcTemplateAstNode) $expressions
  */
 public function __construct(array $expressions = null)
 {
     parent::__construct();
     $this->expressions = array();
     if ($expressions !== null) {
         foreach ($expressions as $id => $expression) {
             if (!$expression instanceof ezcTemplateAstNode) {
                 throw new ezcBaseValueException("expressions[{$id}]", $expression, 'ezcTemplateAstNode');
             }
             $this->expressions[] = $expression;
         }
     }
 }
開發者ID:jordanmanning,項目名稱:ezpublish,代碼行數:18,代碼來源:unset.php

示例9: __construct

 /**
  * Initialize with function name code and optional arguments
  *
  * @param ezcTemplateBodyAstNode $body
  * @param array(ezcTemplateCatchAstNode) $catches
  */
 public function __construct(ezcTemplateBodyAstNode $body = null, array $catches = null)
 {
     parent::__construct();
     $this->body = $body;
     $this->catches = array();
     if ($catches !== null) {
         foreach ($catches as $id => $catch) {
             if (!$catch instanceof ezcTemplateCatchAstNode) {
                 throw new ezcBaseValueException("catches[{$id}]", $catch, 'ezcTemplateCatchAstNode');
             }
             $this->catches[] = $catch;
         }
     }
 }
開發者ID:bmdevel,項目名稱:ezc,代碼行數:20,代碼來源:try.php

示例10: __construct

 /**
  * Initialize with function name code and optional arguments
  *
  * @param ezcTemplateAstNode $expression
  * @param array(ezcTemplateAstNode) $cases  Should be either ezcTemplateCaseAstNode or ezcTemplateDefaultAstNode.
  */
 public function __construct(ezcTemplateAstNode $expression = null, array $cases = null)
 {
     parent::__construct();
     $this->expression = $expression;
     $this->cases = array();
     $this->hasDefaultCase = false;
     if ($cases !== null) {
         $hasDefault = false;
         foreach ($cases as $case) {
             if (!$case instanceof ezcTemplateCaseAstNode) {
                 throw new ezcTemplateInternalException("Array in case list \$cases must consist of object which are instances of ezcTemplateCaseAstNode, not <" . get_class($case) . ">.");
             }
             if ($case instanceof ezcTemplateDefaultAstNode) {
                 if ($hasDefault) {
                     throw new ezcTemplateInternalException("The default case is already present as a case entry.");
                 }
                 $hasDefault = true;
             }
             $this->cases[] = $case;
         }
         $this->hasDefaultCase = $hasDefault;
     }
 }
開發者ID:zetacomponents,項目名稱:template,代碼行數:29,代碼來源:switch.php

示例11: __construct

 /**
  * Initialize with function name code and optional arguments
  *
  * @param ezcTemplateBodyAstNode $body
  */
 public function __construct(ezcTemplateBodyAstNode $body = null)
 {
     ezcTemplateStatementAstNode::__construct();
     $this->body = $body;
 }
開發者ID:jordanmanning,項目名稱:ezpublish,代碼行數:10,代碼來源:default.php

示例12: __construct

 /**
  * Constructs a new php code node.
  *
  * @param string $code
  */
 public function __construct($code = null)
 {
     parent::__construct();
     $this->code = $code;
 }
開發者ID:jacomyma,項目名稱:GEXF-Atlas,代碼行數:10,代碼來源:php_code.php

示例13: __construct

 /**
  * Initialize with function name code and optional arguments
  *
  * @param ezcTemplateAstNode $expression
  * @param bool $terminateStatement
  */
 public function __construct(ezcTemplateAstNode $expression = null, $terminateStatement = true)
 {
     parent::__construct();
     $this->expression = $expression;
     $this->terminateStatement = $terminateStatement;
 }
開發者ID:bmdevel,項目名稱:ezc,代碼行數:12,代碼來源:generic_statement.php

示例14: __construct

 /**
  * Constructs a new exception.
  *
  * @param string $message The value of PHP type to be stored in code element.
  */
 public function __construct($message)
 {
     parent::__construct();
     $this->message = $message;
 }
開發者ID:jacomyma,項目名稱:GEXF-Atlas,代碼行數:10,代碼來源:throw_exception.php

示例15: __construct

 /**
  * Constructs a new NOP instruction.
  */
 public function __construct()
 {
     parent::__construct();
 }
開發者ID:bmdevel,項目名稱:ezc,代碼行數:7,代碼來源:nop.php


注:本文中的ezcTemplateStatementAstNode::__construct方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。