CustomerInputToCollectionTransformer
in package
Class CustomerInputToCollectionTransformer
Tags
Table of Contents
- ANTI_SPAM_ELEMENT_NAME = 'ae6b85682663ab4570bd10c67b83d21fe77cdf97'
- sha1 sum of string "anti spam"
- getGuestCollectionFromInputArray() : EditableKeyValueCollection
- getRegistreeCollectionFromInputArray() : EditableKeyValueCollection
- _getCustomerAddonValuesFromInputArray() : EditableKeyValueCollection
- Add the addon values to the customer collection.
- _getCustomerCollectionFromInputArray() : EditableKeyValueCollection
Constants
ANTI_SPAM_ELEMENT_NAME
sha1 sum of string "anti spam"
private
mixed
ANTI_SPAM_ELEMENT_NAME
= 'ae6b85682663ab4570bd10c67b83d21fe77cdf97'
Methods
getGuestCollectionFromInputArray()
public
getGuestCollectionFromInputArray(array<string|int, mixed> $inputArray, CountryServiceInterface $countryService) : EditableKeyValueCollection
Parameters
- $inputArray : array<string|int, mixed>
- $countryService : CountryServiceInterface
Return values
EditableKeyValueCollection —getRegistreeCollectionFromInputArray()
public
getRegistreeCollectionFromInputArray(array<string|int, mixed> $inputArray, CountryServiceInterface $countryService) : EditableKeyValueCollection
Parameters
- $inputArray : array<string|int, mixed>
- $countryService : CountryServiceInterface
Return values
EditableKeyValueCollection —_getCustomerAddonValuesFromInputArray()
Add the addon values to the customer collection.
protected
_getCustomerAddonValuesFromInputArray(array<string|int, mixed> $inputArray) : EditableKeyValueCollection
Overload this method to extract your additional customer's data from the given input array ($_POST) to consider them while validation and registration process.
Parameters
- $inputArray : array<string|int, mixed>
Return values
EditableKeyValueCollection —_getCustomerCollectionFromInputArray()
protected
_getCustomerCollectionFromInputArray(array<string|int, mixed> $inputArray, CountryServiceInterface $countryService) : EditableKeyValueCollection
Parameters
- $inputArray : array<string|int, mixed>
- $countryService : CountryServiceInterface