2 namespace TYPO3\CMS\Extbase\Domain\Model
;
5 * This file is part of the TYPO3 CMS project.
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.
11 * For the full copyright and license information, please read the
12 * LICENSE.txt file that was distributed with this source code.
14 * The TYPO3 project - inspiring people to share!
22 class FrontendUser
extends \TYPO3\CMS\Extbase\DomainObject\AbstractEntity
27 protected $username = '';
32 protected $password = '';
35 * @var \TYPO3\CMS\Extbase\Persistence\ObjectStorage<\TYPO3\CMS\Extbase\Domain\Model\FrontendUserGroup>
47 protected $firstName = '';
52 protected $middleName = '';
57 protected $lastName = '';
62 protected $address = '';
67 protected $telephone = '';
77 protected $email = '';
82 protected $lockToDomain = '';
87 protected $title = '';
102 protected $country = '';
112 protected $company = '';
115 * @var \TYPO3\CMS\Extbase\Persistence\ObjectStorage<\TYPO3\CMS\Extbase\Domain\Model\FileReference>
117 protected $image = null
;
120 * @var \DateTime|null
122 protected $lastlogin = null
;
125 * Constructs a new Front-End User
127 * @param string $username
128 * @param string $password
131 public function __construct($username = '', $password = '')
133 $this->username
= $username;
134 $this->password
= $password;
135 $this->usergroup
= new \TYPO3\CMS\Extbase\Persistence\
ObjectStorage();
139 * Sets the username value
141 * @param string $username
144 public function setUsername($username)
146 $this->username
= $username;
150 * Returns the username value
155 public function getUsername()
157 return $this->username
;
161 * Sets the password value
163 * @param string $password
166 public function setPassword($password)
168 $this->password
= $password;
172 * Returns the password value
177 public function getPassword()
179 return $this->password
;
183 * Sets the usergroups. Keep in mind that the property is called "usergroup"
184 * although it can hold several usergroups.
186 * @param \TYPO3\CMS\Extbase\Persistence\ObjectStorage $usergroup
189 public function setUsergroup(\TYPO3\CMS\Extbase\Persistence\ObjectStorage
$usergroup)
191 $this->usergroup
= $usergroup;
195 * Adds a usergroup to the frontend user
197 * @param \TYPO3\CMS\Extbase\Domain\Model\FrontendUserGroup $usergroup
200 public function addUsergroup(\TYPO3\CMS\Extbase\Domain\Model\FrontendUserGroup
$usergroup)
202 $this->usergroup
->attach($usergroup);
206 * Removes a usergroup from the frontend user
208 * @param \TYPO3\CMS\Extbase\Domain\Model\FrontendUserGroup $usergroup
211 public function removeUsergroup(\TYPO3\CMS\Extbase\Domain\Model\FrontendUserGroup
$usergroup)
213 $this->usergroup
->detach($usergroup);
217 * Returns the usergroups. Keep in mind that the property is called "usergroup"
218 * although it can hold several usergroups.
220 * @return \TYPO3\CMS\Extbase\Persistence\ObjectStorage An object storage containing the usergroup
223 public function getUsergroup()
225 return $this->usergroup
;
229 * Sets the name value
231 * @param string $name
234 public function setName($name)
240 * Returns the name value
245 public function getName()
251 * Sets the firstName value
253 * @param string $firstName
256 public function setFirstName($firstName)
258 $this->firstName
= $firstName;
262 * Returns the firstName value
267 public function getFirstName()
269 return $this->firstName
;
273 * Sets the middleName value
275 * @param string $middleName
278 public function setMiddleName($middleName)
280 $this->middleName
= $middleName;
284 * Returns the middleName value
289 public function getMiddleName()
291 return $this->middleName
;
295 * Sets the lastName value
297 * @param string $lastName
300 public function setLastName($lastName)
302 $this->lastName
= $lastName;
306 * Returns the lastName value
311 public function getLastName()
313 return $this->lastName
;
317 * Sets the address value
319 * @param string $address
322 public function setAddress($address)
324 $this->address
= $address;
328 * Returns the address value
333 public function getAddress()
335 return $this->address
;
339 * Sets the telephone value
341 * @param string $telephone
344 public function setTelephone($telephone)
346 $this->telephone
= $telephone;
350 * Returns the telephone value
355 public function getTelephone()
357 return $this->telephone
;
366 public function setFax($fax)
372 * Returns the fax value
377 public function getFax()
383 * Sets the email value
385 * @param string $email
388 public function setEmail($email)
390 $this->email
= $email;
394 * Returns the email value
399 public function getEmail()
405 * Sets the lockToDomain value
407 * @param string $lockToDomain
410 public function setLockToDomain($lockToDomain)
412 $this->lockToDomain
= $lockToDomain;
416 * Returns the lockToDomain value
421 public function getLockToDomain()
423 return $this->lockToDomain
;
427 * Sets the title value
429 * @param string $title
432 public function setTitle($title)
434 $this->title
= $title;
438 * Returns the title value
443 public function getTitle()
454 public function setZip($zip)
460 * Returns the zip value
465 public function getZip()
471 * Sets the city value
473 * @param string $city
476 public function setCity($city)
482 * Returns the city value
487 public function getCity()
493 * Sets the country value
495 * @param string $country
498 public function setCountry($country)
500 $this->country
= $country;
504 * Returns the country value
509 public function getCountry()
511 return $this->country
;
520 public function setWww($www)
526 * Returns the www value
531 public function getWww()
537 * Sets the company value
539 * @param string $company
542 public function setCompany($company)
544 $this->company
= $company;
548 * Returns the company value
553 public function getCompany()
555 return $this->company
;
559 * Sets the image value
562 * @param \TYPO3\CMS\Extbase\Persistence\ObjectStorage $image
564 public function setImage(\TYPO3\CMS\Extbase\Persistence\ObjectStorage
$image)
566 $this->image
= $image;
570 * Gets the image value
573 * @return \TYPO3\CMS\Extbase\Persistence\ObjectStorage
575 public function getImage()
581 * Sets the lastlogin value
583 * @param \DateTime $lastlogin
586 public function setLastlogin(\DateTime
$lastlogin)
588 $this->lastlogin
= $lastlogin;
592 * Returns the lastlogin value
597 public function getLastlogin()
599 return $this->lastlogin
;