ApplicableFilter
extends Element
in package
Uses
ElementTrait
This is the 'ApplicableFilter' class, a DTO class for the theme configuration data.
The items stored in this class will remain immutable (only get methods are available).
This class extends SDK\Core\Dtos\Element, see this class.
Tags
Table of Contents
ENABLED | = 'enabled' | |
---|---|---|
ITEMS_TO_SHOW | = 'itemsToShow' | |
ORDER_BY | = 'orderBy' | |
PRIORITY | = 'priority' | |
Q_MIN_CHARACTERS | = 'qMinCharacters' | |
SORT | = 'sort' | |
getItemsToShow() | This method returns the applicable items for the filter. | : array<string|int, mixed> |
getOrderBy() | This method returns the 'order by' to be applied to the filtrable items. It retuns values compatibles with SortableEnum. | : string |
getQMinCharacters() | This method returns the minimum number of characters to make the list request. | : int |
getSort() | This method returns the sort to apply to the filtrable item. Retuns values compatibles with ApplicableFilterSortable | : string |
isEnabled() | This method returns true if the filter is enabled, and false otherwise. | : bool |
isPriority() | This method the priority to show the filter | : int |
Constants
ENABLED
public
mixed
ENABLED
= 'enabled'
ITEMS_TO_SHOW
public
mixed
ITEMS_TO_SHOW
= 'itemsToShow'
ORDER_BY
public
mixed
ORDER_BY
= 'orderBy'
PRIORITY
public
mixed
PRIORITY
= 'priority'
Q_MIN_CHARACTERS
public
mixed
Q_MIN_CHARACTERS
= 'qMinCharacters'
SORT
public
mixed
SORT
= 'sort'
Methods
getItemsToShow()
This method returns the applicable items for the filter.
public
getItemsToShow() : array<string|int, mixed>
Return values
array<string|int, mixed> —getOrderBy()
This method returns the 'order by' to be applied to the filtrable items. It retuns values compatibles with SortableEnum.
public
getOrderBy() : string
Return values
string —getQMinCharacters()
This method returns the minimum number of characters to make the list request.
public
getQMinCharacters() : int
Return values
int —getSort()
This method returns the sort to apply to the filtrable item. Retuns values compatibles with ApplicableFilterSortable
public
getSort() : string
Return values
string —isEnabled()
This method returns true if the filter is enabled, and false otherwise.
public
isEnabled() : bool
Return values
bool —isPriority()
This method the priority to show the filter
public
isPriority() : int