FormAddressCreator
in package
Table of Contents
- $_pFieldsCollectionBuilderShort : FieldsCollectionBuilderShort
- $_pSDKWrapper : SDKWrapper
- __construct() : mixed
- createOrCompleteAddress() : int
- getAddressDataForEmail() : array<string|int, mixed>
- getAddressDataForApiCall() : array<string|int, mixed>
Properties
$_pFieldsCollectionBuilderShort
private
FieldsCollectionBuilderShort
$_pFieldsCollectionBuilderShort
$_pSDKWrapper
private
SDKWrapper
$_pSDKWrapper
Methods
__construct()
public
__construct(SDKWrapper $pSDKWrapper, FieldsCollectionBuilderShort $pFieldsCollectionBuilderShort) : mixed
Parameters
- $pSDKWrapper : SDKWrapper
- $pFieldsCollectionBuilderShort : FieldsCollectionBuilderShort
Return values
mixed —createOrCompleteAddress()
public
createOrCompleteAddress(FormData $pFormData[, bool $mergeExisting = false ][, string $contactType = '' ]) : int
Parameters
- $pFormData : FormData
- $mergeExisting : bool = false
- $contactType : string = ''
Tags
Return values
int —the new (or updated) address ID
getAddressDataForEmail()
public
getAddressDataForEmail(FormData $pFormData) : array<string|int, mixed>
Parameters
- $pFormData : FormData
Tags
Return values
array<string|int, mixed> —getAddressDataForApiCall()
private
getAddressDataForApiCall(FormData $pFormData) : array<string|int, mixed>
Parameters
- $pFormData : FormData