Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
eventhandler.php
1
<?php
2
3
namespace
Bitrix\Report\VisualConstructor
;
4
5
use
Bitrix\Report\VisualConstructor\Handler\BaseWidget
;
6
use
Bitrix\Report\VisualConstructor\Handler\EmptyReport
;
7
use
Bitrix\Report\VisualConstructor\Views\Component\Grid
;
8
use
Bitrix\Report\VisualConstructor\Views\Component\GroupedDataGrid
;
9
use
Bitrix\Report\VisualConstructor\Views\JsComponent\Activity
;
10
use
Bitrix\Report\VisualConstructor\Views\JsComponent\AmChart\ColumnLogarithmic
;
11
use
Bitrix\Report\VisualConstructor\Views\JsComponent\AmChart\DonutDiagram
;
12
use
Bitrix\Report\VisualConstructor\Views\JsComponent\AmChart\Funnel
;
13
use
Bitrix\Report\VisualConstructor\Views\JsComponent\AmChart\LinearGraph
;
14
use
Bitrix\Report\VisualConstructor\Views\JsComponent\AmChart\MultiDirectional
;
15
use
Bitrix\Report\VisualConstructor\Views\JsComponent\AmChart\PieDiagram
;
16
use \Bitrix\Report\VisualConstructor\Views\JsComponent\AmChart\Column;
17
use
Bitrix\Report\VisualConstructor\Views\JsComponent\AmChart\SmoothedGraph
;
18
use
Bitrix\Report\VisualConstructor\Views\JsComponent\AmChart\Stack
;
19
use
Bitrix\Report\VisualConstructor\Views\Component\Number
;
20
use
Bitrix\Report\VisualConstructor\Views\Component\NumberBlock
;
21
26
class
EventHandler
27
{
28
32
public
static
function
onWidgetCollect
()
33
{
34
$widget =
new
BaseWidget
();
35
$result[] = $widget;
36
return
$result;
37
}
38
42
public
static
function
onReportsCollect
()
43
{
44
$emptyReportHandler =
new
EmptyReport
();
45
// $formula = new Formula();
46
$result[] = $emptyReportHandler;
47
// $result[] = $formula;
48
49
return
$result;
50
}
51
55
public
static
function
onCategoriesCollect
()
56
{
57
$main =
new
Category
();
58
$main->setKey(
'main'
);
59
$main->setLabel(
'Main'
);
60
61
$categories[] = $main;
62
return
$categories;
63
}
64
68
public
static
function
onViewsCollect
()
69
{
70
71
return
array(
72
new
PieDiagram
(),
73
new
DonutDiagram
(),
74
new
Column
(),
75
new
ColumnLogarithmic
(),
76
new
Stack
(),
77
new
LinearGraph
(),
78
new
SmoothedGraph
(),
79
new
Number
(),
80
new
NumberBlock
(),
81
new
Grid
(),
82
// new NumberBlockWithFormula(),
83
new
Funnel
(),
84
new
MultiDirectional
(),
85
new
Activity
(),
86
new
GroupedDataGrid
()
87
);
88
}
89
90
}
Bitrix\Report\VisualConstructor\Category
Definition
category.php:12
Bitrix\Report\VisualConstructor\EventHandler
Definition
eventhandler.php:27
Bitrix\Report\VisualConstructor\EventHandler\onViewsCollect
static onViewsCollect()
Definition
eventhandler.php:68
Bitrix\Report\VisualConstructor\EventHandler\onReportsCollect
static onReportsCollect()
Definition
eventhandler.php:42
Bitrix\Report\VisualConstructor\EventHandler\onWidgetCollect
static onWidgetCollect()
Definition
eventhandler.php:32
Bitrix\Report\VisualConstructor\EventHandler\onCategoriesCollect
static onCategoriesCollect()
Definition
eventhandler.php:55
Bitrix\Report\VisualConstructor\Handler\BaseWidget
Definition
basewidget.php:16
Bitrix\Report\VisualConstructor\Handler\EmptyReport
Definition
emptyreport.php:16
Bitrix\Report\VisualConstructor\Views\Component\Grid
Definition
grid.php:10
Bitrix\Report\VisualConstructor\Views\Component\GroupedDataGrid
Definition
groupeddatagrid.php:18
Bitrix\Report\VisualConstructor\Views\Component\NumberBlock
Definition
numberblock.php:22
Bitrix\Report\VisualConstructor\Views\Component\Number
Definition
number.php:17
Bitrix\Report\VisualConstructor\Views\JsComponent\Activity
Definition
activity.php:16
Bitrix\Report\VisualConstructor\Views\JsComponent\AmChart\Column
Definition
column.php:11
Bitrix\Report\VisualConstructor\Views\JsComponent\AmChart\ColumnLogarithmic
Definition
columnlogarithmic.php:8
Bitrix\Report\VisualConstructor\Views\JsComponent\AmChart\DonutDiagram
Definition
donutdiagram.php:13
Bitrix\Report\VisualConstructor\Views\JsComponent\AmChart\Funnel
Definition
funnel.php:13
Bitrix\Report\VisualConstructor\Views\JsComponent\AmChart\LinearGraph
Definition
lineargraph.php:12
Bitrix\Report\VisualConstructor\Views\JsComponent\AmChart\MultiDirectional
Definition
multidirectional.php:17
Bitrix\Report\VisualConstructor\Views\JsComponent\AmChart\PieDiagram
Definition
piediagram.php:15
Bitrix\Report\VisualConstructor\Views\JsComponent\AmChart\SmoothedGraph
Definition
smoothedgraph.php:12
Bitrix\Report\VisualConstructor\Views\JsComponent\AmChart\Stack
Definition
stack.php:12
Bitrix\Report\VisualConstructor
Definition
analyticboard.php:2
modules
report
lib
visualconstructor
eventhandler.php
Создано системой
1.10.0