• Модуль: iblock
  • Путь к файлу: ~/bitrix/modules/iblock/lib/component/elementlist.php
  • Класс: BitrixIblockComponentElementList
  • Вызов: ElementList::getFilter
protected function getFilter()
{
	$filterFields = parent::getFilter();
	$filterFields['ACTIVE'] = 'Y';

	if ($this->arParams['HIDE_NOT_AVAILABLE'] === 'Y')
	{
		$filterFields['AVAILABLE'] = 'Y';
	}

	if (!empty($this->arParams['CUSTOM_FILTER']))
	{
		$filterFields[] = $this->arParams['CUSTOM_FILTER'];
	}

	if (!empty($this->arParams['FILTER_IDS']))
	{
		$filterFields['!ID'] = $this->arParams['FILTER_IDS'];
	}

	return $filterFields;
}