Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
base.php
1<?php
2
4
7
8
14{
15 const AM_CHART_LIB_PATH = '/bitrix/js/main/amcharts/3.21';
19 public function __construct()
20 {
21 $this->setHeight(380);
22 $this->setJsClassName('BX.Report.VisualConstructor.Widget.Content.AmChart');
23 }
24
31 public function handlerFinallyBeforePassToView($data)
32 {
33 return $result = array(
34 'type' => $this->getAmChartType(),
35 'theme' => 'none',
36 'language' => 'ru',
37 'pathToImages' => self::AM_CHART_LIB_PATH . '/images/',
38 'zoomOutText' => Loc::getMessage('AM_CHART_SHOW_ALL_BUTTON_TEXT'),
39 );
40 }
41
48 public function collectWidgetHandlerFormElements(BaseWidget $widgetHandler)
49 {
50 parent::collectWidgetHandlerFormElements($widgetHandler);
51 $widgetHandler->getFormElement('color')->setDisplay(false);
52 }
53
59 abstract protected function getAmChartType();
60}
static getMessage($code, $replace=null, $language=null)
Definition loc.php:29