• Модуль: report
  • Путь к файлу: ~/bitrix/modules/report/lib/visualconstructor/entity/report.php
  • Класс: BitrixReportVisualConstructorEntityReport
  • Вызов: Report::getReportHandler
public function getReportHandler($isRuntime = false)
{
	if (!$this->reportHandler)
	{
		$reportHandlerFromEvent = ReportProvider::getReportHandlerByClassName($this->reportClassName);
		if ($reportHandlerFromEvent)
		{
			$this->reportHandler = new $reportHandlerFromEvent;
			$this->reportHandler->setView($this->getWidget()->getWidgetHandler()->getView());
			if (!$isRuntime)
			{
				$this->loadAttribute('configurations');
			}
			$this->reportHandler->fillReport($this);
		}
		else
		{
			$this->errors[] = new Error('No such report handler with this class');
			return null;
		}
	}
	return $this->reportHandler;
}