Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
common.php
1<?php
2
4
5
10final class Common
11{
12 const INTERNAL_MODULE_ID = 'report';
13 const EVENT_REPORT_COLLECT = 'onReportsCollect';
14 const EVENT_WIDGET_COLLECT = 'onWidgetCollect';
15 const EVENT_DEFAULT_BOARDS_COLLECT = 'onDefaultBoardsCollect';
16 const MODULE_NAME = 'report';
17 const EVENT_CATEGORY_COLLECT = 'onReportCategoryCollect';
18 const EVENT_VIEW_TYPE_COLLECT = 'onReportViewCollect';
19 const EVENT_ANALYTIC_PAGE_COLLECT = 'onAnalyticPageCollect';
20 const EVENT_ANALYTIC_PAGE_BATCh_COLLECT = 'onAnalyticPageBatchCollect';
21
22
23 const UNIT_MEASUREMENT_COUNT = 'count';
24 const UNIT_MEASUREMENT_PERCENTAGE = 'percentage';
25
26 const MULTIPLE_REPORT_TYPE = 'multiple';
27 const MULTIPLE_GROUPED_REPORT_TYPE = 'multipleGrouped';
28 const MULTIPLE_BI_GROUPED_REPORT_TYPE = 'multipleBiGrouped';
29 const SINGLE_REPORT_TYPE = 'single';
30
31 const ONE_TO_ONE = 'oneToOne';
32 const MANY_TO_ONE = 'manyToOne';
33 const ONE_TO_MANY = 'oneToMany';
34 const MANY_TO_MANY = 'manyToMany';
35
36
37 public static $reportImplementationTypesMap = array(
38 self::SINGLE_REPORT_TYPE => array(
39 'interface' => 'Bitrix\Report\VisualConstructor\IReportSingleData',
40 'method' => 'getSingleData',
41 'demoMethod' => 'getSingleDemoData'
42 ),
43 self::MULTIPLE_REPORT_TYPE => array(
44 'interface' => 'Bitrix\Report\VisualConstructor\IReportMultipleData',
45 'method' => 'getMultipleData',
46 'demoMethod' => 'getMultipleDemoData'
47 ),
48 self::MULTIPLE_GROUPED_REPORT_TYPE => array(
49 'interface' => 'Bitrix\Report\VisualConstructor\IReportMultipleGroupedData',
50 'method' => 'getMultipleGroupedData',
51 'demoMethod' => 'getMultipleGroupedDemoData'
52 ),
53 self::MULTIPLE_BI_GROUPED_REPORT_TYPE => array(
54 'interface' => 'Bitrix\Report\VisualConstructor\IReportMultipleBiGroupedData',
55 'method' => 'getMultipleBiGroupedData',
56 'demoMethod' => 'getMultipleBiGroupedDemoData'
57 ),
58 );
59}