Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
PropertyFilter.php
1
<?php
2
3
namespace
Bitrix\Iblock\Integration\UI\Grid\Filter\Property
;
4
5
use
Bitrix\Iblock\Integration\UI\Grid\Property\PropertyGridProvider
;
6
use
Bitrix\Main\Filter\Filter
;
7
use
Bitrix\Main\UI\Filter\Theme
;
8
9
class
PropertyFilter
extends
Filter
10
{
19
public
static
function
create
(
int
$iblockId,
PropertyGridProvider
$gridProvider): self
20
{
21
$id = $gridProvider->
getId
();
22
$provider =
new
PropertyFilterProvider
($iblockId, $gridProvider);
23
24
return
new
static
($id, $provider);
25
}
26
32
public
function
toArray
(): array
33
{
34
return
[
35
'FILTER_ID'
=> $this->
getID
(),
36
'FILTER'
=> $this->
getFieldArrays
(),
37
'FILTER_PRESETS'
=> [],
38
'ENABLE_LABEL'
=>
true
,
39
'THEME'
=>
Theme::LIGHT
,
40
'CONFIG'
=> [
41
'AUTOFOCUS'
=>
false
,
42
],
43
];
44
}
45
}
Bitrix\Iblock\Integration\UI\Grid\Filter\Property\PropertyFilter
Definition
PropertyFilter.php:10
Bitrix\Iblock\Integration\UI\Grid\Filter\Property\PropertyFilter\toArray
toArray()
Definition
PropertyFilter.php:32
Bitrix\Iblock\Integration\UI\Grid\Filter\Property\PropertyFilter\create
static create(int $iblockId, PropertyGridProvider $gridProvider)
Definition
PropertyFilter.php:19
Bitrix\Iblock\Integration\UI\Grid\Filter\Property\PropertyFilterProvider
Definition
PropertyFilterProvider.php:14
Bitrix\Iblock\Integration\UI\Grid\Property\PropertyGridProvider
Definition
PropertyGridProvider.php:14
Bitrix\Iblock\Integration\UI\Grid\Property\PropertyGridProvider\getId
getId()
Definition
PropertyGridProvider.php:31
Bitrix\Main\Filter\Filter
Definition
filter.php:5
Bitrix\Main\Filter\Filter\getID
getID()
Definition
filter.php:59
Bitrix\Main\Filter\Filter\getFieldArrays
getFieldArrays(array $fieldMask=[])
Definition
filter.php:108
Bitrix\Main\UI\Filter\Theme
Definition
theme.php:11
Bitrix\Main\UI\Filter\Theme\LIGHT
const LIGHT
Definition
theme.php:15
Bitrix\Iblock\Integration\UI\Grid\Filter\Property
Definition
PropertyFilter.php:3
modules
iblock
lib
Integration
UI
Grid
Filter
Property
PropertyFilter.php
Создано системой
1.10.0