SilverCart\Model\EmailAddress
Abstract for an email address; For a more comfortable view a name can be added.
- Author: Sebastian Diel <sdiel@pixeltricks.de>
- Copyright: 2017 pixeltricks GmbH
- License: see license file in modules root directory
Synopsis
class EmailAddress
extends DataObject
{
- // members
- private static string $table_name = 'SilvercartEmailAddress';
- private static array $db = ;
- private static array $belongs_many_many = ;
- // methods
- public string singular_name()
- public string plural_name()
- public array fieldLabels()
- public FieldList getCMSFields()
- public array summaryFields()
- public string|array getMailTo()
- public string getEmailAddressWithName()
- public string getEmailAddress()
- public string getTitle()
- // Inherited methods from ExtensibleDataObject
- protected void beforeRequireDefaultRecords()
- protected void beforeUpdateCMSActions()
- protected void beforeUpdateFieldLabels()
- protected void beforeUpdateProvidePermissions()
- public array defaultFieldLabels()
- public static void reset_field_labels()
- protected array scaffoldFieldLabels()
Hierarchy
Members
private
- $belongs_many_many
—
string
n:m relations - $db
—
string
Attributes. - $table_name
—
string
DB table name
protected
- $defaultFieldLabels
—
array
Default field labels.
Methods
public
- fieldLabels() — Returns the field labels.
- getCMSFields() — Returns the CMS fields.
- getEmailAddress() — Getter for the email address
- getEmailAddressWithName() — Getter for the email address with the name prefixed
- getMailTo() — Returns the mail to parameter to use with @see Email::create().
- getTitle() — Getter for the title
- plural_name() — Returns the translated plural name of the object. If no translation exists the class name will be returned.
- singular_name() — Returns the translated singular name of the object. If no translation exists the class name will be returned.
- summaryFields() — Summaryfields for display in tables.
Inherited from SilverCart\ORM\ExtensibleDataObject
protected
- beforeRequireDefaultRecords() — Allows user code to hook into DataObject::requireDefaultRecords() prior to requireDefaultRecords being called on extensions.
- beforeUpdateCMSActions() — Allows user code to hook into DataObject::getCMSActions prior to updateCMSActions being called on extensions.
- beforeUpdateFieldLabels() — Allows user code to hook into DataObject::fieldLabels() prior to updateFieldLabels being called on extensions.
- beforeUpdateProvidePermissions() — Allows user code to hook into DataObject::updateProvidePermissions() prior to providePermissions being called on extensions.
- scaffoldFieldLabels() — Returns the default field labels for this DataObject.
public
- defaultFieldLabels() — Returns the default field labels.
- reset_field_labels() — Resets the field label cache.