SilverCommerce\ComplexCategory\ComplexCategoryController
Synopsis
class ComplexCategoryController
extends CategoryController
{
- // constants
- const FALLBACK_LIMIT = 24;
- // members
- private static array $sort_options = ;
- private static array $show_options = ;
- // methods
- public string getTranslatedSort()
- public static string getDefaultSortTitle()
- public static int getDefaultLimit()
- public Form SortLimitForm()
- protected int getPaginationLimit()
- public PaginatedList PaginatedProducts()
- public PaginatedList PaginatedAllProducts()
Hierarchy
Extends
- CategoryController
Constants
Name | Value |
---|---|
FALLBACK_LIMIT | 24 |
Members
private
- $show_options
—
array
List of default limit options (can be amended via config) - $sort_options
—
array
Specify sort options and their titles (these can be expanded upon using global config)
Methods
protected
- getPaginationLimit() — Get the pagination limit selected (either via the URL or by default)
public
- PaginatedAllProducts() — Get a paginated list of all products at this level and below
- PaginatedProducts() — Get a paginated list of all products at this level and below
- SortLimitForm() — Generate a sort/limit form
- getDefaultLimit() — Try to determine the default limit amount based on the set limit options.
- getDefaultSortTitle() — Try to determine the default sort title based on the set sort options
- getTranslatedSort() — Get an i18n friendly version of the sort name