Handle storing and processing delayed emails.
More...
Handle storing and processing delayed emails.
- Since
- 4.0
Definition at line 22 of file DelayedEmailService.php.
Create a new service.
- Parameters
-
DelayedEmailQueueTable | $queue_table | the queue database table |
EmailService | $email | email service |
ViewsService | $views | views service |
Translator | $translator | translator service |
Invoker | $invoker | invoker serivce |
Definition at line 37 of file DelayedEmailService.php.
Elgg\Email\DelayedEmailService::enqueueNotification |
( |
Notification |
$notification | ) |
|
Queue a notification for delayed email delivery.
- Parameters
-
Notification | $notification | the notification |
- Returns
- bool
Definition at line 53 of file DelayedEmailService.php.
Elgg\Email\DelayedEmailService::processQueuedNotifications |
( |
string |
$delivery_interval, |
|
|
int |
$timestamp |
|
) |
| |
Send out notifications for the given delivery_interval.
- Parameters
-
string | $delivery_interval | the delivery interval to process |
int | $timestamp | the timestamp until which queued notifications should be picked up |
- Returns
- int number of notifications handled
Definition at line 75 of file DelayedEmailService.php.
Elgg\Email\DelayedEmailService::processRecipientNotifications |
( |
int |
$recipient_guid, |
|
|
array |
$notifications, |
|
|
string |
$delivery_interval |
|
) |
| |
|
protected |
Send out the combined email notification for a given recipient.
- Parameters
-
int | $recipient_guid | the GUID of the recipient |
array | $notifications | all delayed notifications for the recipient in the given delivery_interval |
string | $delivery_interval | the delivery interval |
- Returns
- bool
Definition at line 137 of file DelayedEmailService.php.
const Elgg\Email\DelayedEmailService::NOTIFICATIONS_BATCH_SIZE = 500 |
|
protected |
The documentation for this class was generated from the following file: