Domain Model¶
FrontendUser
domain model contains the following properties that are validated with annotation.
The validation rule for a property is specified based on the appropriate fe_users
table field description.
Some properties have been renamed to clarify what data are stored in them.
For more information about mapping between a database table and its model
see Use arbitrary database tables with an Extbase model.
username¶
/**
* Username
*
* @var string
* @Extbase\Validate("NotEmpty")
* @Extbase\Validate("StringLength", options={"maximum": 255})
* @Extbase\Validate("Text")
*/
protected $username;
password¶
/**
* Password
*
* @var string
*/
protected $password;
passwordConfirmation¶
/**
* Password confirmation
*
* @var string
* @Extbase\ORM\Transient
*/
protected $passwordConfirmation;
userGroups¶
usergroup
field in fe_users
table that stores a comma-separated list of user groups.
/**
* Frontend user groups
*
* @var ObjectStorage<FrontendUserGroup>
*/
protected $userGroups;
company¶
/**
* Company
*
* @var string
* @Extbase\Validate("StringLength", options={"maximum": 80})
* @Extbase\Validate("Text")
*/
protected $company;
jobTitle¶
title
field in fe_users
table.
/**
* Job title
*
* @var string
* @Extbase\Validate("StringLength", options={"maximum": 40})
* @Extbase\Validate("Text")
*/
protected $jobTitle;
name¶
/**
* Name
*
* @var string
* @Extbase\Validate("StringLength", options={"maximum": 160})
* @Extbase\Validate("Text")
*/
protected $name;
firstName¶
/**
* First name
*
* @var string
* @Extbase\Validate("StringLength", options={"maximum": 50})
* @Extbase\Validate("Text")
*/
protected $firstName;
middleName¶
/**
* Middle name
*
* @var string
* @Extbase\Validate("StringLength", options={"maximum": 50})
* @Extbase\Validate("Text")
*/
protected $middleName;
lastName¶
/**
* Last name
*
* @var string
* @Extbase\Validate("StringLength", options={"maximum": 50})
* @Extbase\Validate("Text")
*/
protected $lastName;
streetAddress¶
address
field in fe_users
table.
/**
* Street address
*
* @var string
* @Extbase\Validate("StringLength", options={"maximum": 255})
* @Extbase\Validate("Text")
*/
protected $streetAddress;
zipCode¶
zip
field in fe_users
table.
/**
* Zip code
*
* @var string
* @Extbase\Validate("StringLength", options={"maximum": 10})
* @Extbase\Validate("AlphanumericValidator")
*/
protected $zipCode;
city¶
/**
* City
*
* @var string
* @Extbase\Validate("StringLength", options={"maximum": 50})
* @Extbase\Validate("Text")
*/
protected $city;
country¶
/**
* Country
*
* @var string
* @Extbase\Validate("StringLength", options={"maximum": 40})
* @Extbase\Validate("Text")
*/
protected $country;
phone¶
telephone
field in fe_users
table. See Phone Validator (Phone).
/**
* Phone
*
* @var string
* @Extbase\Validate("StringLength", options={"maximum": 30})
* @Extbase\Validate("Ydt\FrontendUser\Domain\Validator\PhoneValidator")
*/
protected $phone;
fax¶
/**
* Fax
*
* @var string
* @Extbase\Validate("StringLength", options={"maximum": 30})
* @Extbase\Validate("Ydt\FrontendUser\Validation\Validator\DigitValidator")
*/
protected $fax;
email¶
/**
* Email
*
* @var string
* @Extbase\Validate("StringLength", options={"maximum": 255})
* @Extbase\Validate("EmailAddress")
*/
protected $email;
url¶
url
field in fe_users
table.
/**
* Homepage url
*
* @var string
* @Extbase\Validate("StringLength", options={"maximum": 80})
* @Extbase\Validate("Text")
* @Extbase\Validate("Url")
*/
protected $url;
images¶
/**
* Images
*
* @var ObjectStorage<FileReference>
*/
protected $images;
lastLogin¶
lastlogin
field in fe_users
table that stores the timestamp of last login date and time.
/**
* Last login
*
* @var DateTime|null
*/
protected $lastLogin;