public function __get($strKey) { switch ($strKey) { case 'allGroups': return $this->arrGroups; break; case 'loginPage': return $this->strLoginPage; break; } return parent::__get($strKey); }