SilverCart\Model\Widgets\ProductGroupChildProductsWidgetController
ProductGroupChildProductsWidget Controller.
- Author: Sebastian Diel <sdiel@pixeltricks.de>
- Copyright: 2017 pixeltricks GmbH
- License: see license file in modules root directory
Synopsis
class ProductGroupChildProductsWidgetController
extends WidgetController
{
- // members
- protected ArrayList $elements = NULL;
- // methods
- public ArrayList getElements()
- public PaginatedList getElementsByProductGroup()
- public void setElements()
- public ArrayList Elements()
- public PaginatedList getProducts()
- public string RenderProductGroupPageGroupView()
- public int HasMoreProductsThan()
- public SS_List ActiveProducts()
- public SS_List Products()
- public bool ShowWidget()
- // Inherited methods from WidgetController
- public string PageByIdentifierCode()
- public string PageByIdentifierCodeLink()
Hierarchy
Members
protected
- $elements
—
SilverStripe\ORM\ArrayList
Product elements
Methods
public
- ActiveProducts() — Returns the products.
- Elements() — Returns the elements for this product group.
- HasMoreProductsThan() — Returns the products.
- Products() — Returns the products.
- RenderProductGroupPageGroupView() — Returns the content for non slider widgets
- ShowWidget() — Return whether to show the widget.
- getElements() — Returns the elements
- getElementsByProductGroup() — Returns the products of all children (recursively) of the current product group page.
- getProducts() — Returns the products.
- setElements() — Sets the elements
Inherited from SilverCart\Model\Widgets\WidgetController
public
- PageByIdentifierCode() — returns a page by IdentifierCode
- PageByIdentifierCodeLink() — returns a page link by IdentifierCode