• Модуль: iblock
  • Путь к файлу: ~/bitrix/modules/iblock/lib/component/base.php
  • Класс: BitrixIblockComponentBase
  • Вызов: Base::getElementList
protected function getElementList($iblockId, $products)
{
	$selectFields = $this->getIblockSelectFields($iblockId);

	$filterFields = $this->filterFields;
	if ($iblockId > 0)
	{
		$filterFields['IBLOCK_ID'] = $iblockId;
	}
	if (!empty($products))
	{
		$filterFields['ID'] = $products;
	}

	$globalFilter = [];
	if (!empty($this->globalFilter))
		$globalFilter = $this->convertFilter($this->globalFilter);

	$iteratorParams = [
		'select' => $selectFields,
		'filter' => array_merge($globalFilter, $filterFields),
		'order' => $this->sortFields,
		'navigation' => $this->navParams
	];
	if ($this->isSeparateLoading() && $iblockId > 0)
	{
		$elementIterator = $this->getSeparateList($iteratorParams);
	}
	else
	{
		$elementIterator = $this->getFullIterator($iteratorParams);
	}
	unset($iteratorParams);

	$elementIterator->SetUrlTemplates($this->arParams['DETAIL_URL']);

	return $elementIterator;
}