/** * PHP getter magic method. * This method is overridden so that config keys can be accessed like properties. * @param string $name config key * @return mixed config value * @see getAttribute */ public function __get($name) { if (isset($this->_configs[$name])) { return $this->_configs[$name]; } else { return parent::__get($name); } }
/** * PHP isset magic method. * This method is overridden to allow using isset() to detect if a config key is set or not. * * @param string $name the property name or the event name * @return boolean */ public function __isset($name) { if (isset($this->_configs[$name])) { return true; } return parent::__get($name); }