Пример #1
0
 /**
  * Checks if property or item is set (not null).
  *
  * @param string $name the property name or the event name
  *
  * @return bool whether the property value is set (not null)
  */
 public function __isset($name)
 {
     return $name && parent::__isset($name) || $this->issetItem($name);
 }
Пример #2
0
 /**
  * @inheritdoc
  */
 public function __isset($name)
 {
     if (array_key_exists($name, $this->_attributes)) {
         return isset($this->_attributes[$name]);
     } else {
         return parent::__isset($name);
     }
 }
Пример #3
0
 public function __isset($name)
 {
     if ($this->_entity) {
         return isset($this->_entity->{$name});
     }
     if (isset($this->_client[$name])) {
         return true;
     }
     return parent::__isset($name);
 }