• Модуль: sale
  • Путь к файлу: ~/bitrix/modules/sale/lib/integration/report/eventhandler.php
  • Класс: BitrixSaleIntegrationReportEventHandler
  • Вызов: EventHandler::onAnalyticPageBatchCollect
static function onAnalyticPageBatchCollect()
{
	$batchList = [];
	if(!CBXFeatures::IsFeatureEnabled('SaleReports'))
	{
		return $batchList;
	}

	$batch = new AnalyticBoardBatch();
	$batch->setKey(static::BATCH_INTERNET_SHOP);
	$batch->setTitle(Loc::getMessage("SALE_REPORT_INTERNET_SHOP_BATCH_TITLE"));
	$batch->setOrder(300);

	if (method_exists($batch, 'setGroup'))
	{
		$batch->setGroup(self::BATCH_GROUP_SALES_GENERAL);
	}

	$batchList[] = $batch;

	return $batchList;
}