SilverWare\Contact\Model\ContactRecipient
An extension of the data object class for a contact recipient.
- Author: Colin Tucker <colin@praxis.net.au>
- Copyright: 2017 Praxis Interactive
- License: https://opensource.org/licenses/BSD-3-Clause BSD-3-Clause
Synopsis
class ContactRecipient
extends DataObject
{
- // members
- private static string $singular_name = 'Recipient';
- private static string $plural_name = 'Recipients';
- private static string $default_sort = 'Name';
- private static string $table_name = 'SilverWare_ContactRecipient';
- private static array $db = ;
- private static array $has_one = ;
- private static array $belongs_many_many = ;
- private static array $defaults = ;
- private static array $summary_fields = ;
- private static array $extensions = ;
- // methods
- public FieldList getCMSFields()
- public RequiredFields getCMSValidator()
- public array fieldLabels()
- public string getSendTo()
- public string getSendFrom()
- public void receive()
Hierarchy
Extends
- SilverStripe\ORM\DataObject
Uses
- SilverWare\Security\CMSMainPermissions
Members
private
- $belongs_many_many
—
array
Defines the reciprocal many-many associations for this object. - $db
—
array
Maps field names to field types for this object. - $default_sort
—
string
Defines the default sort field and order for this object. - $defaults
—
array
Defines the default values for the fields of this object. - $extensions
—
array
Defines the extension classes to apply to this object. - $has_one
—
array
Defines the has-one associations for this object. - $plural_name
—
string
Human-readable plural name. - $singular_name
—
string
Human-readable singular name. - $summary_fields
—
array
Defines the summary fields of this object. - $table_name
—
string
Defines the table name to use for this object.
Methods
public
- fieldLabels() — Answers the labels for the fields of the receiver.
- getCMSFields() — Answers a list of field objects for the CMS interface.
- getCMSValidator() — Answers a validator for the CMS interface.
- getSendFrom() — Answers a string containing the name and email address for sending from.
- getSendTo() — Answers a string containing the name and email address for sending to.
- receive() — Sends the given email to the recipient.