Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
PropertyFilter.php
1<?php
2
4
8
9class 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}
static create(int $iblockId, PropertyGridProvider $gridProvider)
getFieldArrays(array $fieldMask=[])
Definition filter.php:108