/** * Object getter * @param string $a_name * @return mixed */ public function __get($a_name) { if (!$this->m_this) { return parent::__get($a_name); } return $this->m_this->{$a_name}; }
/** * Model getter * @param string $a_name * @return mixed */ public function __get($a_name) { switch ($a_name) { case 'controller': return $this->getController(); case 'view': return $this->getController()->getView(); } return parent::__get($a_name); }
/** * Object getter * @param string $a_name * @return mixed */ public function &__get($a_name) { $g = null; if (!$this->m_this) { $g = parent::__get($a_name); } else { $g = $this->m_this->{$a_name}; } return $g; }
/** * Get property * @param string $a_property * @return mixed */ public function __get($a_property) { if (isset($this->m_models[$a_property]) || array_key_exists($a_property, $this->m_models)) { return $this->m_models[$a_property]; } return parent::__get($a_property); }
/** * Router getter * @param string $a_name * @return mixed */ public function __get($a_name) { switch ($a_name) { case 'current': return $this->m_current; case 'redirect': return $this->m_redirect; case 'request': return $this->m_request; case 'forward': return $this->m_forward; } return parent::__get($a_name); }
/** * Object getter * @param string $a_name * @return mixed */ public function &__get($a_name) { $get = !$this->m_this ? parent::__get($a_name) : $this->m_this->{$a_name}; return $get; }