public function &__get($a_property) { switch ($a_property) { case 'router': return $this->getRouter(); case 'route': return $this->getRoute(); case 'registry': return $this->getRegistry(); case 'config': return $this->getConfig(); case 'language': return $this->getLanguage(); case 'load': return $this->getLoader(); case 'acl': return $this->getAcl(); } return parent::__get($a_property); }
/** * Get property * @param string $a_property * @return mixed */ public function &__get($a_property) { $v = null; if ($this->hasModel($a_property)) { $v = $this->getModel($a_property); return $v; } $v = parent::__get($a_property); return $v; }