コード例 #1
0
ファイル: MultilingualBehavior.php プロジェクト: DarkAiR/test
 public function __isset($name)
 {
     if (!parent::__isset($name)) {
         return $this->hasLangAttribute($name);
     } else {
         return true;
     }
 }
コード例 #2
0
ファイル: AResourceful.php プロジェクト: niranjan2m/Voyanga
 /**
  * The magic isset, enables resources to be accessed like properties
  * @param string $name The name of the virtual property
  */
 public function __isset($name)
 {
     if (isset($this->attributes[$name])) {
         return true;
     }
     return parent::__isset($name);
 }