public function __get($property) { switch ($property) { case 'extensions': return $this->{$property}; } return parent::__get($property); }
/** * {@inheritdoc} */ public function __get($property) { switch ($property) { case 'record': case 'selection': return $this->{$property}; } return parent::__get($property); }
/** * {@inheritdoc} */ public function __get($property) { switch ($property) { case 'query': return $this->request->query['filter']; case 'primary': return $this->{$property}; } return parent::__get($property); }
/** * Get a JTK tool. * @param string $toolName Tool name. * @return PartialJtkSnippet A partial JTK snippet that can be used to * configure the tool before outputting. * @throws \Exception If tool not found. */ public function __get($toolName) { $tool = $this->getTool($toolName); if (!isset($tool)) { return parent::__get($toolName); } return new PartialJtkSnippet($tool, $tool->getObject()); }
/** * {@inheritdoc} */ public function __get($property) { switch ($property) { case 'userModel': case 'loginRoute': case 'unauthorizedRoute': case 'ajaxRoute': case 'sessionId': case 'createSessions': case 'createCookies': case 'sessionPrefix': case 'sessionLifeTime': case 'sessionRenewAfter': case 'cookiePrefix': case 'cookieLifeTime': case 'cookieRenewAfter': case 'passwordHasher': case 'permissionPrefix': return $this->{$property}; case 'user': return $this->getUser(); } if (isset($this->acModules[$property])) { return $this->acModules[$property]; } return parent::__get($property); }