SearchOptions
Helper class for getting item search options
Namespace
Ceres\Helper
Type | Name | Value | Description |
---|---|---|---|
|
'search' |
||
|
'category' |
||
|
['itemRecommendedSorting','itemName_asc','itemName_desc','itemPrice_asc','itemPrice_desc','itemVariationCreateTimestamp_desc','itemVariationCreateTimestamp_asc','itemAvailabilityAverageDays_asc','itemAvailabilityAverageDays_desc','itemVariationCustomNumber_asc','itemVariationCustomNumber_desc','itemVariationLastUpdateTimestamp_asc','itemVariationLastUpdateTimestamp_desc','itemProducerName_asc','itemProducerName_desc','itemRelevance','itemRandom','itemVariationTopseller_asc','itemVariationTopseller_desc'] |
Type | Name | Description |
---|---|---|
|
Get all itemsPerPage settings |
|
|
Get the default itemsPerPage setting |
|
|
Get all sorting settings |
|
|
Get the default sorting setting |
Methods
public static get($scope):SearchOptions
Get an instance of the class containing item search options for the scope
Type |
Name |
Description |
|
Either 'category' or 'search' |
public static validateItemListOptions($itemListOptions, $scope):mixed
Validate an array of item search options inputted by user.
Type |
Name |
Description |
|
User inputted item search options. |
|
|
The scope of the item search options. |