\UserDefinedForm_EmailRecipient
A Form can have multiply members / emails to email the submission to and custom subjects
Synopsis
class UserDefinedForm_EmailRecipient
extends DataObject
{
- // members
- private static array $db = ;
- private static array $has_one = ;
- private static array $has_many = ;
- private static array $summary_fields = ;
- private static bool $allow_unbound_recipient_fields = false;
- // methods
- public void summaryFields()
- protected UserDefinedFrom getFormParent()
- public void getTitle()
- protected GridFieldConfig getRulesConfig()
- public FieldList getCMSFields()
- public bool canCreate()
- protected SiteTree getCanCreateContext()
- public boolean canView()
- public boolean canEdit()
- public boolean canDelete()
- public void canSend()
- public boolean emailTemplateExists()
- public string getEmailBodyContent()
- public array getEmailTemplateDropdownValues()
Hierarchy
Extends
- DataObject
Members
private
- $allow_unbound_recipient_fields
—
bool
Setting this to true will allow you to select "risky" fields as email recipient, such as free-text entry fields. - $db
- $has_many
- $has_one
- $summary_fields
Methods
protected
- getCanCreateContext() — Helper method to check the parent for this object
- getFormParent() — Get instance of UserDefinedForm when editing in getCMSFields
- getRulesConfig() — Generate a gridfield config for editing filter rules
public
- canCreate() — Return whether a user can create an object of this type
- canDelete()
- canEdit()
- canSend()
- canView()
- emailTemplateExists() — Make sure the email template saved against the recipient exists on the file system.
- getCMSFields()
- getEmailBodyContent() — Get the email body for the current email format
- getEmailTemplateDropdownValues() — Gets a list of email templates suitable for populating the email template dropdown.
- getTitle()
- summaryFields()