‪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 
18 
23 {
28  protected ‪$userName = '';
29 
33  protected ‪$description = '';
34 
38  protected ‪$isAdministrator = false;
39 
43  protected ‪$isDisabled = false;
44 
48  protected ‪$startDateAndTime;
49 
53  protected ‪$endDateAndTime;
54 
58  protected ‪$email = '';
59 
63  protected ‪$realName = '';
64 
68  protected ‪$lastLoginDateAndTime;
69 
73  protected ‪$ipLockIsDisabled = false;
74 
80  public function ‪getUserName()
81  {
82  return ‪$this->userName;
83  }
84 
90  public function ‪setUserName(‪$userName)
91  {
92  $this->userName = ‪$userName;
93  }
94 
98  public function ‪getDescription()
99  {
100  return ‪$this->description;
101  }
102 
107  {
108  $this->description = ‪$description;
109  }
110 
116  public function ‪getIsAdministrator()
117  {
119  }
120 
127  {
128  $this->isAdministrator = ‪$isAdministrator;
129  }
130 
136  public function ‪getIsDisabled()
137  {
138  return ‪$this->isDisabled;
139  }
140 
147  {
148  $this->isDisabled = ‪$isDisabled;
149  }
150 
156  public function ‪getStartDateAndTime()
157  {
159  }
160 
166  public function ‪setStartDateAndTime(\DateTime $dateAndTime = null)
167  {
168  $this->startDateAndTime = $dateAndTime;
169  }
170 
176  public function ‪getEndDateAndTime()
177  {
179  }
180 
186  public function ‪setEndDateAndTime(\DateTime $dateAndTime = null)
187  {
188  $this->endDateAndTime = $dateAndTime;
189  }
190 
196  public function ‪getEmail()
197  {
198  return ‪$this->email;
199  }
200 
206  public function ‪setEmail(‪$email)
207  {
208  $this->email = ‪$email;
209  }
210 
216  public function ‪getRealName()
217  {
218  return ‪$this->realName;
219  }
220 
226  public function ‪setRealName($name)
227  {
228  $this->realName = $name;
229  }
230 
238  public function ‪isActivated()
239  {
241  }
242 
248  protected function ‪isActivatedViaStartDateAndTime()
249  {
250  if ($this->‪getStartDateAndTime() === null) {
251  return true;
252  }
253  $now = new \DateTime('now');
254  return $this->‪getStartDateAndTime() <= $now;
255  }
256 
262  protected function ‪isActivatedViaEndDateAndTime()
263  {
264  if ($this->‪getEndDateAndTime() === null) {
265  return true;
266  }
267  $now = new \DateTime('now');
268  return $now <= $this->‪getEndDateAndTime();
269  }
270 
276  public function ‪setIpLockIsDisabled($disableIpLock)
277  {
278  $this->ipLockIsDisabled = $disableIpLock;
279  }
280 
286  public function ‪getIpLockIsDisabled()
287  {
289  }
290 
296  public function ‪getLastLoginDateAndTime()
297  {
299  }
300 
306  public function ‪setLastLoginDateAndTime(\DateTime $dateAndTime = null)
307  {
308  $this->lastLoginDateAndTime = $dateAndTime;
309  }
310 }
‪TYPO3\CMS\Extbase\Domain\Model\BackendUser\getIsAdministrator
‪bool getIsAdministrator()
Definition: BackendUser.php:106
‪TYPO3\CMS\Extbase\Domain\Model\BackendUser\$isDisabled
‪bool $isDisabled
Definition: BackendUser.php:39
‪TYPO3\CMS\Extbase\Domain\Model\BackendUser\$lastLoginDateAndTime
‪DateTime null $lastLoginDateAndTime
Definition: BackendUser.php:59
‪TYPO3\CMS\Extbase\Domain\Model\BackendUser\setUserName
‪setUserName($userName)
Definition: BackendUser.php:80
‪TYPO3\CMS\Extbase\Annotation
Definition: IgnoreValidation.php:4
‪TYPO3\CMS\Extbase\Domain\Model\BackendUser\$endDateAndTime
‪DateTime null $endDateAndTime
Definition: BackendUser.php:47
‪TYPO3\CMS\Extbase\Domain\Model\BackendUser\setIsAdministrator
‪setIsAdministrator($isAdministrator)
Definition: BackendUser.php:116
‪TYPO3\CMS\Extbase\Domain\Model\BackendUser\$description
‪string $description
Definition: BackendUser.php:31
‪TYPO3\CMS\Extbase\Domain\Model\BackendUser\setIsDisabled
‪setIsDisabled($isDisabled)
Definition: BackendUser.php:136
‪TYPO3\CMS\Extbase\Domain\Model\BackendUser\setStartDateAndTime
‪setStartDateAndTime(\DateTime $dateAndTime=null)
Definition: BackendUser.php:156
‪TYPO3\CMS\Extbase\Domain\Model\BackendUser\getEndDateAndTime
‪DateTime null getEndDateAndTime()
Definition: BackendUser.php:166
‪TYPO3\CMS\Extbase\Domain\Model\BackendUser\setDescription
‪setDescription($description)
Definition: BackendUser.php:96
‪TYPO3\CMS\Extbase\Domain\Model\BackendUser\getUserName
‪string getUserName()
Definition: BackendUser.php:70
‪TYPO3\CMS\Extbase\Domain\Model\BackendUser\$realName
‪string $realName
Definition: BackendUser.php:55
‪TYPO3\CMS\Extbase\Domain\Model\BackendUser\isActivatedViaStartDateAndTime
‪bool isActivatedViaStartDateAndTime()
Definition: BackendUser.php:238
‪TYPO3\CMS\Extbase\Domain\Model\BackendUser\getLastLoginDateAndTime
‪DateTime null getLastLoginDateAndTime()
Definition: BackendUser.php:286
‪TYPO3\CMS\Extbase\Domain\Model\BackendUser\setEndDateAndTime
‪setEndDateAndTime(\DateTime $dateAndTime=null)
Definition: BackendUser.php:176
‪TYPO3\CMS\Extbase\DomainObject\AbstractEntity
Definition: AbstractEntity.php:22
‪TYPO3\CMS\Extbase\Domain\Model\BackendUser\getRealName
‪string getRealName()
Definition: BackendUser.php:206
‪TYPO3\CMS\Extbase\Domain\Model\BackendUser\isActivatedViaEndDateAndTime
‪bool isActivatedViaEndDateAndTime()
Definition: BackendUser.php:252
‪TYPO3\CMS\Extbase\Domain\Model\BackendUser\setEmail
‪setEmail($email)
Definition: BackendUser.php:196
‪TYPO3\CMS\Extbase\Domain\Model\BackendUser\getIsDisabled
‪bool getIsDisabled()
Definition: BackendUser.php:126
‪TYPO3\CMS\Extbase\Domain\Model\BackendUser\getDescription
‪string getDescription()
Definition: BackendUser.php:88
‪TYPO3\CMS\Extbase\Domain\Model\BackendUser\setLastLoginDateAndTime
‪setLastLoginDateAndTime(\DateTime $dateAndTime=null)
Definition: BackendUser.php:296
‪TYPO3\CMS\Extbase\Domain\Model\BackendUser\$ipLockIsDisabled
‪bool $ipLockIsDisabled
Definition: BackendUser.php:63
‪TYPO3\CMS\Extbase\Domain\Model\BackendUser\setRealName
‪setRealName($name)
Definition: BackendUser.php:216
‪TYPO3\CMS\Extbase\Domain\Model\BackendUser\setIpLockIsDisabled
‪setIpLockIsDisabled($disableIpLock)
Definition: BackendUser.php:266
‪TYPO3\CMS\Extbase\Domain\Model\BackendUser\getEmail
‪string getEmail()
Definition: BackendUser.php:186
‪TYPO3\CMS\Extbase\Domain\Model
Definition: AbstractFileCollection.php:2
‪TYPO3\CMS\Extbase\Domain\Model\BackendUser\$userName
‪string $userName
Definition: BackendUser.php:27
‪TYPO3\CMS\Extbase\Domain\Model\BackendUser
Definition: BackendUser.php:23
‪TYPO3\CMS\Extbase\Domain\Model\BackendUser\isActivated
‪bool isActivated()
Definition: BackendUser.php:228
‪TYPO3\CMS\Extbase\Domain\Model\BackendUser\getIpLockIsDisabled
‪bool getIpLockIsDisabled()
Definition: BackendUser.php:276
‪TYPO3\CMS\Extbase\Domain\Model\BackendUser\$startDateAndTime
‪DateTime null $startDateAndTime
Definition: BackendUser.php:43
‪TYPO3\CMS\Extbase\Domain\Model\BackendUser\$email
‪string $email
Definition: BackendUser.php:51
‪TYPO3\CMS\Extbase\Domain\Model\BackendUser\$isAdministrator
‪bool $isAdministrator
Definition: BackendUser.php:35
‪TYPO3\CMS\Extbase\Domain\Model\BackendUser\getStartDateAndTime
‪DateTime null getStartDateAndTime()
Definition: BackendUser.php:146