LeKoala\EmailTemplates\Models\SentEmail
Defines a record that stores an email
- Author: lekoala
Synopsis
class SentEmail
extends DataObject
{
- // members
- private static string $table_name = 'SentEmail';
- private static array $db = ;
- private static array $summary_fields = ;
- private static string $default_sort = 'Created DESC';
- // methods
- public FieldList getCMSActions()
- public FieldList getCMSFields()
- public bool IsSuccess()
- public BetterEmail getEmail()
- public void resend()
- public static void cleanup()
- public boolean canView()
- public boolean canEdit()
- public boolean canCreate()
- public boolean canDelete()
Hierarchy
Extends
- SilverStripe\ORM\DataObject
Members
private
- $db
- $default_sort
- $summary_fields
- $table_name
Methods
public
- IsSuccess()
- canCreate() — Defines the create permission
- canDelete() — Defines the delete permission
- canEdit() — Defines the edit permission
- canView() — Defines the view permission
- cleanup() — Cleanup sent emails based on your config
- getCMSActions() — Gets a list of actions for the ModelAdmin interface
- getCMSFields() — Gets a list of form fields for editing the record.
- getEmail() — Gets the BetterEmail object that was used to send this email
- resend() — A BetterButtons custom action that allows the email to be resent