SilverCart\Model\ShopEmail\Content
Shop Email Content.
- Author: Sebastian Diel <sdiel@pixeltricks.de>
- Copyright: 2021 pixeltricks GmbH
- License: see license file in modules root directory
Synopsis
class Content
extends DataObject
{
- // members
- private static string $table_name = 'SilverCart_ShopEmail_Content';
- private static array $db = ;
- private static array $has_one = ;
- private static array $has_many = ;
- private static array $casting = ;
- private static array $extensions = ;
- private static bool $insert_translation_cms_fields = true;
- private static string $insert_translation_cms_fields_after = 'DisplayPosition';
- // methods
- public static array content_type_classes()
- public string singular_name()
- public string plural_name()
- public array fieldLabels()
- public FieldList getCMSFields()
- public array summaryFields()
- protected array getClassDropdown()
- public string getTitle()
- public string getDisplayPositionNice()
- public DBHTMLText getContent()
- public DBHTMLText getDisplayContent()
- public string getClassNameNice()
- // 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 properties - $db
—
array
DB attributes - $extensions
—
array
Extensions - $has_many
—
array
Has many relations. - $has_one
—
array
Has one relations. - $insert_translation_cms_fields
—
SilverCart\Model\ShopEmail\bool
Determines to insert the translation CMS fields automatically. - $insert_translation_cms_fields_after
—
string
Field name to insert the translation CMS fields after. - $table_name
—
string
DB table name
protected
- $defaultFieldLabels
—
array
Default field labels.
Methods
protected
- getClassDropdown() — Get the class dropdown used in the CMS to change the class of a content.
public
- content_type_classes() — Return a subclass map of Content that shouldn't be hidden through {@link Content::$hide_ancestor}
- fieldLabels() — Field labels for display in tables.
- getCMSFields() — Returns the CMS fields.
- getClassNameNice() — Returns the ClassName as an i18n human readable string.
- getContent() — Returns the Content
- getDisplayContent() — Returns the DisplayContent
- getDisplayPositionNice()
- getTitle() — Returns 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() — Summary fields
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.