GroupSubscriptionProcessor
Table of Contents
Properties
- $doubleOptin : bool
- Toggle behavior of confirming subscriptions via email.
Methods
- getDoubleOptin() : bool
- getEnabledGroups() : array<string|int, mixed>
- setDoubleOptin() : mixed
- writeRecord() : array<string|int, mixed>
- Function to process groups
- getContactPrimaryEmail() : string|null
- Function to get contact primary email
- saveGroupStatus() : void
- Add or update groupContact status
- triggerDoubleOptin() : void
- Function to trigger double optin process
Properties
$doubleOptin
Toggle behavior of confirming subscriptions via email.
protected
bool
$doubleOptin
= TRUE
Methods
getDoubleOptin()
public
getDoubleOptin() : bool
Return values
boolgetEnabledGroups()
public
static getEnabledGroups() : array<string|int, mixed>
Return values
array<string|int, mixed>setDoubleOptin()
public
setDoubleOptin(bool $doubleOptin) : mixed
Parameters
- $doubleOptin : bool
writeRecord()
Function to process groups
protected
writeRecord(array<string|int, mixed> $submittedData) : array<string|int, mixed>
Parameters
- $submittedData : array<string|int, mixed>
Return values
array<string|int, mixed>getContactPrimaryEmail()
Function to get contact primary email
private
static getContactPrimaryEmail(int $contactId) : string|null
Parameters
- $contactId : int
Return values
string|nullsaveGroupStatus()
Add or update groupContact status
private
static saveGroupStatus(int $contactId, string $groupName, string $status, string $method, string|null $tracking) : void
Parameters
- $contactId : int
- $groupName : string
- $status : string
- $method : string
- $tracking : string|null
triggerDoubleOptin()
Function to trigger double optin process
private
static triggerDoubleOptin(int $contactId, string $groupName, string $email) : void
Parameters
- $contactId : int
- $groupName : string
- $email : string