Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
report.php
1<?php
3
6
11class Report extends Base
12{
17 public function getReportHandlersByCategoryAction($categoryKey = '__')
18 {
19 $result = array();
20 $reports = new ReportProvider();
21 if ($categoryKey !== '__')
22 {
23 $reports->addFilter('categories', array($categoryKey));
24 }
25
26 $reports->execute();
27
29 $reportHandlers = $reports->getResults();
30 foreach ($reportHandlers as $report)
31 {
32 $result[$report::getClassName()] = $report->getTitle();
33 }
34 return $result;
35 }
36}