Beispiel #1
0
 public function __get($property)
 {
     switch ($property) {
         case 'extensions':
             return $this->{$property};
     }
     return parent::__get($property);
 }
Beispiel #2
0
 /**
  * {@inheritdoc}
  */
 public function __get($property)
 {
     switch ($property) {
         case 'record':
         case 'selection':
             return $this->{$property};
     }
     return parent::__get($property);
 }
Beispiel #3
0
 /**
  * {@inheritdoc}
  */
 public function __get($property)
 {
     switch ($property) {
         case 'query':
             return $this->request->query['filter'];
         case 'primary':
             return $this->{$property};
     }
     return parent::__get($property);
 }
Beispiel #4
0
 /**
  * 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());
 }
Beispiel #5
0
 /**
  * {@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);
 }