• Модуль: catalog
  • Путь к файлу: ~/bitrix/modules/catalog/lib/component/reportproductlist.php
  • Класс: BitrixCatalogComponentReportProductList
  • Вызов: ReportProductList::executeComponent
public function executeComponent()
{
	if (!$this->checkModules())
	{
		$this->includeComponentTemplate();

		return;
	}

	if (!$this->checkDocumentReadRights())
	{
		$this->arResult['ERROR_MESSAGES'][] = Loc::getMessage('CATALOG_REPORT_PRODUCT_LIST_NO_READ_RIGHTS_ERROR');
		$this->includeComponentTemplate();

		return;
	}

	$this->init();

	$this->loadMeasures();
	$this->arResult['GRID'] = $this->getGridData();
	$this->arResult['STORE_TITLE'] = htmlspecialcharsbx($this->getStoreTitle());
	if (empty($this->arResult['STORE_TITLE']))
	{
		$this->arResult['STORE_TITLE'] = Loc::getMessage('CATALOG_REPORT_PRODUCT_LIST_DEFAULT_STORE_NAME');
	}

	$filterOptions = [
		'GRID_ID' => $this->getGridId(),
		'FILTER_ID' => $this->getFilterId(),
		'FILTER' => $this->getFilterFields(),
		'FILTER_PRESETS' => [],
		'ENABLE_LABEL' => true,
		'THEME' => BitrixMainUIFilterTheme::LIGHT,
	];
	$this->arResult['FILTER_OPTIONS'] = $filterOptions;

	$this->includeComponentTemplate();
}