SilverCart\Model\Pages\ProductGroupHolder
Page to display a group of products.
- Author: Sebastian Diel <sdiel@pixeltricks.de>
- Copyright: 2017 pixeltricks GmbH
- License: see license file in modules root directory
Synopsis
class ProductGroupHolder
extends Page
{
- // members
- private static array $db = ;
- private static array $has_one = ;
- private static string $table_name = 'SilvercartProductGroupHolder';
- private static array $allowed_children = ;
- private static string $icon = "silvercart/silvercart:client/img/page_icons/product_group_holder-file.gif";
- protected boolean $getCMSFieldsIsCalled = false;
- protected $cacheKeyParts = NULL;
- protected $cacheKey = NULL;
- // methods
- public string singular_name()
- public string plural_name()
- public array fieldLabels()
- public FieldList getCMSFields()
- public string getMetaDescription()
- public void redirectionLink()
- public bool hasProductsOrChildren()
- public array CacheKeyParts()
- public string CacheKey()
- public boolean IsProductGroupHolder()
- // Inherited methods from ExtensibleDataObject
- protected void beforeRequireDefaultRecords()
- protected void beforeUpdateCMSActions()
- protected void beforeUpdateFieldLabels()
- protected void beforeUpdateProvidePermissions()
- public array defaultFieldLabels()
- public static void reset_field_labels()
- protected array scaffoldFieldLabels()
Hierarchy
Members
private
- $allowed_children
—
array
Allowed children in site tree - $db
—
array
Attributes. - $has_one
—
array
Has one relations. - $icon
—
string
Icon to use in SiteTree - $table_name
—
string
DB table name
protected
- $cacheKey
—
string
Cache key for this product group - $cacheKeyParts
—
array
Cache key parts for this product group - $defaultFieldLabels
—
array
Default field labels. - $getCMSFieldsIsCalled
—
boolean
Indicator to check whether getCMSFields is called
Methods
public
- CacheKey() — Returns the cache key for this product group holder
- CacheKeyParts() — Returns the cache key parts for this product group holder
- IsProductGroupHolder() — Returns whether this is a ProductGroupHolder, so true..
- fieldLabels() — Field labels for display in tables.
- getCMSFields() — Return all fields of the backend.
- getMetaDescription() — Returns a dynamic meta description.
- hasProductsOrChildren() — Checks if ProductGroup has children or products.
- plural_name() — Plural name for this object
- redirectionLink() — Return the link that we should redirect to.
- singular_name() — Singular name for this object
Inherited from SilverCart\ORM\ExtensibleDataObject
protected
- beforeRequireDefaultRecords() — Allows user code to hook into DataObject::requireDefaultRecords() prior to requireDefaultRecords being called on extensions.
- beforeUpdateCMSActions() — Allows user code to hook into DataObject::getCMSActions prior to updateCMSActions being called on extensions.
- beforeUpdateFieldLabels() — Allows user code to hook into DataObject::fieldLabels() prior to updateFieldLabels being called on extensions.
- beforeUpdateProvidePermissions() — Allows user code to hook into DataObject::updateProvidePermissions() prior to providePermissions being called on extensions.
- scaffoldFieldLabels() — Returns the default field labels for this DataObject.
public
- defaultFieldLabels() — Returns the default field labels.
- reset_field_labels() — Resets the field label cache.