CRM_Mailing_Event_BAO_MailingEventResubscribe
in package
Class CRM_Mailing_Event_BAO_MailingEventResubscribe
Table of Contents
Methods
- resub_to_mailing() : array<string|int, mixed>|null
- Resubscribe a contact to the groups, he/she was unsubscribed from.
- send_resub_response() : mixed
- Send a response email informing the contact of the groups to which he/she has been resubscribed.
Methods
resub_to_mailing()
Resubscribe a contact to the groups, he/she was unsubscribed from.
public
static & resub_to_mailing(int $job_id, int $queue_id, string $hash) : array<string|int, mixed>|null
Parameters
- $job_id : int
-
The job ID.
- $queue_id : int
-
The Queue Event ID of the recipient.
- $hash : string
-
The hash.
Return values
array<string|int, mixed>|null —$groups Array of all groups to which the contact was added, or null if the queue event could not be found.
send_resub_response()
Send a response email informing the contact of the groups to which he/she has been resubscribed.
public
static send_resub_response(string $queue_id, array<string|int, mixed> $groups, int $job) : mixed
Parameters
- $queue_id : string
-
The queue event ID.
- $groups : array<string|int, mixed>
-
List of group IDs.
- $job : int
-
The job ID.