• Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/integration/report/reporthandlerfactory.php
  • Класс: Bitrix\Crm\Integration\Report\ReportHandlerFactory
  • Вызов: ReportHandlerFactory::createWithReportId
static function createWithReportId($reportGId)
{
	if(!Loader::includeModule("report"))
	{
		return null;
	}

	$report = Report::getReportByGId($reportGId);
	if(!$report)
	{
		return null;
	}

	$handler = $report->getReportHandler(true);

	if($handler instanceof Handler\Base)
	{
		return $handler;
	}

	return null;
}