• Модуль: iblock
  • Путь к файлу: ~/bitrix/modules/iblock/lib/component/base.php
  • Класс: BitrixIblockComponentBase
  • Вызов: Base::initElementList
protected function initElementList()
{
	$this->storage['CURRENCY_LIST'] = array();
	$this->storage['DEFAULT_MEASURE'] = $this->getDefaultMeasure();

	$this->initQueryFields();

	foreach ($this->iblockProducts as $iblock => $products)
	{
		$elementIterator = $this->getElementList($iblock, $products);
		$iblockElements = $this->getIblockElements($elementIterator);

		if (!empty($iblockElements) && !$this->hasErrors())
		{
			$this->modifyDisplayProperties($iblock, $iblockElements);
			$this->elements = array_merge($this->elements, array_values($iblockElements));
			$this->iblockProducts[$iblock] = array_keys($iblockElements);
		}

		unset($elementIterator, $iblockElements, $element);
	}
}