Server IP : 80.87.202.40 / Your IP : 216.73.216.169 Web Server : Apache System : Linux rospirotorg.ru 5.14.0-539.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Dec 5 22:26:13 UTC 2024 x86_64 User : bitrix ( 600) PHP Version : 8.2.27 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /home/bitrix/ext_www/rospirotorg.ru/bitrix/modules/report/lib/visualconstructor/ |
Upload File : |
<?php namespace Bitrix\Report\VisualConstructor; use Bitrix\Report\VisualConstructor\Handler\BaseWidget; use Bitrix\Report\VisualConstructor\Handler\EmptyReport; use Bitrix\Report\VisualConstructor\Views\Component\Grid; use Bitrix\Report\VisualConstructor\Views\Component\GroupedDataGrid; use Bitrix\Report\VisualConstructor\Views\JsComponent\Activity; use Bitrix\Report\VisualConstructor\Views\JsComponent\AmChart\ColumnLogarithmic; use Bitrix\Report\VisualConstructor\Views\JsComponent\AmChart\DonutDiagram; use Bitrix\Report\VisualConstructor\Views\JsComponent\AmChart\Funnel; use Bitrix\Report\VisualConstructor\Views\JsComponent\AmChart\LinearGraph; use Bitrix\Report\VisualConstructor\Views\JsComponent\AmChart\MultiDirectional; use Bitrix\Report\VisualConstructor\Views\JsComponent\AmChart\PieDiagram; use \Bitrix\Report\VisualConstructor\Views\JsComponent\AmChart\Column; use Bitrix\Report\VisualConstructor\Views\JsComponent\AmChart\SmoothedGraph; use Bitrix\Report\VisualConstructor\Views\JsComponent\AmChart\Stack; use Bitrix\Report\VisualConstructor\Views\Component\Number; use Bitrix\Report\VisualConstructor\Views\Component\NumberBlock; /** * Class EventHandler * @package Bitrix\Report\VisualConstructor */ class EventHandler { /** * @return BaseWidgetHandler[] */ public static function onWidgetCollect() { $widget = new BaseWidget(); $result[] = $widget; return $result; } /** * @return BaseReportHandler[] */ public static function onReportsCollect() { $emptyReportHandler = new EmptyReport(); // $formula = new Formula(); $result[] = $emptyReportHandler; // $result[] = $formula; return $result; } /** * @return Category[] */ public static function onCategoriesCollect() { $main = new Category(); $main->setKey('main'); $main->setLabel('Main'); $categories[] = $main; return $categories; } /** * @return View[] */ public static function onViewsCollect() { return array( new PieDiagram(), new DonutDiagram(), new Column(), new ColumnLogarithmic(), new Stack(), new LinearGraph(), new SmoothedGraph(), new Number(), new NumberBlock(), new Grid(), // new NumberBlockWithFormula(), new Funnel(), new MultiDirectional(), new Activity(), new GroupedDataGrid() ); } }