public function __isset($name) { if (isset($this->_params[$name])) { return true; } return parent::__isset($name); }
public function __isset($name) { $module = Yii::app()->controller->module; switch ($name) { case $module->userIdColumn: return !is_null($this->_id); case $module->userNameColumn: return !is_null($this->_name); default: return parent::__isset($name); } }
/** * Checks if a property value is null. * This method overrides the parent implementation by checking * if the key exists in the collection and contains a non-null value. * @param string $name the property name or the event name * @return boolean whether the property value is null * @since 1.0.1 */ public function __isset($name) { if ($this->_attributes->contains($name)) { return $this->_attributes->itemAt($name) !== null; } else { return parent::__isset($name); } }