Documentation

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

Methods

getEnabledGroups()

public static getEnabledGroups() : array<string|int, mixed>
Return values
array<string|int, mixed>

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|null

saveGroupStatus()

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

        
On this page

Search results