Overview
  • Package
  • Class
  • Tree
  • Todo

Packages

  • AddonValue
    • Interfaces
  • ApiV2Controllers
  • Category
    • Collections
    • Entities
    • Factories
    • Interfaces
    • Providers
    • Repositories
    • Storages
  • Customer
    • Address
    • Country
    • CountryZone
    • Interfaces
    • Validation
    • ValueObjects
  • Email
    • Collections
    • Entities
    • Exceptions
    • Interfaces
    • Repository
    • ValueObjects
  • Http
    • Collections
    • Exceptions
    • Factories
    • Interfaces
    • ValueObjects
  • Loaders
    • CrossCuttingLoader
    • GXCoreLoader
    • Interfaces
  • None
  • Order
    • Collections
    • Entities
    • Factories
    • Interfaces
    • Repositories
    • Storages
    • ValueObjects
  • Product
    • Collections
    • Entities
    • Factories
    • Interfaces
    • Providers
    • Repositories
    • Storages
  • ProductModule
    • Collections
    • Deleter
    • Entities
    • Factories
    • Interface
    • Interfaces
    • Reader
    • Repositories
    • Writer
  • Shared
    • Exceptions
    • FileSystem
    • Interfaces
    • Storage
    • Types
  • Statistics
    • Interfaces
  • UserConfiguration
    • Interfaces
    • Repository

Classes

  • AbstractCustomerFactory

Interfaces

  • AddressBlockInterface
  • AddressBookServiceInterface
  • AddressClassInterface
  • CountryServiceInterface
  • CustomerAccountInputValidatorInterface
  • CustomerAddressDeleterInterface
  • CustomerAddressInputValidatorInterface
  • CustomerAddressInterface
  • CustomerAddressReaderInterface
  • CustomerAddressRepositoryInterface
  • CustomerAddressWriterInterface
  • CustomerB2BStatusInterface
  • CustomerCallNumberInterface
  • CustomerCityInterface
  • CustomerCompanyInterface
  • CustomerCountryInterface
  • CustomerCountryIso2Interface
  • CustomerCountryIso3Interface
  • CustomerCountryNameInterface
  • CustomerCountryReaderInterface
  • CustomerCountryRepositoryInterface
  • CustomerCountryZoneInterface
  • CustomerCountryZoneIsoCodeInterface
  • CustomerCountryZoneNameInterface
  • CustomerCountryZoneReaderInterface
  • CustomerCountryZoneRepositoryInterface
  • CustomerDeleterInterface
  • CustomerEmailInterface
  • CustomerFirstnameInterface
  • CustomerGenderInterface
  • CustomerInputValidatorInterface
  • CustomerInputValidatorSettingsInterface
  • CustomerInterface
  • CustomerLastnameInterface
  • CustomerNumberInterface
  • CustomerPasswordInterface
  • CustomerPostcodeInterface
  • CustomerReaderInterface
  • CustomerReadServiceInterface
  • CustomerRegistrationInputValidatorServiceInterface
  • CustomerRepositoryInterface
  • CustomerServiceInterface
  • CustomerServiceSettingsInterface
  • CustomerStreetInterface
  • CustomerSuburbInterface
  • CustomerVatNumberInterface
  • CustomerWriterInterface
  • CustomerWriteServiceInterface
  • VatNumberValidatorInterface

Interface CustomerInputValidatorInterface

Interface CustomerInputValidatorInterface

Direct known implementers

CustomerInputValidator

Indirect known implementers

CustomerAccountInputValidator, CustomerAddressInputValidator, CustomerRegistrationInputValidatorService

Package: Customer\Interfaces
Category: System
Located at CoreServices/Customer/Interfaces/CustomerInputValidatorInterface.inc.php

Methods summary

public boolean
# validateGender( string $p_gender )

Checks if the entered customer's gender is valid.

Checks if the entered customer's gender is valid.

Parameters

$p_gender
Customer's gender.

Returns

boolean
Is valid?
public boolean
# validateFirstname( string $p_firstname )

Checks if the entered customer's first name is valid.

Checks if the entered customer's first name is valid.

Parameters

$p_firstname
Customer's first name.

Returns

boolean
Is valid?
public boolean
# validateLastname( string $p_lastname )

Checks if the entered customer's last name is valid.

Checks if the entered customer's last name is valid.

Parameters

$p_lastname
Customer's last name.

Returns

boolean
Is valid?
public boolean
# validateDateOfBirth( string $p_dateOfBirth )

Checks if the entered customer's date of birth is valid. Valid format is: dd.mm.yyyy

Checks if the entered customer's date of birth is valid. Valid format is: dd.mm.yyyy

Parameters

$p_dateOfBirth
Customer's date of birth.

Returns

boolean
Is valid?
public boolean
# validateCompany( string $p_company )

Checks if the entered customer's company is valid.

Checks if the entered customer's company is valid.

Parameters

$p_company
Customer's company.

Returns

boolean
Is valid?
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.

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.

Parameters

$p_email
Customer's E-Mail address.
$p_emailConfirmation
Confirmation E-Mail address.

Returns

boolean
Is valid?
public boolean
# validateEmail( string $p_email )

Checks if the entered email is valid.

Checks if the entered email is valid.

Parameters

$p_email
Customer's E-Mail address.

Returns

boolean
Is valid?
public boolean
# validateEmailExists( string $p_email, CustomerInterface $customer = null )

Checks if the entered email already exists.

Checks if the entered email already exists.

Parameters

$p_email
Customer's E-Mail address-
$customer
Customer.

Returns

boolean
Is valid?
public boolean
# validateStreet( string $p_street )

Checks if the entered street is valid.

Checks if the entered street is valid.

Parameters

$p_street
Customer's street.

Returns

boolean
Is valid?
public boolean
# validatePostcode( string $p_postcode )

Checks if the entered postcode is valid.

Checks if the entered postcode is valid.

Parameters

$p_postcode
Customer's post code.

Returns

boolean
Is valid?
public boolean
# validateCity( string $p_city )

Checks if the entered city is valid.

Checks if the entered city is valid.

Parameters

$p_city
Customer's city.

Returns

boolean
Is valid?
public boolean
# validateCountry( integer $p_countryId )

Checks if the entered country exists.

Checks if the entered country exists.

Parameters

$p_countryId
Customer's country ID.

Returns

boolean
Is valid?
public boolean
# validateSuburb( $p_suburb )

Checks if the entered suburb is valid.

Checks if the entered suburb is valid.

Parameters

$p_suburb
suburb.

Returns

boolean
Is valid?
public boolean
# validateCountryZone( $p_countryZoneName, $p_countryId )

Checks if the entered country zone is valid.

Checks if the entered country zone is valid.

Cases: - If country has zones: It checks if zone belongs to country. - If country does not contain zones: It checks the minimum length of zone name.

Parameters

$p_countryZoneName
country zone name.
$p_countryId
country ID.

Returns

boolean
Is valid?
public boolean
# validateTelephoneNumber( string $p_telephoneNumber )

Checks if the entered telephone number is valid.

Checks if the entered telephone number is valid.

Parameters

$p_telephoneNumber
Customer's telephone number.

Returns

boolean
Is valid?
public boolean
# validatePassword( string $p_password, string $p_passwordConfirmation )

Checks if the entered password is valid.

Checks if the entered password is valid.

Parameters

$p_password
Customer's password.
$p_passwordConfirmation
Customer's password confirmation.

Returns

boolean
Is valid?
public array
# getErrorMessages( )

Returns error messages.

Returns error messages.

Returns

array
Error messages.
public EditableKeyValueCollection
# getErrorMessageCollection( )

Returns a collection of error messages.

Returns a collection of error messages.

Returns

EditableKeyValueCollection
Collection of error messages.
public boolean
# getErrorStatus( )

Returns the error status.

Returns the error status.

Returns

boolean
Error status.
API documentation generated by ApiGen