\PermamailTemplate
A user-defined email template. HTML is editable in the CMS using a Javascript-driven code editor. Templates can have default subjects.
- Author: Uncle Cheese <unclecheese@leftandmain.com>
Synopsis
class PermamailTemplate
extends DataObject
{
- // members
- private static array $db = ;
- private static array $has_many = ;
- private static array $indexes = ;
- private static array $summary_fields = ;
- private static array $defaults = ;
- private static string $singular_name = 'Email template';
- private static string $plural_name = 'Email templates';
- private static array $better_buttons_actions = ;
- // methods
- public static PermamailTemplate get_by_identifier()
- public void getBetterButtonsActions()
- public FieldList getCMSFields()
- public void testemail()
- public void onBeforeWrite()
- public string getTitle()
- public boolean canView()
- public boolean canEdit()
- public boolean canCreate()
- public boolean canDelete()
Hierarchy
Extends
- DataObject
Members
private
- $db
- $defaults
- $has_many
- $indexes
- $plural_name
- $singular_name
- $summary_fields
Methods
public
- canCreate() — Defines the create permission
- canDelete() — Defines the delete permission
- canEdit() — Defines the edit permission
- canView() — Defines the view permission
- getBetterButtonsActions()
- getCMSFields() — Gets the {@link FieldList} for editing the record
- getTitle() — Better than a numeric ID...
- get_by_identifier() — Gets a PermamailTemplate object by its identifier
- onBeforeWrite() — Sanitise the identifier and populate the variables list
- testemail() — Send a test email to the given address, populating it with the given values for all template variables