ListFilter
Table of Contents
Constants
- TYPE_BOOLEAN = 'checkbox'
- TYPE_CRM_ENTITY = 'crm_entity'
- TYPE_DATE = 'date'
- TYPE_ENTITY_SELECTOR = 'entity_selector'
- TYPE_LIST = 'list'
- TYPE_NUMBER = 'number'
- TYPE_PARENT = 'parent'
- TYPE_STRING = 'string'
- TYPE_TEXT = 'text'
- TYPE_USER = 'entity_selector'
Methods
- __construct() : mixed
- prepareListFilter() : void
- Prepare ORM filter from data, received from the frontend filter
Constants
TYPE_BOOLEAN
public
mixed
TYPE_BOOLEAN
= 'checkbox'
TYPE_CRM_ENTITY
public
mixed
TYPE_CRM_ENTITY
= 'crm_entity'
TYPE_DATE
public
mixed
TYPE_DATE
= 'date'
TYPE_ENTITY_SELECTOR
public
mixed
TYPE_ENTITY_SELECTOR
= 'entity_selector'
TYPE_LIST
public
mixed
TYPE_LIST
= 'list'
TYPE_NUMBER
public
mixed
TYPE_NUMBER
= 'number'
TYPE_PARENT
public
mixed
TYPE_PARENT
= 'parent'
TYPE_STRING
public
mixed
TYPE_STRING
= 'string'
TYPE_TEXT
public
mixed
TYPE_TEXT
= 'text'
TYPE_USER
public
mixed
TYPE_USER
= 'entity_selector'
Methods
__construct()
public
__construct(int $entityTypeId, array<string|int, mixed> $fields[, string $fieldStageSemantic = 'STAGE_SEMANTIC_ID' ]) : mixed
Parameters
- $entityTypeId : int
- $fields : array<string|int, mixed>
- $fieldStageSemantic : string = 'STAGE_SEMANTIC_ID'
prepareListFilter()
Prepare ORM filter from data, received from the frontend filter
public
prepareListFilter(array<string|int, mixed> &$filter, array<string|int, mixed> $requestFilter) : void
Parameters
- $filter : array<string|int, mixed>
- $requestFilter : array<string|int, mixed>