public function __get($name) { if (array_key_exists($name, $this->_options)) { return $this->_options[$name]; } return parent::__get($name); }
public function __get($name) { if (!$this->canGetProperty($name)) { return $this->options[$name]; } else { return parent::__get($name); } }
/** * override defaults __get method to allow get options easier * * @param mixed $name * @return mixed */ function __get($name) { try { return parent::__get($name); } catch (exception $e) { if (isset($this->_options[$name])) { return $this->_options[$name]; } throw $e; } }