Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
emptyreport.php
1
<?php
2
3
namespace
Bitrix\Report\VisualConstructor\Handler
;
4
5
use
Bitrix\Main\Localization\Loc
;
6
use
Bitrix\Report\VisualConstructor\IReportMultipleBiGroupedData
;
7
use
Bitrix\Report\VisualConstructor\IReportMultipleData
;
8
use
Bitrix\Report\VisualConstructor\IReportMultipleGroupedData
;
9
use
Bitrix\Report\VisualConstructor\IReportSingleData
;
10
15
class
EmptyReport
extends
BaseReport
implements
IReportMultipleBiGroupedData
,
IReportMultipleGroupedData
,
IReportMultipleData
,
IReportSingleData
16
{
17
21
public
function
__construct
()
22
{
23
parent::__construct();
24
$this->
setTitle
(
Loc::getMessage
(
'EMPTY_REPORT_HANDLER'
));
25
}
26
32
public
function
collectFormElements
()
33
{
34
parent::collectFormElements();
35
$groupingField = $this->
getFormElement
(
'groupingBy'
);
36
if
($groupingField)
37
{
38
$this->
removeFormElement
($groupingField);
39
}
40
41
$calculateField = $this->
getFormElement
(
'calculate'
);
42
if
($calculateField)
43
{
44
$this->
removeFormElement
($calculateField);
45
}
46
47
48
}
49
95
public
function
getMultipleBiGroupedData
()
96
{
97
return
array();
98
}
99
103
public
function
getMultipleBiGroupedDemoData
()
104
{
105
return
array();
106
}
107
121
public
function
getMultipleData
()
122
{
123
return
array();
124
}
125
129
public
function
getMultipleDemoData
()
130
{
131
return
array();
132
}
133
161
public
function
getMultipleGroupedData
()
162
{
163
return
array();
164
}
165
169
public
function
getMultipleGroupedDemoData
()
170
{
171
return
array();
172
}
173
177
public
function
getSingleDemoData
()
178
{
179
return
array();
180
}
181
182
186
public
function
getSingleData
()
187
{
188
$data = array();
189
$colorFieldValue = $this->
getFormElement
(
'color'
);
190
191
$data[
'title'
] = $this->
getFormElement
(
'label'
)->getValue();
192
$data[
'config'
][
'color'
] = $colorFieldValue ? $colorFieldValue->getValue() :
'#ffffff'
;
193
return
$data;
194
}
195
202
public
function
prepare
()
203
{
204
return
null
;
205
}
206
}
Bitrix\Main\Localization\Loc
Definition
loc.php:11
Bitrix\Main\Localization\Loc\getMessage
static getMessage($code, $replace=null, $language=null)
Definition
loc.php:29
Bitrix\Report\VisualConstructor\Handler\Base\getFormElement
getFormElement($fieldKey)
Definition
base.php:281
Bitrix\Report\VisualConstructor\Handler\Base\removeFormElement
removeFormElement(BaseFormElement $element)
Definition
base.php:340
Bitrix\Report\VisualConstructor\Handler\BaseReport
Definition
basereport.php:29
Bitrix\Report\VisualConstructor\Handler\BaseReport\setTitle
setTitle($title)
Definition
basereport.php:258
Bitrix\Report\VisualConstructor\Handler\EmptyReport
Definition
emptyreport.php:16
Bitrix\Report\VisualConstructor\Handler\EmptyReport\__construct
__construct()
Definition
emptyreport.php:21
Bitrix\Report\VisualConstructor\Handler\EmptyReport\getMultipleBiGroupedData
getMultipleBiGroupedData()
Definition
emptyreport.php:95
Bitrix\Report\VisualConstructor\Handler\EmptyReport\prepare
prepare()
Definition
emptyreport.php:202
Bitrix\Report\VisualConstructor\Handler\EmptyReport\getMultipleDemoData
getMultipleDemoData()
Definition
emptyreport.php:129
Bitrix\Report\VisualConstructor\Handler\EmptyReport\getSingleDemoData
getSingleDemoData()
Definition
emptyreport.php:177
Bitrix\Report\VisualConstructor\Handler\EmptyReport\getMultipleData
getMultipleData()
Definition
emptyreport.php:121
Bitrix\Report\VisualConstructor\Handler\EmptyReport\getSingleData
getSingleData()
Definition
emptyreport.php:186
Bitrix\Report\VisualConstructor\Handler\EmptyReport\getMultipleBiGroupedDemoData
getMultipleBiGroupedDemoData()
Definition
emptyreport.php:103
Bitrix\Report\VisualConstructor\Handler\EmptyReport\getMultipleGroupedData
getMultipleGroupedData()
Definition
emptyreport.php:161
Bitrix\Report\VisualConstructor\Handler\EmptyReport\collectFormElements
collectFormElements()
Definition
emptyreport.php:32
Bitrix\Report\VisualConstructor\Handler\EmptyReport\getMultipleGroupedDemoData
getMultipleGroupedDemoData()
Definition
emptyreport.php:169
Bitrix\Report\VisualConstructor\IReportMultipleBiGroupedData
Definition
ireportmultiplebigroupeddata.php:10
Bitrix\Report\VisualConstructor\IReportMultipleData
Definition
ireportmultipledata.php:9
Bitrix\Report\VisualConstructor\IReportMultipleGroupedData
Definition
ireportmultiplegroupeddata.php:9
Bitrix\Report\VisualConstructor\IReportSingleData
Definition
ireportsingledata.php:10
Bitrix\Report\VisualConstructor\Handler
Definition
base.php:2
modules
report
lib
visualconstructor
handler
emptyreport.php
Создано системой
1.10.0