‪TYPO3CMS  11.5
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 
40  public function ‪getFeUserData(): array
41  {
42  return $this->feUser->user;
43  }
44 
48  public function ‪cookieWarningRequired(): bool
49  {
50  return !$this->feUser->isCookieSet();
51  }
52 
53  public function ‪getFeUserGroupData(): array
54  {
55  return $this->feUser->userGroups;
56  }
57 
58  public function ‪getFeUserTable(): string
59  {
60  return $this->feUser->user_table;
61  }
62 
63  public function ‪getFeUserGroupTable(): string
64  {
65  return $this->feUser->usergroup_table;
66  }
67 
68  public function ‪getFeUserIdColumn(): string
69  {
70  return $this->feUser->userid_column;
71  }
72 }
‪TYPO3\CMS\FrontendLogin\Service\UserService\getFeUserIdColumn
‪getFeUserIdColumn()
Definition: UserService.php:67
‪TYPO3\CMS\FrontendLogin\Service\UserService\getFeUserGroupData
‪getFeUserGroupData()
Definition: UserService.php:52
‪TYPO3\CMS\FrontendLogin\Service
Definition: RecoveryService.php:18
‪TYPO3\CMS\FrontendLogin\Service\UserService\cookieWarningRequired
‪cookieWarningRequired()
Definition: UserService.php:47
‪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
‪$GLOBALS
‪$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['adminpanel']['modules']
Definition: ext_localconf.php:25
‪TYPO3\CMS\FrontendLogin\Service\UserService\getFeUserTable
‪getFeUserTable()
Definition: UserService.php:57
‪TYPO3\CMS\Frontend\Authentication\FrontendUserAuthentication
Definition: FrontendUserAuthentication.php:32
‪TYPO3\CMS\FrontendLogin\Service\UserService\getFeUserGroupTable
‪getFeUserGroupTable()
Definition: UserService.php:62
‪TYPO3\CMS\FrontendLogin\Service\UserService\getFeUserData
‪getFeUserData()
Definition: UserService.php:39