Interface CustomerInputValidatorInterface
Interface CustomerInputValidatorInterface
Direct known implementers
Indirect known implementers
CustomerAccountInputValidator,
CustomerAddressInputValidator,
CustomerRegistrationInputValidatorService
Category: System
Located at Services/Core/Customer/Interfaces/CustomerInputValidatorInterface.inc.php
Methods summary
public
validateGender( string $p_gender )
: boolean
Checks if the entered customer's gender is valid.
public
validateFirstname( string $p_firstname )
: boolean
Checks if the entered customer's first name is valid.
public
validateLastname( string $p_lastname )
: boolean
Checks if the entered customer's last name is valid.
public
validateDateOfBirth( string $p_dateOfBirth )
: boolean
Checks if the entered customer's date of birth is valid. Valid format is: dd.mm.yyyy
public
validateCompany( string $p_company )
: boolean
Checks if the entered customer's company is valid.
public
validateEmailAndConfirmation( string $p_email, string $p_emailConfirmation )
: boolean
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
validateEmail( string $p_email, mixed $p_emailAddressCheck = false )
: boolean
Checks if the entered email is valid.
public
validateEmailExists( string $p_email, CustomerInterface $customer = null )
: boolean
Checks if the entered email already exists.
public
validateCountryZone( $p_countryZoneName, $p_countryId )
: boolean
Checks if the entered country zone is valid.
public
validateTelephoneNumber( string $p_telephoneNumber )
: boolean
Checks if the entered telephone number is valid.
public
validatePassword( string $p_password, string $p_passwordConfirmation )
: boolean
Checks if the entered password is valid.
public
getErrorMessageCollection( void )
: EditableKeyValueCollection
Returns a collection of error messages.
public
validatePrivacy( string $p_privacyAccepted )
: boolean
Checks if the user has accepted the privacy policy.