1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
destselectorfield.php
См. документацию.
1<?php
8namespace Bitrix\Sender\Connector\Filter;
9
15{
22 public function applyFilter(array &$filter = array())
23 {
24 $filterKey = $this->getFilterKey();
25 $filter[$filterKey] = $this->getValue();
26 $data = $this->getData();
27 $data['id'] = $filterKey;
28 \Bitrix\Crm\UI\Filter\EntityHandler::internalize([$data], $filter);
29 }
30
38 {
39 $id = $this->getId();
40 $value = $filterFields[$id] ?? false;
41 if (!array_key_exists($id . '_label', $filterFields))
42 {
43 return $value ? [$id => $value] : [];
44 }
45 $label = $filterFields[$id . '_label'];
46
47 if (!$value || !$label)
48 return [];
49
50 return [
51 '_value' => $value,
52 '_label' => $label
53 ];
54 }
55
56 private function getData()
57 {
58 return $this->data;
59 }
60}
getValue($defaultValue=null)
Определения abstractfield.php:68
applyFilter(array &$filter=array())
Определения destselectorfield.php:22
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Определения file_new.php:804
$filter
Определения iblock_catalog_list.php:54
$filterFields
Определения iblock_catalog_list.php:55