SilverCart\Model\Widgets\WidgetTools
Provides methods for common widget tasks in SilverCart.
- Author: Sebastian Diel <sdiel@pixeltricks.de>
- Copyright: 2017 pixeltricks GmbH
- License: see license file in modules root directory
Synopsis
class WidgetTools
{
- // methods
- public static FieldList getCMSFieldsForProductSliderWidget()
- public static void getCMSFieldsSliderToggleForSliderWidget()
- public static void getCMSFieldsRoundaboutTabForProductSliderWidget()
- public static void initProductSliderWidget()
- public static void initAnythingSliderForProductSliderWidget()
- public static void initRoundaboutForProductSliderWidget()
- public static string getGroupViewTemplateName()
- public static void populateFromPostDataForProductSliderWidget()
- public static array fieldLabelsForProductSliderWidget()
- public static string ProductWidgetCacheKey()
Methods
public
- ProductWidgetCacheKey() — Creates the cache key for this widget.
- fieldLabelsForProductSliderWidget() — Field labels for display in tables.
- getCMSFieldsForProductSliderWidget() — Returns the input fields for this widget.
- getCMSFieldsRoundaboutTabForProductSliderWidget() — Returns the slider tab input fields for this widget.
- getCMSFieldsSliderToggleForSliderWidget() — Adds the slider toggle input fields for this widget.
- getGroupViewTemplateName() — Returns the template to render the products with
- initAnythingSliderForProductSliderWidget() — Insert the javascript necessary for the anything slider.
- initProductSliderWidget() — Default initialization of a product slider widget
- initRoundaboutForProductSliderWidget() — Insert the javascript necessary for the roundabout slider.
- populateFromPostDataForProductSliderWidget() — We set checkbox field values here to false if they are not in the post data array.