Sunnysideup\Ecommerce\ProductsAndGroups\ProductGroupSchema
In terms of ProductAndGroupsLists, this class knows all about the classes being used and the settings associated with it.
It is linked to the ProductGroup and so it does not know about user preferences
and other settings that are set in run-time.
Synopsis
class ProductGroupSchema
{
- // constants
- const SORT_DISPLAY_NAMES = ;
- // members
- public array<null|string $sortFilterDisplayNames;
- protected static array $applyerCache = ;
- private static string $product_group_list_class_name = RelatedProductGroups::class;
- private static string $base_product_list_class_name = BaseProductList::class;
- private static string $final_product_list_class_name = FinalProductList::class;
- private static string $user_preferences_class_name = UserPreference::class;
- private static string $debug_provider_class_name = Debug::class;
- // methods
- public void getData()
- public void getBaseProductListClassName()
- public void getFinalProductListClassName()
- public void getProductGroupListClassName()
- public void getUserPreferencesClassName()
- public void getDebugProvider()
- public void getDebugProviderAsObject()
- public array|string getSortFilterDisplayValues()
- public void IsSortFilterDisplayNamesType()
- public void getOptions()
- public void getSearchFilterOptionsMap()
- public void getGroupFilterOptionsMap()
- public void getFilterOptionsMap()
- public void getSortOptionsMap()
- public void getDisplayOptionsMap()
- public void getApplyerClassName()
- public BaseApplyer getApplyer()
- protected void getOptionsMap()
Hierarchy
Uses
- SilverStripe\Core\Config\Configurable
- SilverStripe\Core\Injector\Injectable
- Sunnysideup\Vardump\DebugTrait
Constants
Name | Value |
---|---|
SORT_DISPLAY_NAMES |
Members
private
- $base_product_list_class_name — string
- $debug_provider_class_name — string
- $final_product_list_class_name — string
- $product_group_list_class_name — string
- $user_preferences_class_name — string
protected
- $applyerCache
public
- $sortFilterDisplayNames — Sunnysideup\Ecommerce\ProductsAndGroups\array<null|string
Methods
protected
- getOptionsMap() — returns a dropdown like list of options for a BaseClass class name.
public
- IsSortFilterDisplayNamesType()
- getApplyer() — you can provide type or class name.
- getApplyerClassName() — todo: CHECK!
- getBaseProductListClassName()
- getData()
- getDebugProvider()
- getDebugProviderAsObject()
- getDisplayOptionsMap() — returns a dropdown like list of options for a display styles.
- getFilterOptionsMap() — returns a dropdown like list of options for a filters.
- getFinalProductListClassName()
- getGroupFilterOptionsMap() — returns a dropdown like list of options for a filters.
- getOptions()
- getProductGroupListClassName()
- getSearchFilterOptionsMap() — returns a dropdown like list of options for a searches.
- getSortFilterDisplayValues() — Returns the full sortFilterDisplayNames set, a subset, or one value by either type (e.g. FILER) or variable (e.g dbFieldName) or both.
- getSortOptionsMap() — returns a dropdown like list of options for a sorters.
- getUserPreferencesClassName()