Interface CustomerInputValidatorInterface

Interface CustomerInputValidatorInterface

Direct known implementers

CustomerInputValidator

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 validateStreet( string $p_street ) : boolean

Checks if the entered street is valid.

public validatePostcode( string $p_postcode ) : boolean

Checks if the entered postcode is valid.

public validateCity( string $p_city ) : boolean

Checks if the entered city is valid.

public validateCountry( integer $p_countryId ) : boolean

Checks if the entered country exists.

public validateSuburb( $p_suburb ) : boolean

Checks if the entered suburb is valid.

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 getErrorMessages( void ) : array

Returns error messages.

public getErrorMessageCollection( void ) : EditableKeyValueCollection

Returns a collection of error messages.

public getErrorStatus( void ) : boolean

Returns the error status.

public validatePrivacy( string $p_privacyAccepted ) : boolean

Checks if the user has accepted the privacy policy.