SilverCart\Model\Widgets\TextWithLinkWidget
Provides a free text with link widget.
- Author: Sebastian Diel <sdiel@pixeltricks.de>
- Copyright: 2017 pixeltricks GmbH
- License: see license file in modules root directory
Synopsis
class TextWithLinkWidget
extends TextWidget
{
- // members
- private static array $db = ;
- private static array $casting = ;
- private static array $has_many = ;
- private static string $table_name = 'SilvercartTextWithLinkWidget';
- // Inherited members from Widget
- public bool $useWidgetContainer;
- public static bool $use_product_pages_for_slider;
- public static bool $use_anything_slider;
- public static array $registeredFilterPlugins;
- // methods
- public string getLinkText()
- public array fieldLabels()
- public FieldList getCMSFields()
- // Inherited methods from TextWidget
- public string getFreeText()
- public string getHeadline()
- public array fieldLabels()
- // Inherited methods from Widget
- public array fieldLabels()
- public FieldList getCMSFields()
- public string getTitle()
- public bool DoUseWidgetContainer()
- public WidgetSet WidgetSet()
- public static void registerFilterPlugin()
Hierarchy
Members
private
- $casting
—
array
Casted Attributes. - $db
—
array
DB attributes - $has_many
—
array
1:n relationships. - $table_name
—
string
DB table name
public
- $registeredFilterPlugins
—
array
Contains a list of all registered filter plugins. - $useWidgetContainer
—
SilverCart\Model\Widgets\bool
Set whether to use the widget container divs or not. - $use_anything_slider
—
SilverCart\Model\Widgets\bool
Set this to false to disable anything slider. - $use_product_pages_for_slider
—
SilverCart\Model\Widgets\bool
Set this to false to use single elements for product slider
Methods
public
- fieldLabels() — Field labels for display in tables.
- getCMSFields() — Returns the input fields for this widget.
- getLinkText() — retirieves the attribute FreeText from related language class depending on the set locale
Inherited from SilverCart\Model\Widgets\TextWidget
public
- fieldLabels() — Field labels for display in tables.
- getFreeText() — retirieves the attribute FreeText from related language class depending on the set locale
- getHeadline() — retirieves the attribute Headline from related language class depending on the current locale
Inherited from SilverCart\Model\Widgets\Widget
public
- DoUseWidgetContainer() — Indicate whether to use the widget container divs or not.
- WidgetSet() — Returns the related WidgetSet.
- fieldLabels() — Field labels for display in tables.
- getCMSFields() — Returns the input fields for this widget.
- getTitle() — Returns the title of this widget.
- registerFilterPlugin() — Registers an object as a filter plugin. Before getting the result set the method 'filter' is called on the plugin. It has to return an array with filters to deploy on the query.