public function __isset($name) { if (isset($this->_attributes[$name])) { return true; } elseif (in_array($name, $this->attributeNames())) { return false; } else { return parent::__isset($name); } }
/** * (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); } }
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); } }
/** * 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; } }
/** * @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); } }
/** * 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); } } }
/** * 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); } }
/** * 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); } }
/** * 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); } }