Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
numberblockwithformula.php
1<?php
2
4
11
17{
18 const VIEW_KEY = 'numberBlockAAA';
21
25 public function __construct()
26 {
27 parent::__construct();
28 $this->setHeight(380);
29 $this->setLabel('Number Block');
30 $this->setLogoUri('/bitrix/images/report/visualconstructor/view-number-block.jpg');
31 $this->setComponentName('bitrix:report.visualconstructor.widget.content.numberblock');
32 $this->setCompatibleDataType(Common::SINGLE_REPORT_TYPE);
33 $this->setJsClassName('BX.Report.VisualConstructor.Widget.Content.NumberBlock');
34 }
35
36
44 {
45
46 $reportHandler = Report::buildReportHandlerForWidget(EmptyReport::getClassName(), $widgetHandler->getWidget());
47 $widgetHandler->addReportHandler($reportHandler);
48 $reportHandler = Report::buildReportHandlerForWidget(EmptyReport::getClassName(), $widgetHandler->getWidget());
49 $widgetHandler->addReportHandler($reportHandler);
50 $reportHandler = Report::buildReportHandlerForWidget(Formula::getClassName(), $widgetHandler->getWidget());
51 $widgetHandler->addReportHandler($reportHandler);
52 return $widgetHandler;
53 }
54
61 public function collectReportHandlerFormElements($reportHandler)
62 {
63 parent::collectReportHandlerFormElements($reportHandler);
64 if ($reportHandler instanceof Formula)
65 {
66 $reportHandler->getFormElement('calculate')->setDisplay(false);
67 $reportHandler->getFormElement('reportCategory')->setDisplay(false);
68 }
69 }
70}
setCompatibleDataType($compatibleDataType)
Definition view.php:121