\EmailQueue
Class EmailQueue
Synopsis
class EmailQueue
extends DataObject
{
- // members
- private static string $singular_name = 'Sähköpostiviesti';
- private static string $plural_name = 'Sähköpostiviestit';
- private static array $db = ;
- private static array $email_field_map = ;
- // methods
- public void populateDefaults()
- public void Send()
- public void UpdateStatus()
- public static EmailQueue AddToQueue()
- public static array QueuedEmails()
- public static DataList SendableEmails()
- public static DataList ScheduledEmails()
- public static array EmailsInProgress()
- public static array SentEmails()
- public static array FailedEmails()
- public static bool CheckUniqueString()
- public static EmailQueue byUniqueString()
- private void import_data_from_email_template()
Hierarchy
Extends
- DataObject
Tasks
Line | Task |
---|---|
92 | Now SilverStripe thinks that the Status field is 'changed', i.e. has a new value which should be written to the database. This is not a big issue, I think it would most likely affect just a possible write() call, which would include the Status field unnecessarily. If this is wanted to be improved, one could find a way to mark the Status field as "not changed". |
Members
private
- $db
- $email_field_map
- $plural_name
- $singular_name
Methods
private
public
- AddToQueue()
- CheckUniqueString() — Checks if the given $unique_string is found amongst previous email messages. This can be used to prevent re-sending same emails over and over again.
- EmailsInProgress()
- FailedEmails()
- QueuedEmails()
- ScheduledEmails() — Returns a list of email messages that SHOULD NOT be sent yet, because they are scheduled to be sent later.
- Send()
- SendableEmails() — Returns a list of email messages that can be sent NOW.
- SentEmails()
- UpdateStatus() — A fast way and simple way to change the value of the Status field. EmailQueueProcessor::run() uses this.
- byUniqueString()
- populateDefaults()