SilverCart\Model\Widgets\HTMLSliderWidgetSlide
Slide for HTMLSliderWidget.
- Author: Sebastian Diel <sdiel@pixeltricks.de>
- Copyright: 2021 pixeltricks GmbH
- License: see license file in modules root directory
Synopsis
class HTMLSliderWidgetSlide
extends DataObject
{
- // members
- private static string $table_name = 'SilverCart_Widgets_HTMLSliderSlide';
- private static array $db = ;
- private static array $casting = ;
- private static array $has_one = ;
- private static array $has_many = ;
- private static string $default_sort = 'Sort ASC';
- private static array $extensions = ;
- private static bool $insert_translation_cms_fields = true;
- // methods
- public string singular_name()
- public string plural_name()
- public FieldList getCMSFields()
- public array fieldLabels()
- public DBHTMLText getHTMLContent()
- // 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
DB default sort - $extensions
—
array
Extensions - $has_many
—
array
Has many relations. - $has_one
—
array
has many relations - $insert_translation_cms_fields
—
SilverCart\Model\Widgets\bool
Determines to insert the translation CMS fields. - $table_name
—
string
DB table name
protected
- $defaultFieldLabels
—
array
Default field labels.
Methods
public
- fieldLabels() — Field labels for display in tables.
- getCMSFields() — Returns the input fields for this widget.
- getHTMLContent() — Getter for the HTMLContent depending on the set language
- plural_name() — Returns the translated plural name of the object.
- singular_name() — Returns the translated singular name of the object.
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.