Class CustomerInputValidator
Class CustomerInputValidator
Validator class that checks the entered user data.
- CustomerInputValidator implements CustomerInputValidatorInterface
Direct known subclasses
CustomerAccountInputValidator,
CustomerAddressInputValidator,
CustomerRegistrationInputValidatorService
Category: System
Implements: CustomerInputValidatorInterface
Located at Services/Core/Customer/CustomerInputValidator.inc.php
Methods summary
public
|
#
__construct(
Constructor of the class CustomerInputValidator. |
public
boolean
|
|
public
boolean
|
|
public
boolean
|
|
public
boolean
|
#
validateDateOfBirth( string $p_dateOfBirth )
Checks if the entered customer's date of birth is valid. Valid format is: dd.mm.yyyy |
public
boolean
|
|
public
boolean
|
#
validateVatNumber( string $p_vatNumber, integer $p_countryId, boolean $p_isGuest )
Checks if the entered parameters are in a valid format. |
public
boolean
|
#
validateEmailAndConfirmation( string $p_email, string $p_emailConfirmation )
Checks if the entered email and email confirmation are valid. It will check the minimum length, address syntax, confirmation matching and existence of e-mail address. |
public
boolean
|
|
public
boolean
|
#
validateEmailExists( string $p_email,
Checks if the entered email already exists. |
public
boolean
|
|
public
boolean
|
|
public
boolean
|
|
public
boolean
|
|
public
boolean
|
|
public
boolean
|
|
public
boolean
|
|
public
boolean
|
#
validateTelephoneNumber( string $p_telephoneNumber )
Checks if the entered telephone number is valid. |
public
boolean
|
|
public
boolean
|
#
validatePassword( string $p_password, string $p_passwordConfirmation )
Checks if the entered password is valid. |
public
boolean
|
|
public
boolean
|
#
validateAddonValues(
Checks if the entered additional values are valid. |
public
array
|
|
public
|
|
public
boolean
|
Properties summary
protected
|
$customerCountryRepository
Customer country repository. |
|
protected
|
$customerCountryZoneRepository
Customer country zone repository. |
|
protected
|
$customerService
Customer service. |
|
protected
|
$countryService
Country service. |
|
protected
|
$settings
Customer input validator settings. |
|
protected
|
$vatNumberValidator
VAT number validator. |
|
protected
|
$errorMessageCollection
Error message collection. |
|
protected
boolean
|
$errorStatus
Error status. |
#
false
|