SilverCart\View\GroupView\GroupViewExtension
Decorator for PageTypes which have grouped views. Provides a group view specific functionality to its decorated owner.
- Author: Sebastian Diel <sdiel@pixeltricks.de>
- Copyright: 2017 pixeltricks GmbH
- License: see license file in modules root directory
Synopsis
class GroupViewExtension
extends DataExtension
{
- // members
- private static array $allowed_actions = ;
- // methods
- public ArrayList getGroupViews()
- public ArrayList getGroupHolderViews()
- public bool hasMoreGroupViewsThan()
- public bool hasMoreGroupHolderViewsThan()
- public void switchGroupView()
- public void switchGroupHolderView()
- public string getActiveGroupView()
- public string RenderProductGroupHolderGroupView()
- public string RenderProductGroupPageGroupView()
- public string getProductGroupHolderTemplateName()
- public string getProductGroupPageTemplateName()
- public boolean isGroupViewAllowed()
- public string getDefaultGroupViewInherited()
- public string getUseOnlyDefaultGroupViewInherited()
- public boolean isGroupHolderViewAllowed()
- public string getDefaultGroupHolderViewInherited()
- public string getUseOnlyDefaultGroupHolderViewInherited()
Hierarchy
Extends
- SilverStripe\ORM\DataExtension
Members
private
- $allowed_actions
—
array
add switchGroupView to allowed_actions
Methods
public
- RenderProductGroupHolderGroupView() — this is used to render the ProductGroupHolder template in dependence on the active group view.
- RenderProductGroupPageGroupView() — this is used to render the ProductGroupPage template in dependence on the active group view.
- getActiveGroupView() — returns the code of the active group view
- getDefaultGroupHolderViewInherited() — Returns the inherited DefaultGroupHolderView
- getDefaultGroupViewInherited() — Returns the inherited DefaultGroupView
- getGroupHolderViews() — returns all group views
- getGroupViews() — returns all group views
- getProductGroupHolderTemplateName() — returns the required ProductGroupHolder template name required by the decorators owner in dependence on the active group view.
- getProductGroupPageTemplateName() — returns the required ProductGroupPage template name required by the decorators owner in dependence on the active group view.
- getUseOnlyDefaultGroupHolderViewInherited() — Returns the inherited UseOnlyDefaultGroupHolderView
- getUseOnlyDefaultGroupViewInherited() — Returns the inherited UseOnlyDefaultGroupView
- hasMoreGroupHolderViewsThan() — checkes, whether more than $count group views are existant.
- hasMoreGroupViewsThan() — checkes, whether more than $count group views are existant.
- isGroupHolderViewAllowed() — Checks whether the given group view is allowed to render for this group
- isGroupViewAllowed() — Checks whether the given group view is allowed to render for this group
- switchGroupHolderView() — switches the group view to the via URL parameter 'ID' given type (if existant)
- switchGroupView() — switches the group view to the via URL parameter 'ID' given type (if existant)