当前位置: 首页>>代码示例>>PHP>>正文


PHP CModel::__isset方法代码示例

本文整理汇总了PHP中CModel::__isset方法的典型用法代码示例。如果您正苦于以下问题:PHP CModel::__isset方法的具体用法?PHP CModel::__isset怎么用?PHP CModel::__isset使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在CModel的用法示例。


在下文中一共展示了CModel::__isset方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: __isset

 public function __isset($name)
 {
     if (isset($this->_attributes[$name])) {
         return true;
     } elseif (in_array($name, $this->attributeNames())) {
         return false;
     } else {
         return parent::__isset($name);
     }
 }
开发者ID:cebe,项目名称:chive,代码行数:10,代码来源:SqlModel.php

示例2: __isset

 /**
  * (non-PHPdoc)
  * @see CComponent::__isset()
  */
 public function __isset($name)
 {
     if (isset($this->_attributes[$name])) {
         return true;
     } elseif (isset($this->_related[$name])) {
         return true;
     } elseif (array_key_exists($name, $this->relations())) {
         return $this->getRelated($name) !== null;
     } else {
         return parent::__isset($name);
     }
 }
开发者ID:rubipikachu,项目名称:xoso-lechung,代码行数:16,代码来源:EMongoModel.php

示例3: __isset

 public function __isset($name)
 {
     if (isset($this->_attributes[$name])) {
         return true;
     } elseif (isset($this->getMetaData()->columns[$name])) {
         return false;
     } elseif (isset($this->_related[$name])) {
         return true;
     } elseif (isset($this->getMetaData()->relations[$name])) {
         return $this->getRelated($name) !== null;
     } else {
         return parent::__isset($name);
     }
 }
开发者ID:smokeelow,项目名称:faicore,代码行数:14,代码来源:yiilite.php

示例4: __isset

 /**
  * Treats attributes defined by defineAttributes() as properties.
  *
  * @param string $name
  *
  * @return bool
  */
 public function __isset($name)
 {
     if (parent::__isset($name) || in_array($name, $this->attributeNames())) {
         return true;
     } else {
         return false;
     }
 }
开发者ID:andyra,项目名称:tes,代码行数:15,代码来源:BaseModel.php

示例5: __isset

 /**
  * @since v1.3.2
  * @see CComponent::__isset()
  */
 public function __isset($name)
 {
     if ($this->hasEmbeddedDocuments() && isset(self::$_embeddedConfig[get_class($this)][$name])) {
         return isset($this->_embedded[$name]);
     } else {
         return parent::__isset($name);
     }
 }
开发者ID:nmalservet,项目名称:biocap,代码行数:12,代码来源:EMongoEmbeddedDocument.php

示例6: __isset

 /**
  * Checks if a property value is null.
  * This method overrides the parent implementation by checking
  * if the named attribute is null or not.
  * @param string $name the property name or the event name
  * @return boolean whether the property value is null
  */
 public function __isset($name)
 {
     if (isset($this->_attributes[$name])) {
         return true;
     } else {
         if (isset($this->getMetaData()->properties[$name])) {
             return false;
         } else {
             return parent::__isset($name);
         }
     }
 }
开发者ID:rualatngua,项目名称:ActiveResource,代码行数:19,代码来源:EActiveResource.php

示例7: __isset

 /**
  * Checks if a property value is null.
  * This method overrides the parent implementation by checking
  * if the named attribute is null or not.
  * @param string $name the property name or the event name
  * @return boolean whether the property value is null
  */
 public function __isset($name)
 {
     if (isset($this->_attributes[$name])) {
         return true;
     } elseif ($this->getResourceSchema()->hasAttribute($name)) {
         return false;
     } elseif (isset($this->_linked[$name])) {
         return true;
     } elseif (isset($this->_links[$name])) {
         return $this->getLinked($name) !== null;
     } else {
         return parent::__isset($name);
     }
 }
开发者ID:codemix,项目名称:restyii,代码行数:21,代码来源:Model.php

示例8: __isset

 /**
  * Checks if a property value is null.
  * This method overrides the parent implementation by checking
  * if the named attribute is null or not.
  * @param string $name the property name or the event name
  * @return boolean whether the property value is null
  */
 public function __isset($name)
 {
     if (isset($this->_attributes[$name])) {
         return true;
     } else {
         return parent::__isset($name);
     }
 }
开发者ID:edwardstock,项目名称:yii-mongo-record,代码行数:15,代码来源:MongoRecord.php

示例9: __isset

 /**
  * Checks if a property value is null.
  * Do not call this method. This is a PHP magic method that we override
  * to allow using isset() to detect if a component property is set or not.
  * @param string $name the property name or the event name
  * @return boolean
  */
 public function __isset($name)
 {
     if (array_key_exists($name, $this->_attributes)) {
         return isset($this->_attributes[$name]);
     } else {
         return parent::__isset($name);
     }
 }
开发者ID:icron,项目名称:yii-dynamic-model,代码行数:15,代码来源:DynamicModel.php


注:本文中的CModel::__isset方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。