Helper::setFieldTypeFilter

  1. Bitrix24 API (v. 23.675.0)
  2. sender
  3. Helper
  4. setFieldTypeFilter
  • Модуль: sender
  • Путь к файлу: ~/bitrix/modules/sender/lib/integration/crm/connectors/helper.php
  • Класс: Bitrix\Sender\Integration\Crm\Connectors\Helper
  • Вызов: Helper::setFieldTypeFilter
static function setFieldTypeFilter($filterKey, array $fieldData, &$filter)
{
	$fieldData['filter-key'] = $filterKey;
	switch(mb_strtoupper($fieldData['type']))
	{
		case UiFilterType::DATE:
			Connector\Filter\DateField::create($fieldData)->applyFilter($filter);
			break;
		case UiFilterType::NUMBER:
			Connector\Filter\NumberField::create($fieldData)->applyFilter($filter);
			break;
		case UiFilterType::DEST_SELECTOR:
			Connector\Filter\DestSelectorField::create($fieldData)->applyFilter($filter);
			break;
	}
}

Добавить комментарий