当前位置: 首页>>代码示例>>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;未经允许,请勿转载。