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() 

Set minimum length values and error messages texts from constants. Set maximum length values from DB field length.

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 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.

isNamesOptional

isNamesOptional() : boolean

Response

boolean

Properties

Customer's first name minimum length.

firstnameMinLength : integer
var

Type(s)

integer

Customer's last name minimum length.

lastnameMinLength : integer
var

Type(s)

integer

Customer's date of birth minimum length.

dateOfBirthMinLength : integer
var

Type(s)

integer

Customer's E-Mail address minimum length.

emailMinLength : integer
var

Type(s)

integer

Customer's street minimum length.

streetMinLength : integer
var

Type(s)

integer

Customer's company minimum length.

companyMinLength : integer
var

Type(s)

integer

Customer's post code minimum length.

postcodeMinLength : integer
var

Type(s)

integer

Customer's city minimum length.

cityMinLength : integer
var

Type(s)

integer

Customer's country zone minimum length.

countryZoneMinLength : integer
var

Type(s)

integer

Customer's telephone number minimum length.

telephoneNumberMinLength : integer
var

Type(s)

integer

Customer's password minimum length.

passwordMinLength : integer
var

Type(s)

integer

Customer's gender error message.

genderErrorMessage : string
var

Type(s)

string

Customer's first name error message.

firstnameErrorMessage : string
var

Type(s)

string

Customer's last name error message.

lastnameErrorMessage : string
var

Type(s)

string

Customer's date of birth error message.

dateOfBirthErrorMessage : string
var

Type(s)

string

Customer's company error message.

companyErrorMessage : string
var

Type(s)

string

Customer's VAT number error message.

vatNumberErrorMessage : string
var

Type(s)

string

Customer's E-Mail address error message.

emailErrorMessage : string
var

Type(s)

string

Customer's E-Mail address check error message.

emailAddressCheckErrorMessage : string
var

Type(s)

string

Customer's E-Mail address confirmation error message.

emailConfirmationErrorMessage : string
var

Type(s)

string

Customer's E-Mail address already exists error message.

emailExistsErrorMessage : string
var

Type(s)

string

Customer's street error message.

streetErrorMessage : string
var

Type(s)

string

Customer's post code error message.

postcodeErrorMessage : string
var

Type(s)

string

Customer's city error message.

cityErrorMessage : string
var

Type(s)

string

Customer's country error message.

countryErrorMessage : string
var

Type(s)

string

Customer's country zone selection error message.

countryZoneSelectionErrorMessage : string
var

Type(s)

string

Customer's country tone error message.

countryZoneErrorMessage : string
var

Type(s)

string

Customer's telephone number error message.

telephoneNumberErrorMessage : string
var

Type(s)

string

Customer's password error message.

passwordErrorMessage : string
var

Type(s)

string

Customer's password mismatch error message.

passwordMismatchErrorMessage : string
var

Type(s)

string

Customer's input error error message.

invalidInputErrorMessage : string
var

Type(s)

string

Customer's privacy policy error message.

privacyErrorMessage : string
var

Type(s)

string

Display customer's gender?

displayGender : boolean
var

Type(s)

boolean

Display customer's date of birth?

displayDateOfBirth : boolean
var

Type(s)

boolean

Display customer's company?

displayCompany : boolean
var

Type(s)

boolean

Display customer's country zone?

displayCountryZone : boolean
var

Type(s)

boolean

Display customer's telephone number?

displayTelephone : boolean
var

Type(s)

boolean

Display customer's fax number?

displayFax : boolean
var

Type(s)

boolean

Display customer's suburb?

displaySuburb : boolean
var

Type(s)

boolean

Customer's first name maximum length.

firstnameMaxLength : integer
var

Type(s)

integer

Customer's last name maximum length.

lastnameMaxLength : integer
var

Type(s)

integer

Customer's company maximum length.

companyMaxLength : integer
var

Type(s)

integer

Customer's VAT number maximum length.

vatNumberMaxLength : integer
var

Type(s)

integer

Customer's street maximum length.

streetMaxLength : integer
var

Type(s)

integer

Customer's post code maximum length.

postcodeMaxLength : integer
var

Type(s)

integer

Customer's city maximum length.

cityMaxLength : integer
var

Type(s)

integer

Customer's country zone maximum length.

countryZoneMaxLength : integer
var

Type(s)

integer

Customer's suburb maximum length.

suburbMaxLength : integer
var

Type(s)

integer

Customer's call number maximum length.

callNumberMaxLength : integer
var

Type(s)

integer

Status if customer has to accept privacy policy.

acceptPrivacy : boolean
var

Type(s)

boolean

namesOptional

namesOptional : boolean
var

Type(s)

boolean