Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
formula.php
1<?php
2
4
7
13class 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}
static getMessage($code, $replace=null, $language=null)
Definition loc.php:29