Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
reportprovider.php
1
<?php
2
namespace
Bitrix\Report\VisualConstructor\RuntimeProvider
;
3
4
use Bitrix\Report\VisualConstructor\BaseReportHandler;
5
use
Bitrix\Report\VisualConstructor\Handler\BaseReport
;
6
use
Bitrix\Report\VisualConstructor\Internal\Manager\ReportManager
;
7
13
class
ReportProvider
extends
Base
14
{
18
protected
function
availableFilterKeys
()
19
{
20
return
array(
'reportClassName'
,
'categories'
,
'unit'
,
'dataType'
,
'primary'
);
21
}
22
26
protected
function
availableRelations
()
27
{
28
return
array(
'category'
,
'unit'
);
29
}
30
34
protected
function
getManagerInstance
()
35
{
36
return
ReportManager::getInstance
();
37
}
38
42
protected
function
getEntitiesList
()
43
{
44
return
$this->
getManagerInstance
()->getReportList();
45
}
46
50
protected
function
getIndices
()
51
{
52
return
$this->
getManagerInstance
()->getIndices();
53
}
54
58
protected
function
processWithCategory
(
BaseReport
$report)
59
{
60
$categoryProvider =
new
CategoryProvider
();
61
$categoryProvider->addFilter(
'primary'
, $report->
getCategoryKey
());
62
$categoryProvider->execute();
63
$results = $categoryProvider->getResults();
64
$report->category = reset($results);
65
}
66
71
public
static
function
getReportHandlerByClassName
($className)
72
{
73
$reportProvider =
new
ReportProvider
();
74
$reportProvider->addFilter(
'reportClassName'
, $className);
75
return
$reportProvider->execute()->getFirstResult();
76
}
77
78
}
Bitrix\Report\VisualConstructor\Handler\BaseReport
Definition
basereport.php:29
Bitrix\Report\VisualConstructor\Handler\BaseReport\getCategoryKey
getCategoryKey()
Definition
basereport.php:354
Bitrix\Report\VisualConstructor\Internal\Manager\Base\getInstance
static getInstance()
Definition
base.php:40
Bitrix\Report\VisualConstructor\Internal\Manager\ReportManager
Definition
reportmanager.php:15
Bitrix\Report\VisualConstructor\RuntimeProvider\Base
Definition
base.php:14
Bitrix\Report\VisualConstructor\RuntimeProvider\CategoryProvider
Definition
categoryprovider.php:13
Bitrix\Report\VisualConstructor\RuntimeProvider\ReportProvider
Definition
reportprovider.php:14
Bitrix\Report\VisualConstructor\RuntimeProvider\ReportProvider\getIndices
getIndices()
Definition
reportprovider.php:50
Bitrix\Report\VisualConstructor\RuntimeProvider\ReportProvider\availableFilterKeys
availableFilterKeys()
Definition
reportprovider.php:18
Bitrix\Report\VisualConstructor\RuntimeProvider\ReportProvider\processWithCategory
processWithCategory(BaseReport $report)
Definition
reportprovider.php:58
Bitrix\Report\VisualConstructor\RuntimeProvider\ReportProvider\getEntitiesList
getEntitiesList()
Definition
reportprovider.php:42
Bitrix\Report\VisualConstructor\RuntimeProvider\ReportProvider\availableRelations
availableRelations()
Definition
reportprovider.php:26
Bitrix\Report\VisualConstructor\RuntimeProvider\ReportProvider\getReportHandlerByClassName
static getReportHandlerByClassName($className)
Definition
reportprovider.php:71
Bitrix\Report\VisualConstructor\RuntimeProvider\ReportProvider\getManagerInstance
getManagerInstance()
Definition
reportprovider.php:34
Bitrix\Report\VisualConstructor\RuntimeProvider
Definition
analyticboardbatchprovider.php:2
modules
report
lib
visualconstructor
runtimeprovider
reportprovider.php
Создано системой
1.10.0