WidgetSets\Model\WidgetSet
Contains an arbitrary number of widgets.
- Author: Sebastian Diel <sdiel@pixeltricks.de>
- Copyright: 2017 pixeltricks GmbH
- License: see license file in modules root directory
Synopsis
class WidgetSet
extends DataObject
{
- // members
- private static array $db = ;
- private static array $has_one = ;
- private static array $belongs_many_many = ;
- private static string $table_name = 'WidgetSet';
- // methods
- public string singular_name()
- public string plural_name()
- public FieldList getCMSFields()
- public FieldList scaffoldWidgetAreaFields()
- public static void scaffold_widget_area_fields_for()
- public array summaryFields()
- public array fieldLabels()
- public void onAfterWrite()
- public void onBeforeDelete()
Hierarchy
Extends
- SilverStripe\ORM\DataObject
Members
private
- $belongs_many_many
—
array
Has-many relationships - $db
—
array
Attributes - $has_one
—
array
Has-one relationships - $table_name
—
string
DB table name
Methods
public
- fieldLabels() — Field labels for display in tables.
- getCMSFields() — Returns the GUI fields for the storeadmin.
- onAfterWrite() — We have to create a WidgetArea object if there's none attributed yet.
- onBeforeDelete() — We want to delete all attributed WidgetAreas and Widgets before deletion.
- plural_name() — Returns the translated plural name of the object. If no translation exists the class name will be returned.
- scaffoldWidgetAreaFields() — Scaffolds the relation WidgetArea into the WidgetSet CMSFields and configurates the GridField
- scaffold_widget_area_fields_for() — Scaffolds the relation WidgetArea into the context CMSFields and configurates the GridField.
- singular_name() — Returns the translated singular name of the given object. If no translation exists the class name will be returned.
- summaryFields() — Summary fields for display in tables.