WidgetSets\Model\WidgetSetWidget
Provides some basic functionality for all Widgetset widgets.
- Author: Sebastian Diel <sdiel@pixeltricks.de>
- Copyright: 2017 pixeltricks GmbH
- License: see license file in modules root directory
Synopsis
class WidgetSetWidget
extends Widget
{
- // members
- private static array $db = ;
- private static string $table_name = 'WidgetSetWidget';
- // methods
- public array fieldLabels()
- public array excludeFromScaffolding()
- public string CMSTitle()
- public string Description()
- protected void onAfterWrite()
- public boolean IsInContentArea()
Hierarchy
Extends
- SilverStripe\Widgets\Model\Widget
Members
private
- $db
—
array
Attributes - $table_name
—
string
DB table name
Methods
protected
- onAfterWrite() — Automatically publishes the WidgetArea (Parent) after writing.
public
- CMSTitle() — Returns the title of this widget for display in the WidgetArea GUI.
- Description() — Returns the description of what this template does for display in the WidgetArea GUI.
- IsInContentArea() — Returns whether this widget is displayed in content area (WidgetSetContent relation).
- excludeFromScaffolding() — Returns an array of field/relation names (db, has_one, has_many, many_many, belongs_many_many) to exclude from form scaffolding in backend.
- fieldLabels() — Field labels for display in tables.