‪TYPO3CMS  10.4
UserService.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
4 
5 /*
6  * This file is part of the TYPO3 CMS project.
7  *
8  * It is free software; you can redistribute it and/or modify it under
9  * the terms of the GNU General Public License, either version 2
10  * of the License, or any later version.
11  *
12  * For the full copyright and license information, please read the
13  * LICENSE.txt file that was distributed with this source code.
14  *
15  * The TYPO3 project - inspiring people to share!
16  */
17 
19 
21 
26 {
30  protected ‪$feUser;
31 
32  public function ‪__construct()
33  {
34  $this->feUser = ‪$GLOBALS['TSFE']->fe_user;
35  }
36 
42  public function ‪getFeUserData(): array
43  {
44  return $this->feUser->user;
45  }
46 
52  public function ‪cookieWarningRequired(): bool
53  {
54  return !$this->feUser->isCookieSet();
55  }
56 
57  public function ‪getFeUserGroupData(): array
58  {
59  return $this->feUser->groupData;
60  }
61 
62  public function ‪getFeUserTable(): string
63  {
64  return $this->feUser->user_table;
65  }
66 
67  public function ‪getFeUserGroupTable(): string
68  {
69  return $this->feUser->usergroup_table;
70  }
71 
72  public function ‪getFeUserIdColumn(): string
73  {
74  return $this->feUser->userid_column;
75  }
76 }
‪TYPO3\CMS\FrontendLogin\Service\UserService\getFeUserIdColumn
‪getFeUserIdColumn()
Definition: UserService.php:71
‪TYPO3\CMS\FrontendLogin\Service\UserService\getFeUserGroupData
‪getFeUserGroupData()
Definition: UserService.php:56
‪TYPO3\CMS\FrontendLogin\Service
Definition: RecoveryService.php:18
‪TYPO3\CMS\FrontendLogin\Service\UserService\$feUser
‪FrontendUserAuthentication $feUser
Definition: UserService.php:29
‪TYPO3\CMS\FrontendLogin\Service\UserService
Definition: UserService.php:26
‪TYPO3\CMS\FrontendLogin\Service\UserService\__construct
‪__construct()
Definition: UserService.php:31
‪TYPO3\CMS\FrontendLogin\Service\UserService\getFeUserData
‪array getFeUserData()
Definition: UserService.php:41
‪$GLOBALS
‪$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['adminpanel']['modules']
Definition: ext_localconf.php:5
‪TYPO3\CMS\FrontendLogin\Service\UserService\getFeUserTable
‪getFeUserTable()
Definition: UserService.php:61
‪TYPO3\CMS\Frontend\Authentication\FrontendUserAuthentication
Definition: FrontendUserAuthentication.php:30
‪TYPO3\CMS\FrontendLogin\Service\UserService\getFeUserGroupTable
‪getFeUserGroupTable()
Definition: UserService.php:66
‪TYPO3\CMS\FrontendLogin\Service\UserService\cookieWarningRequired
‪bool cookieWarningRequired()
Definition: UserService.php:51