SilverStripe\Newsletter\Model\Newsletter
Synopsis
class Newsletter
extends DataObject
implements
CMSPreviewable
{
- // members
- private static array $db = ;
- private static array $has_one = ;
- private static array $has_many = ;
- private static array $many_many = ;
- private static array $searchable_fields = ;
- private static array $default_sort = ;
- private static array $summary_fields = ;
- private static array $required_fields = ;
- private static array $required_relations = ;
- private static string $table_name = 'Newsletter';
- private static string $singular_name = 'Newsletter';
- private static string $plural_name = 'Newsletters';
- // methods
- public void fieldLabels()
- public void validate()
- public void getCMSFields()
- public array templateSource()
- public Array getAvailablePlaceholders()
- public void getTitle()
- public void render()
- public bool canDelete()
- public bool canEdit()
- public void getContentBody()
- public void Link()
- public string CMSEditLink()
- public string PreviewLink()
- public string getMimeType()
- public int scheduleSend()
- public void onBeforeDelete()
Hierarchy
Extends
- SilverStripe\ORM\DataObject
Implements
- SilverStripe\ORM\CMSPreviewable
Members
private
- $db
- $default_sort
- $has_many
- $has_one
- $many_many
- $plural_name
- $required_fields
- $required_relations
- $searchable_fields
- $singular_name
- $summary_fields
- $table_name
Methods
public
- CMSEditLink()
- Link()
- PreviewLink()
- canDelete()
- canEdit()
- fieldLabels()
- getAvailablePlaceholders()
- getCMSFields()
- getContentBody()
- getMimeType()
- getTitle()
- onBeforeDelete()
- render()
- scheduleSend() — Handles marking this newsletter as sent and kicking off the queued job process.
- templateSource() — Return array containing all possible email templates file name under the folders of both theme and project specific folder.
- validate()