‪TYPO3CMS  9.5
BackendUser.php
Go to the documentation of this file.
1 <?php
3 
4 /*
5  * This file is part of the TYPO3 CMS project.
6  *
7  * It is free software; you can redistribute it and/or modify it under
8  * the terms of the GNU General Public License, either version 2
9  * of the License, or any later version.
10  *
11  * For the full copyright and license information, please read the
12  * LICENSE.txt file that was distributed with this source code.
13  *
14  * The TYPO3 project - inspiring people to share!
15  */
16 
22 {
29  protected ‪$allowedLanguages = '';
30 
34  protected ‪$dbMountPoints = '';
35 
39  protected ‪$description;
40 
44  protected ‪$fileMountPoints = '';
45 
50 
55  {
56  $this->allowedLanguages = ‪$allowedLanguages;
57  }
58 
62  public function ‪getAllowedLanguages()
63  {
65  }
66 
70  public function ‪setDbMountPoints(‪$dbMountPoints)
71  {
72  $this->dbMountPoints = ‪$dbMountPoints;
73  }
74 
78  public function ‪getDbMountPoints()
79  {
81  }
82 
87  {
88  $this->fileMountPoints = ‪$fileMountPoints;
89  }
90 
94  public function ‪getFileMountPoints()
95  {
97  }
98 
104  public function ‪isActive()
105  {
106  if ($this->‪getIsDisabled()) {
107  return false;
108  }
109  $now = new \DateTime('now');
110  return !$this->‪getStartDateAndTime() && !$this->‪getEndDateAndTime() || $this->‪getStartDateAndTime() <= $now && (!$this->‪getEndDateAndTime() || $this->‪getEndDateAndTime() > $now);
111  }
112 
117  {
118  $this->backendUserGroups = ‪$backendUserGroups;
119  }
120 
124  public function ‪getBackendUserGroups()
125  {
127  }
128 
134  public function ‪isCurrentlyLoggedIn()
135  {
136  return $this->‪getUid() === (int)$this->‪getBackendUser()->user['uid'];
137  }
138 
144  public function ‪getBackendUser()
145  {
146  return ‪$GLOBALS['BE_USER'];
147  }
148 }
‪TYPO3\CMS\Beuser\Domain\Model
Definition: BackendUser.php:2
‪TYPO3\CMS\Beuser\Domain\Model\BackendUser\setFileMountPoints
‪setFileMountPoints($fileMountPoints)
Definition: BackendUser.php:81
‪TYPO3\CMS\Beuser\Domain\Model\BackendUser\getBackendUser
‪TYPO3 CMS Core Authentication BackendUserAuthentication getBackendUser()
Definition: BackendUser.php:139
‪TYPO3\CMS\Beuser\Domain\Model\BackendUser\$description
‪string $description
Definition: BackendUser.php:36
‪TYPO3\CMS\Beuser\Domain\Model\BackendUser\$dbMountPoints
‪string $dbMountPoints
Definition: BackendUser.php:32
‪TYPO3\CMS\Beuser\Domain\Model\BackendUser\getFileMountPoints
‪string getFileMountPoints()
Definition: BackendUser.php:89
‪TYPO3\CMS\Beuser\Domain\Model\BackendUser\isActive
‪bool isActive()
Definition: BackendUser.php:99
‪TYPO3\CMS\Extbase\Domain\Model\BackendUser\getEndDateAndTime
‪DateTime null getEndDateAndTime()
Definition: BackendUser.php:166
‪TYPO3\CMS\Beuser\Domain\Model\BackendUser\setBackendUserGroups
‪setBackendUserGroups($backendUserGroups)
Definition: BackendUser.php:111
‪TYPO3\CMS\Beuser\Domain\Model\BackendUser\$allowedLanguages
‪string $allowedLanguages
Definition: BackendUser.php:28
‪TYPO3\CMS\Beuser\Domain\Model\BackendUser\$fileMountPoints
‪string $fileMountPoints
Definition: BackendUser.php:40
‪TYPO3\CMS\Beuser\Domain\Model\BackendUser\$backendUserGroups
‪TYPO3 CMS Extbase Persistence ObjectStorage<\TYPO3\CMS\Beuser\Domain\Model\BackendUserGroup > $backendUserGroups
Definition: BackendUser.php:44
‪TYPO3\CMS\Extbase\DomainObject\AbstractDomainObject\getUid
‪int getUid()
Definition: AbstractDomainObject.php:62
‪TYPO3\CMS\Extbase\Domain\Model\BackendUser\getIsDisabled
‪bool getIsDisabled()
Definition: BackendUser.php:126
‪TYPO3\CMS\Beuser\Domain\Model\BackendUser\isCurrentlyLoggedIn
‪bool isCurrentlyLoggedIn()
Definition: BackendUser.php:129
‪TYPO3\CMS\Beuser\Domain\Model\BackendUser\getDbMountPoints
‪string getDbMountPoints()
Definition: BackendUser.php:73
‪$GLOBALS
‪$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['adminpanel']['modules']
Definition: ext_localconf.php:5
‪TYPO3\CMS\Beuser\Domain\Model\BackendUser\setAllowedLanguages
‪setAllowedLanguages($allowedLanguages)
Definition: BackendUser.php:49
‪TYPO3\CMS\Beuser\Domain\Model\BackendUser\getAllowedLanguages
‪string getAllowedLanguages()
Definition: BackendUser.php:57
‪TYPO3\CMS\Beuser\Domain\Model\BackendUser\getBackendUserGroups
‪TYPO3 CMS Extbase Persistence ObjectStorage getBackendUserGroups()
Definition: BackendUser.php:119
‪TYPO3\CMS\Beuser\Domain\Model\BackendUser
Definition: BackendUser.php:22
‪TYPO3\CMS\Beuser\Domain\Model\BackendUser\setDbMountPoints
‪setDbMountPoints($dbMountPoints)
Definition: BackendUser.php:65
‪TYPO3\CMS\Extbase\Domain\Model\BackendUser
Definition: BackendUser.php:23
‪TYPO3\CMS\Extbase\Domain\Model\BackendUser\getStartDateAndTime
‪DateTime null getStartDateAndTime()
Definition: BackendUser.php:146