‪TYPO3CMS  11.5
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 
27 {
31  protected ‪$username = '';
32 
36  protected ‪$password = '';
37 
41  protected ‪$usergroup;
42 
46  protected ‪$name = '';
47 
51  protected ‪$firstName = '';
52 
56  protected ‪$middleName = '';
57 
61  protected ‪$lastName = '';
62 
66  protected ‪$address = '';
67 
71  protected ‪$telephone = '';
72 
76  protected ‪$fax = '';
77 
81  protected ‪$email = '';
82 
86  protected ‪$title = '';
87 
91  protected ‪$zip = '';
92 
96  protected ‪$city = '';
97 
101  protected ‪$country = '';
102 
106  protected ‪$www = '';
107 
111  protected ‪$company = '';
112 
116  protected ‪$image;
117 
121  protected ‪$lastlogin;
122 
129  public function ‪__construct(‪$username = '', ‪$password = '')
130  {
131  $this->username = ‪$username;
132  $this->password = ‪$password;
133  $this->usergroup = new ‪ObjectStorage();
134  $this->image = new ‪ObjectStorage();
135  }
136 
140  public function ‪initializeObject()
141  {
142  $this->usergroup = $this->usergroup ?? new ‪ObjectStorage();
143  $this->image = $this->image ?? new ‪ObjectStorage();
144  }
145 
151  public function ‪setUsername(‪$username)
152  {
153  $this->username = ‪$username;
154  }
155 
161  public function ‪getUsername()
162  {
163  return ‪$this->username;
164  }
165 
171  public function ‪setPassword(‪$password)
172  {
173  $this->password = ‪$password;
174  }
175 
181  public function ‪getPassword()
182  {
184  }
185 
193  {
194  $this->usergroup = ‪$usergroup;
195  }
196 
203  {
204  $this->usergroup->attach(‪$usergroup);
205  }
206 
213  {
214  $this->usergroup->detach(‪$usergroup);
215  }
216 
223  public function ‪getUsergroup()
224  {
225  return ‪$this->usergroup;
226  }
227 
233  public function ‪setName(‪$name)
234  {
235  $this->name = ‪$name;
236  }
237 
243  public function ‪getName()
244  {
245  return ‪$this->name;
246  }
247 
253  public function ‪setFirstName(‪$firstName)
254  {
255  $this->firstName = ‪$firstName;
256  }
257 
263  public function ‪getFirstName()
264  {
265  return ‪$this->firstName;
266  }
267 
273  public function ‪setMiddleName(‪$middleName)
274  {
275  $this->middleName = ‪$middleName;
276  }
277 
283  public function ‪getMiddleName()
284  {
285  return ‪$this->middleName;
286  }
287 
293  public function ‪setLastName(‪$lastName)
294  {
295  $this->lastName = ‪$lastName;
296  }
297 
303  public function ‪getLastName()
304  {
305  return ‪$this->lastName;
306  }
307 
313  public function ‪setAddress(‪$address)
314  {
315  $this->address = ‪$address;
316  }
317 
323  public function ‪getAddress()
324  {
325  return ‪$this->address;
326  }
327 
333  public function ‪setTelephone(‪$telephone)
334  {
335  $this->telephone = ‪$telephone;
336  }
337 
343  public function ‪getTelephone()
344  {
345  return ‪$this->telephone;
346  }
347 
353  public function ‪setFax(‪$fax)
354  {
355  $this->fax = ‪$fax;
356  }
357 
363  public function ‪getFax()
364  {
365  return ‪$this->fax;
366  }
367 
373  public function ‪setEmail(‪$email)
374  {
375  $this->email = ‪$email;
376  }
377 
383  public function ‪getEmail()
384  {
385  return ‪$this->email;
386  }
387 
393  public function ‪setTitle(‪$title)
394  {
395  $this->title = ‪$title;
396  }
397 
403  public function ‪getTitle()
404  {
405  return ‪$this->title;
406  }
407 
413  public function ‪setZip(‪$zip)
414  {
415  $this->zip = ‪$zip;
416  }
417 
423  public function ‪getZip()
424  {
425  return ‪$this->zip;
426  }
427 
433  public function ‪setCity(‪$city)
434  {
435  $this->city = ‪$city;
436  }
437 
443  public function ‪getCity()
444  {
445  return ‪$this->city;
446  }
447 
453  public function ‪setCountry(‪$country)
454  {
455  $this->country = ‪$country;
456  }
457 
463  public function ‪getCountry()
464  {
465  return ‪$this->country;
466  }
467 
473  public function ‪setWww(‪$www)
474  {
475  $this->www = ‪$www;
476  }
477 
483  public function ‪getWww()
484  {
485  return ‪$this->www;
486  }
487 
493  public function ‪setCompany(‪$company)
494  {
495  $this->company = ‪$company;
496  }
497 
503  public function ‪getCompany()
504  {
505  return ‪$this->company;
506  }
507 
513  public function ‪setImage(‪ObjectStorage ‪$image)
514  {
515  $this->image = ‪$image;
516  }
517 
523  public function ‪getImage()
524  {
525  return ‪$this->image;
526  }
527 
533  public function ‪setLastlogin(\DateTime ‪$lastlogin)
534  {
535  $this->lastlogin = ‪$lastlogin;
536  }
537 
543  public function ‪getLastlogin()
544  {
545  return ‪$this->lastlogin;
546  }
547 }
‪TYPO3\CMS\Extbase\Domain\Model\FrontendUser\setEmail
‪setEmail($email)
Definition: FrontendUser.php:354
‪TYPO3\CMS\Extbase\Domain\Model\FrontendUser\getFirstName
‪string getFirstName()
Definition: FrontendUser.php:244
‪TYPO3\CMS\Extbase\Domain\Model\FrontendUser\$country
‪string $country
Definition: FrontendUser.php:86
‪TYPO3\CMS\Extbase\Domain\Model\FrontendUser\getImage
‪ObjectStorage< FileReference > getImage()
Definition: FrontendUser.php:504
‪TYPO3\CMS\Extbase\Domain\Model\FrontendUser\removeUsergroup
‪removeUsergroup(FrontendUserGroup $usergroup)
Definition: FrontendUser.php:193
‪TYPO3\CMS\Extbase\Domain\Model\FrontendUser\$title
‪string $title
Definition: FrontendUser.php:74
‪TYPO3\CMS\Extbase\Domain\Model\FrontendUser\getCountry
‪string getCountry()
Definition: FrontendUser.php:444
‪TYPO3\CMS\Extbase\Domain\Model\FrontendUser\$company
‪string $company
Definition: FrontendUser.php:94
‪TYPO3\CMS\Extbase\Domain\Model\FrontendUser\getUsergroup
‪ObjectStorage< FrontendUserGroup > getUsergroup()
Definition: FrontendUser.php:204
‪TYPO3\CMS\Extbase\Domain\Model\FrontendUser\getTelephone
‪string getTelephone()
Definition: FrontendUser.php:324
‪TYPO3\CMS\Extbase\Domain\Model\FrontendUser\addUsergroup
‪addUsergroup(FrontendUserGroup $usergroup)
Definition: FrontendUser.php:183
‪TYPO3\CMS\Extbase\Domain\Model\FrontendUser\setFirstName
‪setFirstName($firstName)
Definition: FrontendUser.php:234
‪TYPO3\CMS\Extbase\Domain\Model\FrontendUser\setCountry
‪setCountry($country)
Definition: FrontendUser.php:434
‪TYPO3\CMS\Extbase\Domain\Model\FrontendUser\getFax
‪string getFax()
Definition: FrontendUser.php:344
‪TYPO3\CMS\Extbase\Domain\Model\FrontendUser\getName
‪string getName()
Definition: FrontendUser.php:224
‪TYPO3\CMS\Extbase\Domain\Model\FrontendUser\$zip
‪string $zip
Definition: FrontendUser.php:78
‪TYPO3\CMS\Extbase\Domain\Model\FrontendUser\$city
‪string $city
Definition: FrontendUser.php:82
‪TYPO3\CMS\Extbase\Domain\Model\FrontendUser\$address
‪string $address
Definition: FrontendUser.php:58
‪TYPO3\CMS\Extbase\Domain\Model\FrontendUser\setLastName
‪setLastName($lastName)
Definition: FrontendUser.php:274
‪TYPO3\CMS\Extbase\Domain\Model\FrontendUser\$lastName
‪string $lastName
Definition: FrontendUser.php:54
‪TYPO3\CMS\Extbase\DomainObject\AbstractEntity
Definition: AbstractEntity.php:22
‪TYPO3\CMS\Extbase\Domain\Model\FrontendUser\$fax
‪string $fax
Definition: FrontendUser.php:66
‪TYPO3\CMS\Extbase\Domain\Model\FrontendUser\$www
‪string $www
Definition: FrontendUser.php:90
‪TYPO3\CMS\Extbase\Domain\Model\FrontendUser\getPassword
‪string getPassword()
Definition: FrontendUser.php:162
‪TYPO3\CMS\Extbase\Persistence\ObjectStorage
Definition: ObjectStorage.php:32
‪TYPO3\CMS\Extbase\Domain\Model\FrontendUser\$telephone
‪string $telephone
Definition: FrontendUser.php:62
‪TYPO3\CMS\Extbase\Domain\Model\FrontendUser\setImage
‪setImage(ObjectStorage $image)
Definition: FrontendUser.php:494
‪TYPO3\CMS\Extbase\Domain\Model\FrontendUser\getAddress
‪string getAddress()
Definition: FrontendUser.php:304
‪TYPO3\CMS\Extbase\Domain\Model\FrontendUser\setTelephone
‪setTelephone($telephone)
Definition: FrontendUser.php:314
‪TYPO3\CMS\Extbase\Domain\Model\FrontendUser\__construct
‪__construct($username='', $password='')
Definition: FrontendUser.php:110
‪TYPO3\CMS\Extbase\Domain\Model\FrontendUser\$usergroup
‪ObjectStorage< FrontendUserGroup > $usergroup
Definition: FrontendUser.php:38
‪TYPO3\CMS\Extbase\Domain\Model\FrontendUser\getWww
‪string getWww()
Definition: FrontendUser.php:464
‪TYPO3\CMS\Extbase\Domain\Model\FrontendUser\setFax
‪setFax($fax)
Definition: FrontendUser.php:334
‪TYPO3\CMS\Extbase\Domain\Model\FrontendUser\setAddress
‪setAddress($address)
Definition: FrontendUser.php:294
‪TYPO3\CMS\Extbase\Domain\Model\FrontendUser\getMiddleName
‪string getMiddleName()
Definition: FrontendUser.php:264
‪TYPO3\CMS\Extbase\Domain\Model\FrontendUser\initializeObject
‪initializeObject()
Definition: FrontendUser.php:121
‪TYPO3\CMS\Extbase\Domain\Model\FrontendUser\getCompany
‪string getCompany()
Definition: FrontendUser.php:484
‪TYPO3\CMS\Extbase\Domain\Model\FrontendUser\setUsername
‪setUsername($username)
Definition: FrontendUser.php:132
‪TYPO3\CMS\Extbase\Domain\Model\FrontendUser\$email
‪string $email
Definition: FrontendUser.php:70
‪TYPO3\CMS\Extbase\Domain\Model\FrontendUser\getCity
‪string getCity()
Definition: FrontendUser.php:424
‪TYPO3\CMS\Extbase\Domain\Model\FrontendUser\setPassword
‪setPassword($password)
Definition: FrontendUser.php:152
‪TYPO3\CMS\Extbase\Domain\Model\FrontendUser\getUsername
‪string getUsername()
Definition: FrontendUser.php:142
‪TYPO3\CMS\Extbase\Domain\Model\FrontendUser\$middleName
‪string $middleName
Definition: FrontendUser.php:50
‪TYPO3\CMS\Extbase\Domain\Model\FrontendUser\getZip
‪string getZip()
Definition: FrontendUser.php:404
‪TYPO3\CMS\Extbase\Domain\Model\FrontendUser\$lastlogin
‪DateTime null $lastlogin
Definition: FrontendUser.php:102
‪TYPO3\CMS\Extbase\Domain\Model\FrontendUser\setCity
‪setCity($city)
Definition: FrontendUser.php:414
‪TYPO3\CMS\Extbase\Domain\Model\FrontendUser\setTitle
‪setTitle($title)
Definition: FrontendUser.php:374
‪TYPO3\CMS\Extbase\Domain\Model\FrontendUser\$username
‪string $username
Definition: FrontendUser.php:30
‪TYPO3\CMS\Extbase\Domain\Model\FrontendUserGroup
Definition: FrontendUserGroup.php:27
‪TYPO3\CMS\Extbase\Domain\Model\FrontendUser\getLastName
‪string getLastName()
Definition: FrontendUser.php:284
‪TYPO3\CMS\Extbase\Domain\Model\FrontendUser\$image
‪ObjectStorage< FileReference > $image
Definition: FrontendUser.php:98
‪TYPO3\CMS\Extbase\Domain\Model\FrontendUser\$password
‪string $password
Definition: FrontendUser.php:34
‪TYPO3\CMS\Extbase\Domain\Model\FrontendUser\setUsergroup
‪setUsergroup(ObjectStorage $usergroup)
Definition: FrontendUser.php:173
‪TYPO3\CMS\Extbase\Domain\Model
Definition: AbstractFileFolder.php:16
‪TYPO3\CMS\Extbase\Domain\Model\FrontendUser\getLastlogin
‪DateTime getLastlogin()
Definition: FrontendUser.php:524
‪TYPO3\CMS\Extbase\Domain\Model\FrontendUser
Definition: FrontendUser.php:27
‪TYPO3\CMS\Extbase\Domain\Model\FrontendUser\setZip
‪setZip($zip)
Definition: FrontendUser.php:394
‪TYPO3\CMS\Extbase\Domain\Model\FrontendUser\setName
‪setName($name)
Definition: FrontendUser.php:214
‪TYPO3\CMS\Extbase\Domain\Model\FrontendUser\$firstName
‪string $firstName
Definition: FrontendUser.php:46
‪TYPO3\CMS\Extbase\Domain\Model\FrontendUser\setWww
‪setWww($www)
Definition: FrontendUser.php:454
‪TYPO3\CMS\Extbase\Domain\Model\FrontendUser\$name
‪string $name
Definition: FrontendUser.php:42
‪TYPO3\CMS\Extbase\Domain\Model\FrontendUser\setLastlogin
‪setLastlogin(\DateTime $lastlogin)
Definition: FrontendUser.php:514
‪TYPO3\CMS\Extbase\Domain\Model\FrontendUser\setCompany
‪setCompany($company)
Definition: FrontendUser.php:474
‪TYPO3\CMS\Extbase\Domain\Model\FrontendUser\getTitle
‪string getTitle()
Definition: FrontendUser.php:384
‪TYPO3\CMS\Extbase\Domain\Model\FrontendUser\setMiddleName
‪setMiddleName($middleName)
Definition: FrontendUser.php:254
‪TYPO3\CMS\Extbase\Domain\Model\FrontendUser\getEmail
‪string getEmail()
Definition: FrontendUser.php:364