SilverCart\Model\Pages\ContactFormPage\Subject
ContactForm Subject.
- Author: Sebastian Diel <sdiel@pixeltricks.de>
- Copyright: 2021 pixeltricks GmbH
- License: see license file in modules root directory
Synopsis
class Subject
extends DataObject
{
- // members
- private static string $table_name = 'SilverCart_ContactFormPage_Subject';
- private static array $db = ;
- private static array $casting = ;
- private static array $has_one = ;
- private static array $has_many = ;
- private static array $many_many = ;
- private static string $default_sort = 'Sort';
- private static array $summary_fields = ;
- private static array $extensions = ;
- private static bool $insert_translation_cms_fields = true;
- private static string $insert_translation_cms_fields_before = 'Sort';
- // methods
- public static void getSubjectCMSFields()
- public string singular_name()
- public string plural_name()
- public array fieldLabels()
- public FieldList getCMSFields()
- public string getTitle()
- public string getSubject()
- public DBHTMLText getRecipientsHtml()
- // 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
- $casting
—
array
Casted attributes. - $db
—
array
DB attributes. - $default_sort
—
string
Default sort - $extensions
—
array
List of extensions to use. - $has_many
—
array
Has many relations. - $has_one
—
array
Has one relations. - $insert_translation_cms_fields
—
SilverCart\Model\Pages\ContactFormPage\bool
Determines to insert the translation CMS fields automatically. - $insert_translation_cms_fields_before
—
string
Field name to insert the translation CMS fields after. - $many_many
—
array
Many many relations. - $summary_fields
—
array
Summary fields. - $table_name
—
string
DB table name
protected
- $defaultFieldLabels
—
array
Default field labels.
Methods
public
- fieldLabels() — Returns the field labels.
- getCMSFields() — Returns the CMS fields.
- getRecipientsHtml() — Returns the additional email recipients as a html string
- getSubject() — Returns the Subject.
- getSubjectCMSFields() — Adds the blacklist management fields to the given CMS $fields.
- getTitle() — Returns the Subject.
- 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.
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.