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