‪TYPO3CMS  10.4
BackendUser.php
Go to the documentation of this file.
1 <?php
2 
3 /*
4  * This file is part of the TYPO3 CMS project.
5  *
6  * It is free software; you can redistribute it and/or modify it under
7  * the terms of the GNU General Public License, either version 2
8  * of the License, or any later version.
9  *
10  * For the full copyright and license information, please read the
11  * LICENSE.txt file that was distributed with this source code.
12  *
13  * The TYPO3 project - inspiring people to share!
14  */
15 
17 
20 
25 {
30  protected ‪$userName = '';
31 
35  protected ‪$description = '';
36 
40  protected ‪$isAdministrator = false;
41 
45  protected ‪$isDisabled = false;
46 
50  protected ‪$startDateAndTime;
51 
55  protected ‪$endDateAndTime;
56 
60  protected ‪$email = '';
61 
65  protected ‪$realName = '';
66 
70  protected ‪$lastLoginDateAndTime;
71 
75  protected ‪$ipLockIsDisabled = false;
76 
82  public function ‪getUserName()
83  {
84  return ‪$this->userName;
85  }
86 
92  public function ‪setUserName(‪$userName)
93  {
94  $this->userName = ‪$userName;
95  }
96 
100  public function ‪getDescription()
101  {
102  return ‪$this->description;
103  }
104 
109  {
110  $this->description = ‪$description;
111  }
112 
118  public function ‪getIsAdministrator()
119  {
121  }
122 
129  {
130  $this->isAdministrator = ‪$isAdministrator;
131  }
132 
138  public function ‪getIsDisabled()
139  {
140  return ‪$this->isDisabled;
141  }
142 
149  {
150  $this->isDisabled = ‪$isDisabled;
151  }
152 
158  public function ‪getStartDateAndTime()
159  {
161  }
162 
168  public function ‪setStartDateAndTime(\DateTime $dateAndTime = null)
169  {
170  $this->startDateAndTime = $dateAndTime;
171  }
172 
178  public function ‪getEndDateAndTime()
179  {
181  }
182 
188  public function ‪setEndDateAndTime(\DateTime $dateAndTime = null)
189  {
190  $this->endDateAndTime = $dateAndTime;
191  }
192 
198  public function ‪getEmail()
199  {
200  return ‪$this->email;
201  }
202 
208  public function ‪setEmail(‪$email)
209  {
210  $this->email = ‪$email;
211  }
212 
218  public function ‪getRealName()
219  {
220  return ‪$this->realName;
221  }
222 
228  public function ‪setRealName($name)
229  {
230  $this->realName = $name;
231  }
232 
240  public function ‪isActivated()
241  {
243  }
244 
250  protected function ‪isActivatedViaStartDateAndTime()
251  {
252  if ($this->‪getStartDateAndTime() === null) {
253  return true;
254  }
255  $now = new \DateTime('now');
256  return $this->‪getStartDateAndTime() <= $now;
257  }
258 
264  protected function ‪isActivatedViaEndDateAndTime()
265  {
266  if ($this->‪getEndDateAndTime() === null) {
267  return true;
268  }
269  $now = new \DateTime('now');
270  return $now <= $this->‪getEndDateAndTime();
271  }
272 
278  public function ‪setIpLockIsDisabled($disableIpLock)
279  {
280  $this->ipLockIsDisabled = $disableIpLock;
281  }
282 
288  public function ‪getIpLockIsDisabled()
289  {
291  }
292 
298  public function ‪getLastLoginDateAndTime()
299  {
301  }
302 
308  public function ‪setLastLoginDateAndTime(\DateTime $dateAndTime = null)
309  {
310  $this->lastLoginDateAndTime = $dateAndTime;
311  }
312 }
‪TYPO3\CMS\Extbase\Domain\Model\BackendUser\getIsAdministrator
‪bool getIsAdministrator()
Definition: BackendUser.php:108
‪TYPO3\CMS\Extbase\Domain\Model\BackendUser\$isDisabled
‪bool $isDisabled
Definition: BackendUser.php:41
‪TYPO3\CMS\Extbase\Domain\Model\BackendUser\$lastLoginDateAndTime
‪DateTime null $lastLoginDateAndTime
Definition: BackendUser.php:61
‪TYPO3\CMS\Extbase\Domain\Model\BackendUser\setUserName
‪setUserName($userName)
Definition: BackendUser.php:82
‪TYPO3\CMS\Extbase\Annotation
Definition: IgnoreValidation.php:18
‪TYPO3\CMS\Extbase\Domain\Model\BackendUser\$endDateAndTime
‪DateTime null $endDateAndTime
Definition: BackendUser.php:49
‪TYPO3\CMS\Extbase\Domain\Model\BackendUser\setIsAdministrator
‪setIsAdministrator($isAdministrator)
Definition: BackendUser.php:118
‪TYPO3\CMS\Extbase\Domain\Model\BackendUser\$description
‪string $description
Definition: BackendUser.php:33
‪TYPO3\CMS\Extbase\Domain\Model\BackendUser\setIsDisabled
‪setIsDisabled($isDisabled)
Definition: BackendUser.php:138
‪TYPO3\CMS\Extbase\Domain\Model\BackendUser\setStartDateAndTime
‪setStartDateAndTime(\DateTime $dateAndTime=null)
Definition: BackendUser.php:158
‪TYPO3\CMS\Extbase\Domain\Model\BackendUser\getEndDateAndTime
‪DateTime null getEndDateAndTime()
Definition: BackendUser.php:168
‪TYPO3\CMS\Extbase\Domain\Model\BackendUser\setDescription
‪setDescription($description)
Definition: BackendUser.php:98
‪TYPO3\CMS\Extbase\Domain\Model\BackendUser\getUserName
‪string getUserName()
Definition: BackendUser.php:72
‪TYPO3\CMS\Extbase\Domain\Model\BackendUser\$realName
‪string $realName
Definition: BackendUser.php:57
‪TYPO3\CMS\Extbase\Domain\Model\BackendUser\isActivatedViaStartDateAndTime
‪bool isActivatedViaStartDateAndTime()
Definition: BackendUser.php:240
‪TYPO3\CMS\Extbase\Domain\Model\BackendUser\getLastLoginDateAndTime
‪DateTime null getLastLoginDateAndTime()
Definition: BackendUser.php:288
‪TYPO3\CMS\Extbase\Domain\Model\BackendUser\setEndDateAndTime
‪setEndDateAndTime(\DateTime $dateAndTime=null)
Definition: BackendUser.php:178
‪TYPO3\CMS\Extbase\DomainObject\AbstractEntity
Definition: AbstractEntity.php:23
‪TYPO3\CMS\Extbase\Domain\Model\BackendUser\getRealName
‪string getRealName()
Definition: BackendUser.php:208
‪TYPO3\CMS\Extbase\Domain\Model\BackendUser\isActivatedViaEndDateAndTime
‪bool isActivatedViaEndDateAndTime()
Definition: BackendUser.php:254
‪TYPO3\CMS\Extbase\Domain\Model\BackendUser\setEmail
‪setEmail($email)
Definition: BackendUser.php:198
‪TYPO3\CMS\Extbase\Domain\Model\BackendUser\getIsDisabled
‪bool getIsDisabled()
Definition: BackendUser.php:128
‪TYPO3\CMS\Extbase\Domain\Model\BackendUser\getDescription
‪string getDescription()
Definition: BackendUser.php:90
‪TYPO3\CMS\Extbase\Domain\Model\BackendUser\setLastLoginDateAndTime
‪setLastLoginDateAndTime(\DateTime $dateAndTime=null)
Definition: BackendUser.php:298
‪TYPO3\CMS\Extbase\Domain\Model\BackendUser\$ipLockIsDisabled
‪bool $ipLockIsDisabled
Definition: BackendUser.php:65
‪TYPO3\CMS\Extbase\Domain\Model\BackendUser\setRealName
‪setRealName($name)
Definition: BackendUser.php:218
‪TYPO3\CMS\Extbase\Domain\Model\BackendUser\setIpLockIsDisabled
‪setIpLockIsDisabled($disableIpLock)
Definition: BackendUser.php:268
‪TYPO3\CMS\Extbase\Domain\Model\BackendUser\getEmail
‪string getEmail()
Definition: BackendUser.php:188
‪TYPO3\CMS\Extbase\Domain\Model
Definition: AbstractFileCollection.php:16
‪TYPO3\CMS\Extbase\Domain\Model\BackendUser\$userName
‪string $userName
Definition: BackendUser.php:29
‪TYPO3\CMS\Extbase\Domain\Model\BackendUser
Definition: BackendUser.php:25
‪TYPO3\CMS\Extbase\Domain\Model\BackendUser\isActivated
‪bool isActivated()
Definition: BackendUser.php:230
‪TYPO3\CMS\Extbase\Domain\Model\BackendUser\getIpLockIsDisabled
‪bool getIpLockIsDisabled()
Definition: BackendUser.php:278
‪TYPO3\CMS\Extbase\Domain\Model\BackendUser\$startDateAndTime
‪DateTime null $startDateAndTime
Definition: BackendUser.php:45
‪TYPO3\CMS\Extbase\Domain\Model\BackendUser\$email
‪string $email
Definition: BackendUser.php:53
‪TYPO3\CMS\Extbase\Domain\Model\BackendUser\$isAdministrator
‪bool $isAdministrator
Definition: BackendUser.php:37
‪TYPO3\CMS\Extbase\Domain\Model\BackendUser\getStartDateAndTime
‪DateTime null getStartDateAndTime()
Definition: BackendUser.php:148