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

  • CustomerAccountInputValidator
  • CustomerInputValidator
  • CustomerRegistrationInputValidatorService
  • VatNumberValidator

Class CustomerRegistrationInputValidatorService

Class CustomerRegistrationInputValidatorService

This class is used for validating customer input while registration

CustomerInputValidator implements CustomerInputValidatorInterface
Extended by CustomerRegistrationInputValidatorService implements CustomerRegistrationInputValidatorServiceInterface
Package: Customer\Validation
Category: System
Extends: CustomerInputValidator
Implements: CustomerRegistrationInputValidatorServiceInterface
Located at CoreServices/Customer/CustomerRegistrationInputValidatorService.inc.php

Methods summary

public boolean
# validateCustomerDataByArray( array $inputArray )

Validates the entered customer data with an array of parameters.

Validates the entered customer data with an array of parameters.

Expects array with following keys: - gender - firstname - lastname - dob (date of birth) - company - email_address - email_address_confirm - postcode - city - country - state (ID or name) - telephone - vat - password - confirmation

Parameters

$inputArray
Customer data input.

Returns

boolean
Is customer data valid?

Implementation of

CustomerRegistrationInputValidatorServiceInterface::validateCustomerDataByArray()
public boolean
# validateGuestDataByArray( array $inputArray )

Validate the entered guest data with an array of parameters.

Validate the entered guest data with an array of parameters.

expects array with following keys: - gender - firstname - lastname - dob (date of birth) - company - email_address - email_address_confirm - postcode - city - country - state (ID or name) - telephone - vat

Parameters

$inputArray
Guest customer data input.

Returns

boolean
Is guest customer data valid?

Implementation of

CustomerRegistrationInputValidatorServiceInterface::validateGuestDataByArray()
protected boolean
# _validateDataByArray( array $inputArray )

Checks if the entered data is valid.

Checks if the entered data is valid.

Expects an array with the following keys: - gender - firstname - lastname - dob (date of birth) - company - email_address - suburb - email_address_confirm - postcode - city - country - state (ID or name) - telephone - fax - vat

Parameters

$inputArray
Customer Input array.

Returns

boolean
Is customer data valid?

Methods inherited from CustomerInputValidator

__construct(), getErrorMessageCollection(), getErrorMessages(), getErrorStatus(), validateCity(), validateCompany(), validateCountry(), validateCountryZone(), validateDateOfBirth(), validateEmail(), validateEmailAndConfirmation(), validateEmailExists(), validateFaxNumber(), validateFirstname(), validateGender(), validateLastname(), validatePassword(), validatePostcode(), validateStreet(), validateSuburb(), validateTelephoneNumber(), validateVatNumber()

Properties summary

Properties inherited from CustomerInputValidator

$countryService, $customerCountryRepository, $customerCountryZoneRepository, $customerService, $errorMessageCollection, $errorStatus, $settings, $vatNumberValidator

API documentation generated by ApiGen