Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
formula.php
1
<?php
2
3
namespace
Bitrix\Report\VisualConstructor\Handler
;
4
5
use
Bitrix\Main\Localization\Loc
;
6
use
Bitrix\Report\VisualConstructor\IReportSingleData
;
7
13
class
Formula
extends
BaseReport
implements
IReportSingleData
14
{
18
public
function
__construct
()
19
{
20
parent::__construct();
21
$this->
setTitle
(
Loc::getMessage
(
'FORMULA_REPORT_HANDLER_TILE'
));
22
23
}
24
29
public
function
prepare
()
30
{
31
return
'temp data'
;
32
}
33
43
public
function
getSingleData
()
44
{
45
return
array(
46
'title'
=> $this->
getFormElement
(
'label'
)->getValue(),
47
'value'
=> $this->
getCalculatedData
(),
48
'config'
=> array(
49
'color'
=> $this->
getFormElement
(
'color'
)->getValue()
50
)
51
);
52
}
53
57
public
function
getSingleDemoData
()
58
{
59
return
array(
60
'value'
=> 7
61
);
62
}
63
}
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\BaseReport
Definition
basereport.php:29
Bitrix\Report\VisualConstructor\Handler\BaseReport\getCalculatedData
getCalculatedData()
Definition
basereport.php:301
Bitrix\Report\VisualConstructor\Handler\BaseReport\setTitle
setTitle($title)
Definition
basereport.php:258
Bitrix\Report\VisualConstructor\Handler\Formula
Definition
formula.php:14
Bitrix\Report\VisualConstructor\Handler\Formula\__construct
__construct()
Definition
formula.php:18
Bitrix\Report\VisualConstructor\Handler\Formula\prepare
prepare()
Definition
formula.php:29
Bitrix\Report\VisualConstructor\Handler\Formula\getSingleDemoData
getSingleDemoData()
Definition
formula.php:57
Bitrix\Report\VisualConstructor\Handler\Formula\getSingleData
getSingleData()
Definition
formula.php:43
Bitrix\Report\VisualConstructor\IReportSingleData
Definition
ireportsingledata.php:10
Bitrix\Report\VisualConstructor\Handler
Definition
base.php:2
modules
report
lib
visualconstructor
handler
formula.php
Создано системой
1.10.0