DealDataSource::applyFilterContext

  1. Bitrix24 API (v. 23.675.0)
  2. crm
  3. DealDataSource
  4. applyFilterContext
  • Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/widget/data/dealdatasource.php
  • Класс: Bitrix\Crm\Widget\Data\DealDataSource
  • Вызов: DealDataSource::applyFilterContext
public function applyFilterContext(Filter $filter)
{
	if($filter->getExtraParam('dealCategoryID', '') === '?')
	{
		$context = is_array($this->filterContextData) ? $this->filterContextData : array();
		$categoryID = isset($context['dealCategoryID']) ? (int)$context['dealCategoryID'] : -1;
		if($categoryID >= 0)
		{
			$filter->setExtraParam('dealCategoryID', $categoryID);
		}
		else
		{
			$filter->removeExtraParam('dealCategoryID');
		}
	}
}

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