CustomerInputValidatorSettings

Implements \CustomerInputValidatorSettingsInterface

Value Object

Class CustomerInputValidatorSettings

CustomerInputValidatorSettings stores all min length values and error messages for registration form validation

category

System

package

Customer

subpackage

ValueObjects

implements

CustomerInputValidatorSettingsInterface

Methods

Constructor of the class CustomerInputValidatorSettings.

__construct(\CustomerConfigurationSettings $configuration, \CustomerDisplaySettings $displaySettings, \CustomerMinLengthSettings $minLengthSettings, \CustomerMaxLengthSettings $maxLengthSettings, \CustomerErrorMessageSettings $errorMessages) 

Arguments

$configuration

\CustomerConfigurationSettings

Hold configuration settings.

$displaySettings

\CustomerDisplaySettings

Hold display settings.

$minLengthSettings

\CustomerMinLengthSettings

Hold min length configuration settings.

$maxLengthSettings

\CustomerMaxLengthSettings

Hold max length configuration settings.

$errorMessages

\CustomerErrorMessageSettings

Hold messages for validation errors.

Retrieves state value of displaying privacy checkbox

getAcceptPrivacy() : boolean

Response

boolean

Display privacy checkbox?

Returns the maximum required call number character length.

getCallNumberMaxLength() : integer

Response

integer

Maximum required call number character length.

Returns a city error message.

getCityErrorMessage() : string

Response

string

City error message.

Returns the maximum required city character length.

getCityMaxLength() : integer

Response

integer

Maximum required city character length.

Returns the minimum required city character length.

getCityMinLength() : integer

Response

integer

City Minimum required city character length.

Returns a company error message.

getCompanyErrorMessage() : string

Response

string

Company error message.

Returns the maximum required company character length.

getCompanyMaxLength() : integer

Response

integer

Maximum required company character length.

Returns the minimum required company character length.

getCompanyMinLength() : integer

Response

integer

Minimum required company character length.

Returns a country error message.

getCountryErrorMessage() : string

Response

string

Country error message.

Returns a country zone error message.

getCountryZoneErrorMessage() : string

Response

string

Country zone error message.

Returns the maximum required country zone character length.

getCountryZoneMaxLength() : integer

Response

integer

Maximum required country zone character length.

Returns the minimum required country zone character length.

getCountryZoneMinLength() : integer

Response

integer

Minimum required country zone character length.

Returns a country zone selection error message.

getCountryZoneSelectionErrorMessage() : string

Response

string

Country zone selection error message.

Returns a date of birth error message.

getDateOfBirthErrorMessage() : string

Response

string

Date of birth error message.

Returns the minimum required date of birth character length.

getDateOfBirthMinLength() : integer

Response

integer

Minimum required date of birth character length.

Retrieves state value of company displaying.

getDisplayCompany() : boolean

Response

boolean

Display company?

Retrieves state value of country displaying.

getDisplayCountryZone() : boolean

Response

boolean

Display country?

Retrieves state value of date of birth displaying.

getDisplayDateOfBirth() : boolean

Response

boolean

Display date of birth?

Retrieves state value of fax displaying

getDisplayFax() : boolean

Response

boolean

Display fax?

Retrieves state value of gender displaying.

getDisplayGender() : boolean

Response

boolean

Display gender?

Retrieves state value of suburb displaying

getDisplaySuburb() : boolean

Response

boolean

Display suburb?

Retrieves state value of telephone number displaying

getDisplayTelephone() : boolean

Response

boolean

Display telephone number?

Returns an email address check error message.

getEmailAddressCheckErrorMessage() : string

Response

string

Email address check error message.

Returns an email confirmation error message.

getEmailConfirmationErrorMessage() : string

Response

string

Email confirmation error message.

Returns an email error message.

getEmailErrorMessage() : string

Response

string

Email error message.

Returns an email exists error message.

getEmailExistsErrorMessage() : string

Response

string

Email exists error message.

Returns the minimum required email character length.

getEmailMinLength() : integer

Response

integer

Minimum required email character length.

Returns a first name error message.

getFirstnameErrorMessage() : string

Response

string

First name error message.

Returns the maximum required first name character length.

getFirstnameMaxLength() : integer

Response

integer

Maximum required first name character length.

Returns the minimum required first name character length.

getFirstnameMinLength() : integer

Response

integer

Minimum required first name character length.

Returns a gender error message.

getGenderErrorMessage() : string

Response

string

Gender error message.

Returns a house number error message.

getHouseNumberErrorMessage() : string

Response

string

house number error message.

Returns the maximum required house number character length.

getHouseNumberMaxLength() : integer

Response

integer

Maximum required house number character length.

Returns the minimum required house number character length.

getHouseNumberMinLength() : integer

Response

integer

Minimum required house number character length.

Returns an invalid input error message.

getInvalidInputErrorMessage() : string

Response

string

Invalid input error message.

Returns a last name error message.

getLastnameErrorMessage() : string

Response

string

Last name error message.

Returns the maximum required last name character length.

getLastnameMaxLength() : integer

Response

integer

Maximum required last name character length.

Returns the minimum required last name character length.

getLastnameMinLength() : integer

Response

integer

Minimum required last name character length.

Returns a password error message.

getPasswordErrorMessage() : string

Response

string

Password error message.

Returns the minimum required password character length.

getPasswordMinLength() : integer

Response

integer

Minimum required password character length.

Returns a password mismatch error message.

getPasswordMismatchErrorMessage() : string

Response

string

Password mismatch error message.

Returns a post code error message.

getPostcodeErrorMessage() : string

Response

string

Post code error message.

Returns the maximum required post code character length.

getPostcodeMaxLength() : integer

Response

integer

Maximum required post code character length.

Returns the minimum required post code character length.

getPostcodeMinLength() : integer

Response

integer

Minimum required post code character length.

Returns a privacy not accepted error message.

getPrivacyErrorMessage() : string

Response

string

Privacy not accepted error message.

Returns a street error message.

getStreetErrorMessage() : string

Response

string

Street error message.

Returns the maximum required street character length.

getStreetMaxLength() : integer

Response

integer

Maximum required street character length.

Returns the minimum required street character length.

getStreetMinLength() : integer

Response

integer

Minimum required street character length.

Returns the maximum required suburb character length.

getSuburbMaxLength() : integer

Response

integer

Maximum required suburb character length.

Returns a telephone number error message.

getTelephoneNumberErrorMessage() : string

Response

string

Telephone number error message.

Returns the minimum required telephone number character length.

getTelephoneNumberMinLength() : integer

Response

integer

Minimum required telephone number character length.

Returns a VAT number error message.

getVatNumberErrorMessage() : string

Response

string

VAT number error message.

Returns the maximum required VAT number character length.

getVatNumberMaxLength() : integer

Response

integer

Maximum required VAT number character length.

isGenderMandatory

isGenderMandatory() : boolean

Response

boolean

isNamesOptional

isNamesOptional() : boolean

Response

boolean

Returns true if street and house number is split

isStreetInformationenSplit() : boolean

Response

boolean

Returns true if street and house number is split

isThirdGenerationTemplate() : boolean

Response

boolean

Properties

configuration

configuration : \CustomerConfigurationSettings

display

display : \CustomerDisplaySettings

minLength

minLength : \CustomerMinLengthSettings

maxLength

maxLength : \CustomerMaxLengthSettings

errorMessages

errorMessages : \CustomerErrorMessageSettings