• Модуль: report
  • Путь к файлу: ~/bitrix/modules/report/lib/visualconstructor/controller/report.php
  • Класс: BitrixReportVisualConstructorControllerReport
  • Вызов: Report::getReportHandlersByCategoryAction
public function getReportHandlersByCategoryAction($categoryKey = '__')
{
	$result = array();
	$reports = new ReportProvider();
	if ($categoryKey !== '__')
	{
		$reports->addFilter('categories', array($categoryKey));
	}

	$reports->execute();

	/** @var BaseReport[] $reportHandlers */
	$reportHandlers = $reports->getResults();
	foreach ($reportHandlers as $report)
	{
		$result[$report::getClassName()] = $report->getTitle();
	}
	return $result;
}