TYPO3 CMS  TYPO3_8-7
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 
23 {
27  protected $username = '';
28 
32  protected $password = '';
33 
37  protected $usergroup;
38 
42  protected $name = '';
43 
47  protected $firstName = '';
48 
52  protected $middleName = '';
53 
57  protected $lastName = '';
58 
62  protected $address = '';
63 
67  protected $telephone = '';
68 
72  protected $fax = '';
73 
77  protected $email = '';
78 
82  protected $lockToDomain = '';
83 
87  protected $title = '';
88 
92  protected $zip = '';
93 
97  protected $city = '';
98 
102  protected $country = '';
103 
107  protected $www = '';
108 
112  protected $company = '';
113 
117  protected $image = null;
118 
122  protected $lastlogin = null;
123 
131  public function __construct($username = '', $password = '')
132  {
133  $this->username = $username;
134  $this->password = $password;
135  $this->usergroup = new \TYPO3\CMS\Extbase\Persistence\ObjectStorage();
136  }
137 
144  public function setUsername($username)
145  {
146  $this->username = $username;
147  }
148 
155  public function getUsername()
156  {
157  return $this->username;
158  }
159 
166  public function setPassword($password)
167  {
168  $this->password = $password;
169  }
170 
177  public function getPassword()
178  {
179  return $this->password;
180  }
181 
189  public function setUsergroup(\TYPO3\CMS\Extbase\Persistence\ObjectStorage $usergroup)
190  {
191  $this->usergroup = $usergroup;
192  }
193 
200  public function addUsergroup(\TYPO3\CMS\Extbase\Domain\Model\FrontendUserGroup $usergroup)
201  {
202  $this->usergroup->attach($usergroup);
203  }
204 
211  public function removeUsergroup(\TYPO3\CMS\Extbase\Domain\Model\FrontendUserGroup $usergroup)
212  {
213  $this->usergroup->detach($usergroup);
214  }
215 
223  public function getUsergroup()
224  {
225  return $this->usergroup;
226  }
227 
234  public function setName($name)
235  {
236  $this->name = $name;
237  }
238 
245  public function getName()
246  {
247  return $this->name;
248  }
249 
256  public function setFirstName($firstName)
257  {
258  $this->firstName = $firstName;
259  }
260 
267  public function getFirstName()
268  {
269  return $this->firstName;
270  }
271 
278  public function setMiddleName($middleName)
279  {
280  $this->middleName = $middleName;
281  }
282 
289  public function getMiddleName()
290  {
291  return $this->middleName;
292  }
293 
300  public function setLastName($lastName)
301  {
302  $this->lastName = $lastName;
303  }
304 
311  public function getLastName()
312  {
313  return $this->lastName;
314  }
315 
322  public function setAddress($address)
323  {
324  $this->address = $address;
325  }
326 
333  public function getAddress()
334  {
335  return $this->address;
336  }
337 
344  public function setTelephone($telephone)
345  {
346  $this->telephone = $telephone;
347  }
348 
355  public function getTelephone()
356  {
357  return $this->telephone;
358  }
359 
366  public function setFax($fax)
367  {
368  $this->fax = $fax;
369  }
370 
377  public function getFax()
378  {
379  return $this->fax;
380  }
381 
388  public function setEmail($email)
389  {
390  $this->email = $email;
391  }
392 
399  public function getEmail()
400  {
401  return $this->email;
402  }
403 
411  {
412  $this->lockToDomain = $lockToDomain;
413  }
414 
421  public function getLockToDomain()
422  {
423  return $this->lockToDomain;
424  }
425 
432  public function setTitle($title)
433  {
434  $this->title = $title;
435  }
436 
443  public function getTitle()
444  {
445  return $this->title;
446  }
447 
454  public function setZip($zip)
455  {
456  $this->zip = $zip;
457  }
458 
465  public function getZip()
466  {
467  return $this->zip;
468  }
469 
476  public function setCity($city)
477  {
478  $this->city = $city;
479  }
480 
487  public function getCity()
488  {
489  return $this->city;
490  }
491 
498  public function setCountry($country)
499  {
500  $this->country = $country;
501  }
502 
509  public function getCountry()
510  {
511  return $this->country;
512  }
513 
520  public function setWww($www)
521  {
522  $this->www = $www;
523  }
524 
531  public function getWww()
532  {
533  return $this->www;
534  }
535 
542  public function setCompany($company)
543  {
544  $this->company = $company;
545  }
546 
553  public function getCompany()
554  {
555  return $this->company;
556  }
557 
564  public function setImage(\TYPO3\CMS\Extbase\Persistence\ObjectStorage $image)
565  {
566  $this->image = $image;
567  }
568 
575  public function getImage()
576  {
577  return $this->image;
578  }
579 
586  public function setLastlogin(\DateTime $lastlogin)
587  {
588  $this->lastlogin = $lastlogin;
589  }
590 
597  public function getLastlogin()
598  {
599  return $this->lastlogin;
600  }
601 }
setImage(\TYPO3\CMS\Extbase\Persistence\ObjectStorage $image)
setUsergroup(\TYPO3\CMS\Extbase\Persistence\ObjectStorage $usergroup)
removeUsergroup(\TYPO3\CMS\Extbase\Domain\Model\FrontendUserGroup $usergroup)
addUsergroup(\TYPO3\CMS\Extbase\Domain\Model\FrontendUserGroup $usergroup)
__construct($username='', $password='')