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


PHP DataType::setRefid方法代碼示例

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


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

示例1: setRefid

 /**
  * Makes this instance in effect a reference to another FileList
  * instance.
  * @param Reference $r
  * @throws BuildException
  */
 public function setRefid(Reference $r)
 {
     if ($this->dir !== null || count($this->filenames) !== 0) {
         throw $this->tooManyAttributes();
     }
     parent::setRefid($r);
 }
開發者ID:tammyd,項目名稱:phing,代碼行數:13,代碼來源:FileList.php

示例2: setRefid

 /**
  * Makes this instance in effect a reference to another PatternSet
  * instance.
  * You must not set another attribute or nest elements inside
  * this element if you make it a reference.
  */
 function setRefid(Reference $r)
 {
     if (!empty($this->includeList) || !empty($this->excludeList)) {
         throw $this->tooManyAttributes();
     }
     parent::setRefid($r);
 }
開發者ID:namesco,項目名稱:phing,代碼行數:13,代碼來源:PatternSet.php

示例3: setRefid

 /**
  * Makes this instance in effect a reference to another PatternSet
  * instance.
  * You must not set another attribute or nest elements inside
  * this element if you make it a reference.
  */
 function setRefid(Reference $r)
 {
     if (isset($this->dir) && !is_null($this->dir) || $this->defaultPatterns->hasPatterns()) {
         throw $this->tooManyAttributes();
     }
     if (!empty($this->additionalPatterns)) {
         throw $this->noChildrenAllowed();
     }
     if (!empty($this->selectors)) {
         throw $this->noChildrenAllowed();
     }
     parent::setRefid($r);
 }
開發者ID:cuongnv540,項目名稱:jobeet,代碼行數:19,代碼來源:AbstractFileSet.php

示例4: setRefid

 /**
  * @param Reference $r
  * @throws BuildException
  */
 public function setRefid(Reference $r)
 {
     if (count($this->parameters) !== 0 || $this->className !== null) {
         throw $this->tooManyAttributes();
     }
     $o = $r->getReferencedObject($this->getProject());
     if ($o instanceof PhingFilterReader) {
         $this->setClassName($o->getClassName());
         $this->setClasspath($o->getClassPath());
         foreach ($o->getParams() as $p) {
             $this->addParam($p);
         }
     } else {
         $msg = $r->getRefId() . " doesn\\'t refer to a PhingFilterReader";
         throw new BuildException($msg);
     }
     parent::setRefid($r);
 }
開發者ID:Ingewikkeld,項目名稱:phing,代碼行數:22,代碼來源:PhingFilterReader.php

示例5: setRefid

 /**
  * Make this Mapper instance a reference to another Mapper.
  *
  * You must not set any other attribute if you make it a reference.
  * @param Reference $r
  * @throws BuildException
  */
 public function setRefid(Reference $r)
 {
     if ($this->type !== null || $this->from !== null || $this->to !== null) {
         throw DataType::tooManyAttributes();
     }
     parent::setRefid($r);
 }
開發者ID:alangalipaud,項目名稱:ProjetQCM,代碼行數:14,代碼來源:Mapper.php

示例6: setRefid

 function setRefid(Reference $r)
 {
     if (count($this->filterReaders) !== 0) {
         throw $this->tooManyAttributes();
     }
     // change this to get the objects from the other reference
     $o = $r->getReferencedObject($this->getProject());
     if ($o instanceof FilterChain) {
         $this->filterReaders = $o->getFilterReaders();
     } else {
         throw new BuildException($r->getRefId() . " doesn't refer to a FilterChain");
     }
     parent::setRefid($r);
 }
開發者ID:umesecke,項目名稱:phing,代碼行數:14,代碼來源:FilterChain.php

示例7: setRefid

 /**
  * Makes this instance in effect a reference to another Path instance.
  *
  * <p>You must not set another attribute or nest elements inside
  * this element if you make it a reference.</p>
  * @throws BuildException
  */
 public function setRefid(Reference $r)
 {
     if (!empty($this->elements)) {
         throw $this->tooManyAttributes();
     }
     $this->elements[] = $r;
     parent::setRefid($r);
 }
開發者ID:Daniel-Marynicz,項目名稱:symfony1-legacy,代碼行數:15,代碼來源:Path.php


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