SilverCart\Model\Widgets\ProductGroupItemsWidgetController
ProductGroupItemsWidget Controller.
- Author: Sebastian Diel <sdiel@pixeltricks.de>
- Copyright: 2017 pixeltricks GmbH
- License: see license file in modules root directory
Synopsis
class ProductGroupItemsWidgetController
extends WidgetController
{
- // methods
- protected void init()
- public ArrayList ProductPages()
- public ArrayList Elements()
- public string WidgetCacheKey()
- public DBHTMLText ElementsContent()
- public DataList getElementsByProducts()
- public SS_List getElementsByProductGroup()
- public string ProductGroupTitle()
- // Inherited methods from WidgetController
- public string PageByIdentifierCode()
- public string PageByIdentifierCodeLink()
- // Inherited methods from ProductSliderWidgetController
- public ArrayList getElements()
- public void setElements()
- public void initAnythingSlider()
- public void initRoundabout()
Hierarchy
Extends
Uses
Members
protected
- $elements
—
SilverStripe\ORM\ArrayList
Product elements
Methods
protected
- init() — Register forms for the contained products.
public
- Elements() — Returns the elements for the static slider view.
- ElementsContent() — Returns the content for non slider widgets
- ProductGroupTitle() — Returns the title of the product group that items are shown.
- ProductPages() — Returns a number of products from the chosen productgroup.
- WidgetCacheKey() — Creates the cache key for this widget.
- getElementsByProductGroup() — Returns a number of products from the chosen productgroup.
- getElementsByProducts() — Returns the manually chosen products.
Inherited from SilverCart\Model\Widgets\WidgetController
public
- PageByIdentifierCode() — returns a page by IdentifierCode
- PageByIdentifierCodeLink() — returns a page link by IdentifierCode
Inherited from SilverCart\Model\Widgets\ProductSliderWidgetController
public
- getElements() — Returns the elements
- initAnythingSlider() — Insert the javascript necessary for the anything slider.
- initRoundabout() — Insert the javascript necessary for the roundabout slider.
- setElements() — Sets the elements