‪TYPO3CMS  10.4
FrontendUser.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 {
29  protected ‪$username = '';
30 
34  protected ‪$password = '';
35 
39  protected ‪$usergroup;
40 
44  protected ‪$name = '';
45 
49  protected ‪$firstName = '';
50 
54  protected ‪$middleName = '';
55 
59  protected ‪$lastName = '';
60 
64  protected ‪$address = '';
65 
69  protected ‪$telephone = '';
70 
74  protected ‪$fax = '';
75 
79  protected ‪$email = '';
80 
84  protected ‪$lockToDomain = '';
85 
89  protected ‪$title = '';
90 
94  protected ‪$zip = '';
95 
99  protected ‪$city = '';
100 
104  protected ‪$country = '';
105 
109  protected ‪$www = '';
110 
114  protected ‪$company = '';
115 
119  protected ‪$image;
120 
124  protected ‪$lastlogin;
125 
132  public function ‪__construct(‪$username = '', ‪$password = '')
133  {
134  $this->username = ‪$username;
135  $this->password = ‪$password;
136  $this->usergroup = new ‪ObjectStorage();
137  $this->image = new ‪ObjectStorage();
138  }
139 
143  public function ‪initializeObject()
144  {
145  $this->usergroup = $this->usergroup ?? new ‪ObjectStorage();
146  $this->image = $this->image ?? new ‪ObjectStorage();
147  }
148 
154  public function ‪setUsername(‪$username)
155  {
156  $this->username = ‪$username;
157  }
158 
164  public function ‪getUsername()
165  {
166  return ‪$this->username;
167  }
168 
174  public function ‪setPassword(‪$password)
175  {
176  $this->password = ‪$password;
177  }
178 
184  public function ‪getPassword()
185  {
186  return ‪$this->password;
187  }
188 
196  {
197  $this->usergroup = ‪$usergroup;
198  }
199 
206  {
207  $this->usergroup->attach(‪$usergroup);
208  }
209 
216  {
217  $this->usergroup->detach(‪$usergroup);
218  }
219 
226  public function ‪getUsergroup()
227  {
228  return ‪$this->usergroup;
229  }
230 
236  public function ‪setName(‪$name)
237  {
238  $this->name = ‪$name;
239  }
240 
246  public function ‪getName()
247  {
248  return ‪$this->name;
249  }
250 
257  {
258  $this->firstName = ‪$firstName;
259  }
260 
266  public function ‪getFirstName()
267  {
268  return ‪$this->firstName;
269  }
270 
277  {
278  $this->middleName = ‪$middleName;
279  }
280 
286  public function ‪getMiddleName()
287  {
288  return ‪$this->middleName;
289  }
290 
296  public function ‪setLastName(‪$lastName)
297  {
298  $this->lastName = ‪$lastName;
299  }
300 
306  public function ‪getLastName()
307  {
308  return ‪$this->lastName;
309  }
310 
316  public function ‪setAddress(‪$address)
317  {
318  $this->address = ‪$address;
319  }
320 
326  public function ‪getAddress()
327  {
328  return ‪$this->address;
329  }
330 
337  {
338  $this->telephone = ‪$telephone;
339  }
340 
346  public function ‪getTelephone()
347  {
348  return ‪$this->telephone;
349  }
350 
356  public function ‪setFax(‪$fax)
357  {
358  $this->fax = ‪$fax;
359  }
360 
366  public function ‪getFax()
367  {
368  return ‪$this->fax;
369  }
370 
376  public function ‪setEmail(‪$email)
377  {
378  $this->email = ‪$email;
379  }
380 
386  public function ‪getEmail()
387  {
388  return ‪$this->email;
389  }
390 
397  {
398  $this->lockToDomain = ‪$lockToDomain;
399  }
400 
406  public function ‪getLockToDomain()
407  {
408  return ‪$this->lockToDomain;
409  }
410 
416  public function ‪setTitle(‪$title)
417  {
418  $this->title = ‪$title;
419  }
420 
426  public function ‪getTitle()
427  {
428  return ‪$this->title;
429  }
430 
436  public function ‪setZip(‪$zip)
437  {
438  $this->zip = ‪$zip;
439  }
440 
446  public function ‪getZip()
447  {
448  return ‪$this->zip;
449  }
450 
456  public function ‪setCity(‪$city)
457  {
458  $this->city = ‪$city;
459  }
460 
466  public function ‪getCity()
467  {
468  return ‪$this->city;
469  }
470 
476  public function ‪setCountry(‪$country)
477  {
478  $this->country = ‪$country;
479  }
480 
486  public function ‪getCountry()
487  {
488  return ‪$this->country;
489  }
490 
496  public function ‪setWww(‪$www)
497  {
498  $this->www = ‪$www;
499  }
500 
506  public function ‪getWww()
507  {
508  return ‪$this->www;
509  }
510 
516  public function ‪setCompany(‪$company)
517  {
518  $this->company = ‪$company;
519  }
520 
526  public function ‪getCompany()
527  {
528  return ‪$this->company;
529  }
530 
537  {
538  $this->image = ‪$image;
539  }
540 
546  public function ‪getImage()
547  {
548  return ‪$this->image;
549  }
550 
556  public function ‪setLastlogin(\DateTime ‪$lastlogin)
557  {
558  $this->lastlogin = ‪$lastlogin;
559  }
560 
566  public function ‪getLastlogin()
567  {
568  return ‪$this->lastlogin;
569  }
570 }
‪TYPO3\CMS\Extbase\Domain\Model\FrontendUser\setEmail
‪setEmail($email)
Definition: FrontendUser.php:356
‪TYPO3\CMS\Extbase\Domain\Model\FrontendUser\getFirstName
‪string getFirstName()
Definition: FrontendUser.php:246
‪TYPO3\CMS\Extbase\Domain\Model\FrontendUser\$country
‪string $country
Definition: FrontendUser.php:88
‪TYPO3\CMS\Extbase\Domain\Model\FrontendUser\removeUsergroup
‪removeUsergroup(FrontendUserGroup $usergroup)
Definition: FrontendUser.php:195
‪TYPO3\CMS\Extbase\Domain\Model\FrontendUser\$title
‪string $title
Definition: FrontendUser.php:76
‪TYPO3\CMS\Extbase\Domain\Model\FrontendUser\getCountry
‪string getCountry()
Definition: FrontendUser.php:466
‪TYPO3\CMS\Extbase\Domain\Model\FrontendUser\$company
‪string $company
Definition: FrontendUser.php:96
‪TYPO3\CMS\Extbase\Domain\Model\FrontendUser\getTelephone
‪string getTelephone()
Definition: FrontendUser.php:326
‪TYPO3\CMS\Extbase\Domain\Model\FrontendUser\addUsergroup
‪addUsergroup(FrontendUserGroup $usergroup)
Definition: FrontendUser.php:185
‪TYPO3\CMS\Extbase\Domain\Model\FrontendUser\setFirstName
‪setFirstName($firstName)
Definition: FrontendUser.php:236
‪TYPO3\CMS\Extbase\Domain\Model\FrontendUser\setCountry
‪setCountry($country)
Definition: FrontendUser.php:456
‪TYPO3\CMS\Extbase\Domain\Model\FrontendUser\getFax
‪string getFax()
Definition: FrontendUser.php:346
‪TYPO3\CMS\Extbase\Domain\Model\FrontendUser\getName
‪string getName()
Definition: FrontendUser.php:226
‪TYPO3\CMS\Extbase\Domain\Model\FrontendUser\$zip
‪string $zip
Definition: FrontendUser.php:80
‪TYPO3\CMS\Extbase\Domain\Model\FrontendUser\setLockToDomain
‪setLockToDomain($lockToDomain)
Definition: FrontendUser.php:376
‪TYPO3\CMS\Extbase\Domain\Model\FrontendUser\$city
‪string $city
Definition: FrontendUser.php:84
‪TYPO3\CMS\Extbase\Domain\Model\FrontendUser\$address
‪string $address
Definition: FrontendUser.php:56
‪TYPO3\CMS\Extbase\Domain\Model\FrontendUser\$image
‪TYPO3 CMS Extbase Persistence ObjectStorage<\TYPO3\CMS\Extbase\Domain\Model\FileReference > $image
Definition: FrontendUser.php:100
‪TYPO3\CMS\Extbase\Domain\Model\FrontendUser\setLastName
‪setLastName($lastName)
Definition: FrontendUser.php:276
‪TYPO3\CMS\Extbase\Domain\Model\FrontendUser\$lastName
‪string $lastName
Definition: FrontendUser.php:52
‪TYPO3\CMS\Extbase\DomainObject\AbstractEntity
Definition: AbstractEntity.php:23
‪TYPO3\CMS\Extbase\Domain\Model\FrontendUser\$fax
‪string $fax
Definition: FrontendUser.php:64
‪TYPO3\CMS\Extbase\Domain\Model\FrontendUser\$www
‪string $www
Definition: FrontendUser.php:92
‪TYPO3\CMS\Extbase\Domain\Model\FrontendUser\getPassword
‪string getPassword()
Definition: FrontendUser.php:164
‪TYPO3\CMS\Extbase\Persistence\ObjectStorage
Definition: ObjectStorage.php:28
‪TYPO3\CMS\Extbase\Domain\Model\FrontendUser\$telephone
‪string $telephone
Definition: FrontendUser.php:60
‪TYPO3\CMS\Extbase\Domain\Model\FrontendUser\setImage
‪setImage(ObjectStorage $image)
Definition: FrontendUser.php:516
‪TYPO3\CMS\Extbase\Domain\Model\FrontendUser\getAddress
‪string getAddress()
Definition: FrontendUser.php:306
‪TYPO3\CMS\Extbase\Domain\Model\FrontendUser\setTelephone
‪setTelephone($telephone)
Definition: FrontendUser.php:316
‪TYPO3\CMS\Extbase\Domain\Model\FrontendUser\__construct
‪__construct($username='', $password='')
Definition: FrontendUser.php:112
‪TYPO3\CMS\Extbase\Domain\Model\FrontendUser\getWww
‪string getWww()
Definition: FrontendUser.php:486
‪TYPO3\CMS\Extbase\Domain\Model\FrontendUser\setFax
‪setFax($fax)
Definition: FrontendUser.php:336
‪TYPO3\CMS\Extbase\Domain\Model\FrontendUser\setAddress
‪setAddress($address)
Definition: FrontendUser.php:296
‪TYPO3\CMS\Extbase\Domain\Model\FrontendUser\getMiddleName
‪string getMiddleName()
Definition: FrontendUser.php:266
‪TYPO3\CMS\Extbase\Domain\Model\FrontendUser\initializeObject
‪initializeObject()
Definition: FrontendUser.php:123
‪TYPO3\CMS\Extbase\Domain\Model\FrontendUser\getImage
‪ObjectStorage getImage()
Definition: FrontendUser.php:526
‪TYPO3\CMS\Extbase\Domain\Model\FrontendUser\$usergroup
‪TYPO3 CMS Extbase Persistence ObjectStorage<\TYPO3\CMS\Extbase\Domain\Model\FrontendUserGroup > $usergroup
Definition: FrontendUser.php:36
‪TYPO3\CMS\Extbase\Domain\Model\FrontendUser\getCompany
‪string getCompany()
Definition: FrontendUser.php:506
‪TYPO3\CMS\Extbase\Domain\Model\FrontendUser\setUsername
‪setUsername($username)
Definition: FrontendUser.php:134
‪TYPO3\CMS\Extbase\Domain\Model\FrontendUser\$email
‪string $email
Definition: FrontendUser.php:68
‪TYPO3\CMS\Extbase\Domain\Model\FrontendUser\getCity
‪string getCity()
Definition: FrontendUser.php:446
‪TYPO3\CMS\Extbase\Domain\Model\FrontendUser\setPassword
‪setPassword($password)
Definition: FrontendUser.php:154
‪TYPO3\CMS\Extbase\Domain\Model\FrontendUser\getUsername
‪string getUsername()
Definition: FrontendUser.php:144
‪TYPO3\CMS\Extbase\Domain\Model\FrontendUser\$middleName
‪string $middleName
Definition: FrontendUser.php:48
‪TYPO3\CMS\Extbase\Domain\Model\FrontendUser\getZip
‪string getZip()
Definition: FrontendUser.php:426
‪TYPO3\CMS\Extbase\Domain\Model\FrontendUser\$lastlogin
‪DateTime null $lastlogin
Definition: FrontendUser.php:104
‪TYPO3\CMS\Extbase\Domain\Model\FrontendUser\setCity
‪setCity($city)
Definition: FrontendUser.php:436
‪TYPO3\CMS\Extbase\Domain\Model\FrontendUser\setTitle
‪setTitle($title)
Definition: FrontendUser.php:396
‪TYPO3\CMS\Extbase\Domain\Model\FrontendUser\$username
‪string $username
Definition: FrontendUser.php:28
‪TYPO3\CMS\Extbase\Domain\Model\FrontendUserGroup
Definition: FrontendUserGroup.php:25
‪TYPO3\CMS\Extbase\Domain\Model\FrontendUser\getLastName
‪string getLastName()
Definition: FrontendUser.php:286
‪TYPO3\CMS\Extbase\Domain\Model\FrontendUser\$password
‪string $password
Definition: FrontendUser.php:32
‪TYPO3\CMS\Extbase\Domain\Model\FrontendUser\setUsergroup
‪setUsergroup(ObjectStorage $usergroup)
Definition: FrontendUser.php:175
‪TYPO3\CMS\Extbase\Domain\Model
Definition: AbstractFileCollection.php:16
‪TYPO3\CMS\Extbase\Domain\Model\FrontendUser\getLastlogin
‪DateTime getLastlogin()
Definition: FrontendUser.php:546
‪TYPO3\CMS\Extbase\Domain\Model\FrontendUser
Definition: FrontendUser.php:25
‪TYPO3\CMS\Extbase\Domain\Model\FrontendUser\setZip
‪setZip($zip)
Definition: FrontendUser.php:416
‪TYPO3\CMS\Extbase\Domain\Model\FrontendUser\setName
‪setName($name)
Definition: FrontendUser.php:216
‪TYPO3\CMS\Extbase\Domain\Model\FrontendUser\getUsergroup
‪ObjectStorage getUsergroup()
Definition: FrontendUser.php:206
‪TYPO3\CMS\Extbase\Domain\Model\FrontendUser\$firstName
‪string $firstName
Definition: FrontendUser.php:44
‪TYPO3\CMS\Extbase\Domain\Model\FrontendUser\getLockToDomain
‪string getLockToDomain()
Definition: FrontendUser.php:386
‪TYPO3\CMS\Extbase\Domain\Model\FrontendUser\setWww
‪setWww($www)
Definition: FrontendUser.php:476
‪TYPO3\CMS\Extbase\Domain\Model\FrontendUser\$lockToDomain
‪string $lockToDomain
Definition: FrontendUser.php:72
‪TYPO3\CMS\Extbase\Domain\Model\FrontendUser\$name
‪string $name
Definition: FrontendUser.php:40
‪TYPO3\CMS\Extbase\Domain\Model\FrontendUser\setLastlogin
‪setLastlogin(\DateTime $lastlogin)
Definition: FrontendUser.php:536
‪TYPO3\CMS\Extbase\Domain\Model\FrontendUser\setCompany
‪setCompany($company)
Definition: FrontendUser.php:496
‪TYPO3\CMS\Extbase\Domain\Model\FrontendUser\getTitle
‪string getTitle()
Definition: FrontendUser.php:406
‪TYPO3\CMS\Extbase\Domain\Model\FrontendUser\setMiddleName
‪setMiddleName($middleName)
Definition: FrontendUser.php:256
‪TYPO3\CMS\Extbase\Domain\Model\FrontendUser\getEmail
‪string getEmail()
Definition: FrontendUser.php:366