CustomerInputValidatorSettings
in package
implements
CustomerInputValidatorSettingsInterface
Value Object
Class CustomerInputValidatorSettings
CustomerInputValidatorSettings stores all min length values and error messages for registration form validation
Tags
Interfaces, Classes and Traits
- CustomerInputValidatorSettingsInterface
- Value Object.
Table of Contents
- $configuration : CustomerConfigurationSettings
- $display : CustomerDisplaySettings
- $errorMessages : CustomerErrorMessageSettings
- $maxLength : CustomerMaxLengthSettings
- $minLength : CustomerMinLengthSettings
- __construct() : mixed
- Constructor of the class CustomerInputValidatorSettings.
- getAcceptPrivacy() : bool
- Retrieves state value of displaying privacy checkbox
- getCallNumberMaxLength() : int
- Returns the maximum required call number character length.
- getCityErrorMessage() : string
- Returns a city error message.
- getCityMaxLength() : int
- Returns the maximum required city character length.
- getCityMinLength() : int
- Returns the minimum required city character length.
- getCompanyErrorMessage() : string
- Returns a company error message.
- getCompanyMaxLength() : int
- Returns the maximum required company character length.
- getCompanyMinLength() : int
- Returns the minimum required company character length.
- getCountryErrorMessage() : string
- Returns a country error message.
- getCountryZoneErrorMessage() : string
- Returns a country zone error message.
- getCountryZoneMaxLength() : int
- Returns the maximum required country zone character length.
- getCountryZoneMinLength() : int
- Returns the minimum required country zone character length.
- getCountryZoneSelectionErrorMessage() : string
- Returns a country zone selection error message.
- getDateOfBirthErrorMessage() : string
- Returns a date of birth error message.
- getDateOfBirthMinLength() : int
- Returns the minimum required date of birth character length.
- getDisplayCompany() : bool
- Retrieves state value of company displaying.
- getDisplayCountryZone() : bool
- Retrieves state value of country displaying.
- getDisplayDateOfBirth() : bool
- Retrieves state value of date of birth displaying.
- getDisplayFax() : bool
- Retrieves state value of fax displaying
- getDisplayGender() : bool
- Retrieves state value of gender displaying.
- getDisplaySuburb() : bool
- Retrieves state value of suburb displaying
- getDisplayTelephone() : bool
- Retrieves state value of telephone number displaying
- getEmailAddressCheckErrorMessage() : string
- Returns an email address check error message.
- getEmailConfirmationErrorMessage() : string
- Returns an email confirmation error message.
- getEmailErrorMessage() : string
- Returns an email error message.
- getEmailExistsErrorMessage() : string
- Returns an email exists error message.
- getEmailMinLength() : int
- Returns the minimum required email character length.
- getFirstnameErrorMessage() : string
- Returns a first name error message.
- getFirstnameMaxLength() : int
- Returns the maximum required first name character length.
- getFirstnameMinLength() : int
- Returns the minimum required first name character length.
- getGenderErrorMessage() : string
- Returns a gender error message.
- getHouseNumberErrorMessage() : string
- Returns a house number error message.
- getHouseNumberMaxLength() : int
- Returns the maximum required house number character length.
- getHouseNumberMinLength() : int
- Returns the minimum required house number character length.
- getInvalidInputErrorMessage() : string
- Returns an invalid input error message.
- getLastnameErrorMessage() : string
- Returns a last name error message.
- getLastnameMaxLength() : int
- Returns the maximum required last name character length.
- getLastnameMinLength() : int
- Returns the minimum required last name character length.
- getPasswordErrorMessage() : string
- Returns a password error message.
- getPasswordMinLength() : int
- Returns the minimum required password character length.
- getPasswordMismatchErrorMessage() : string
- Returns a password mismatch error message.
- getPostcodeErrorMessage() : string
- Returns a post code error message.
- getPostcodeMaxLength() : int
- Returns the maximum required post code character length.
- getPostcodeMinLength() : int
- Returns the minimum required post code character length.
- getPrivacyErrorMessage() : string
- Returns a privacy not accepted error message.
- getStreetErrorMessage() : string
- Returns a street error message.
- getStreetMaxLength() : int
- Returns the maximum required street character length.
- getStreetMinLength() : int
- Returns the minimum required street character length.
- getSuburbMaxLength() : int
- Returns the maximum required suburb character length.
- getTelephoneNumberErrorMessage() : string
- Returns a telephone number error message.
- getTelephoneNumberMinLength() : int
- Returns the minimum required telephone number character length.
- getVatNumberErrorMessage() : string
- Returns a VAT number error message.
- getVatNumberMaxLength() : int
- Returns the maximum required VAT number character length.
- isGenderMandatory() : bool
- isNamesOptional() : bool
- isStreetInformationenSplit() : bool
- Returns true if street and house number is split
- isThirdGenerationTemplate() : bool
- Returns true if street and house number is split
Properties
$configuration
protected
CustomerConfigurationSettings
$configuration
$display
protected
CustomerDisplaySettings
$display
$errorMessages
protected
CustomerErrorMessageSettings
$errorMessages
$maxLength
protected
CustomerMaxLengthSettings
$maxLength
$minLength
protected
CustomerMinLengthSettings
$minLength
Methods
__construct()
Constructor of the class CustomerInputValidatorSettings.
public
__construct(CustomerConfigurationSettings $configuration, CustomerDisplaySettings $displaySettings, CustomerMinLengthSettings $minLengthSettings, CustomerMaxLengthSettings $maxLengthSettings, CustomerErrorMessageSettings $errorMessages) : mixed
Parameters
- $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.
Return values
mixed —getAcceptPrivacy()
Retrieves state value of displaying privacy checkbox
public
getAcceptPrivacy() : bool
Return values
bool —Display privacy checkbox?
getCallNumberMaxLength()
Returns the maximum required call number character length.
public
getCallNumberMaxLength() : int
Return values
int —Maximum required call number character length.
getCityErrorMessage()
Returns a city error message.
public
getCityErrorMessage() : string
Return values
string —City error message.
getCityMaxLength()
Returns the maximum required city character length.
public
getCityMaxLength() : int
Return values
int —Maximum required city character length.
getCityMinLength()
Returns the minimum required city character length.
public
getCityMinLength() : int
Return values
int —City Minimum required city character length.
getCompanyErrorMessage()
Returns a company error message.
public
getCompanyErrorMessage() : string
Return values
string —Company error message.
getCompanyMaxLength()
Returns the maximum required company character length.
public
getCompanyMaxLength() : int
Return values
int —Maximum required company character length.
getCompanyMinLength()
Returns the minimum required company character length.
public
getCompanyMinLength() : int
Return values
int —Minimum required company character length.
getCountryErrorMessage()
Returns a country error message.
public
getCountryErrorMessage() : string
Return values
string —Country error message.
getCountryZoneErrorMessage()
Returns a country zone error message.
public
getCountryZoneErrorMessage() : string
Return values
string —Country zone error message.
getCountryZoneMaxLength()
Returns the maximum required country zone character length.
public
getCountryZoneMaxLength() : int
Return values
int —Maximum required country zone character length.
getCountryZoneMinLength()
Returns the minimum required country zone character length.
public
getCountryZoneMinLength() : int
Return values
int —Minimum required country zone character length.
getCountryZoneSelectionErrorMessage()
Returns a country zone selection error message.
public
getCountryZoneSelectionErrorMessage() : string
Return values
string —Country zone selection error message.
getDateOfBirthErrorMessage()
Returns a date of birth error message.
public
getDateOfBirthErrorMessage() : string
Return values
string —Date of birth error message.
getDateOfBirthMinLength()
Returns the minimum required date of birth character length.
public
getDateOfBirthMinLength() : int
Return values
int —Minimum required date of birth character length.
getDisplayCompany()
Retrieves state value of company displaying.
public
getDisplayCompany() : bool
Return values
bool —Display company?
getDisplayCountryZone()
Retrieves state value of country displaying.
public
getDisplayCountryZone() : bool
Return values
bool —Display country?
getDisplayDateOfBirth()
Retrieves state value of date of birth displaying.
public
getDisplayDateOfBirth() : bool
Return values
bool —Display date of birth?
getDisplayFax()
Retrieves state value of fax displaying
public
getDisplayFax() : bool
Return values
bool —Display fax?
getDisplayGender()
Retrieves state value of gender displaying.
public
getDisplayGender() : bool
Return values
bool —Display gender?
getDisplaySuburb()
Retrieves state value of suburb displaying
public
getDisplaySuburb() : bool
Return values
bool —Display suburb?
getDisplayTelephone()
Retrieves state value of telephone number displaying
public
getDisplayTelephone() : bool
Return values
bool —Display telephone number?
getEmailAddressCheckErrorMessage()
Returns an email address check error message.
public
getEmailAddressCheckErrorMessage() : string
Return values
string —Email address check error message.
getEmailConfirmationErrorMessage()
Returns an email confirmation error message.
public
getEmailConfirmationErrorMessage() : string
Return values
string —Email confirmation error message.
getEmailErrorMessage()
Returns an email error message.
public
getEmailErrorMessage() : string
Return values
string —Email error message.
getEmailExistsErrorMessage()
Returns an email exists error message.
public
getEmailExistsErrorMessage() : string
Return values
string —Email exists error message.
getEmailMinLength()
Returns the minimum required email character length.
public
getEmailMinLength() : int
Return values
int —Minimum required email character length.
getFirstnameErrorMessage()
Returns a first name error message.
public
getFirstnameErrorMessage() : string
Return values
string —First name error message.
getFirstnameMaxLength()
Returns the maximum required first name character length.
public
getFirstnameMaxLength() : int
Return values
int —Maximum required first name character length.
getFirstnameMinLength()
Returns the minimum required first name character length.
public
getFirstnameMinLength() : int
Return values
int —Minimum required first name character length.
getGenderErrorMessage()
Returns a gender error message.
public
getGenderErrorMessage() : string
Return values
string —Gender error message.
getHouseNumberErrorMessage()
Returns a house number error message.
public
getHouseNumberErrorMessage() : string
Return values
string —house number error message.
getHouseNumberMaxLength()
Returns the maximum required house number character length.
public
getHouseNumberMaxLength() : int
Return values
int —Maximum required house number character length.
getHouseNumberMinLength()
Returns the minimum required house number character length.
public
getHouseNumberMinLength() : int
Return values
int —Minimum required house number character length.
getInvalidInputErrorMessage()
Returns an invalid input error message.
public
getInvalidInputErrorMessage() : string
Return values
string —Invalid input error message.
getLastnameErrorMessage()
Returns a last name error message.
public
getLastnameErrorMessage() : string
Return values
string —Last name error message.
getLastnameMaxLength()
Returns the maximum required last name character length.
public
getLastnameMaxLength() : int
Return values
int —Maximum required last name character length.
getLastnameMinLength()
Returns the minimum required last name character length.
public
getLastnameMinLength() : int
Return values
int —Minimum required last name character length.
getPasswordErrorMessage()
Returns a password error message.
public
getPasswordErrorMessage() : string
Return values
string —Password error message.
getPasswordMinLength()
Returns the minimum required password character length.
public
getPasswordMinLength() : int
Return values
int —Minimum required password character length.
getPasswordMismatchErrorMessage()
Returns a password mismatch error message.
public
getPasswordMismatchErrorMessage() : string
Return values
string —Password mismatch error message.
getPostcodeErrorMessage()
Returns a post code error message.
public
getPostcodeErrorMessage() : string
Return values
string —Post code error message.
getPostcodeMaxLength()
Returns the maximum required post code character length.
public
getPostcodeMaxLength() : int
Return values
int —Maximum required post code character length.
getPostcodeMinLength()
Returns the minimum required post code character length.
public
getPostcodeMinLength() : int
Return values
int —Minimum required post code character length.
getPrivacyErrorMessage()
Returns a privacy not accepted error message.
public
getPrivacyErrorMessage() : string
Return values
string —Privacy not accepted error message.
getStreetErrorMessage()
Returns a street error message.
public
getStreetErrorMessage() : string
Return values
string —Street error message.
getStreetMaxLength()
Returns the maximum required street character length.
public
getStreetMaxLength() : int
Return values
int —Maximum required street character length.
getStreetMinLength()
Returns the minimum required street character length.
public
getStreetMinLength() : int
Return values
int —Minimum required street character length.
getSuburbMaxLength()
Returns the maximum required suburb character length.
public
getSuburbMaxLength() : int
Return values
int —Maximum required suburb character length.
getTelephoneNumberErrorMessage()
Returns a telephone number error message.
public
getTelephoneNumberErrorMessage() : string
Return values
string —Telephone number error message.
getTelephoneNumberMinLength()
Returns the minimum required telephone number character length.
public
getTelephoneNumberMinLength() : int
Return values
int —Minimum required telephone number character length.
getVatNumberErrorMessage()
Returns a VAT number error message.
public
getVatNumberErrorMessage() : string
Return values
string —VAT number error message.
getVatNumberMaxLength()
Returns the maximum required VAT number character length.
public
getVatNumberMaxLength() : int
Return values
int —Maximum required VAT number character length.
isGenderMandatory()
public
isGenderMandatory() : bool
Return values
bool —isNamesOptional()
public
isNamesOptional() : bool
Return values
bool —isStreetInformationenSplit()
Returns true if street and house number is split
public
isStreetInformationenSplit() : bool
Return values
bool —isThirdGenerationTemplate()
Returns true if street and house number is split
public
isThirdGenerationTemplate() : bool