Bitrix-D7
23.9
Загрузка...
Поиск...
Не найдено
base.php
1
<?php
2
3
namespace
Bitrix\Report\VisualConstructor\Views\JsComponent\AmChart
;
4
5
use
Bitrix\Main\Localization\Loc
;
6
use
Bitrix\Report\VisualConstructor\Handler\BaseWidget
;
7
8
13
abstract
class
Base
extends
\Bitrix\Report\VisualConstructor\Views\JsComponent\Base
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
}
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\Fields\Base\setDisplay
setDisplay($display)
Definition
base.php:518
Bitrix\Report\VisualConstructor\Handler\BaseWidget
Definition
basewidget.php:16
Bitrix\Report\VisualConstructor\View\setJsClassName
setJsClassName($jsClassName)
Definition
view.php:383
Bitrix\Report\VisualConstructor\View\setHeight
setHeight($height)
Definition
view.php:56
Bitrix\Report\VisualConstructor\Views\JsComponent\AmChart\Base
Definition
base.php:14
Bitrix\Report\VisualConstructor\Views\JsComponent\AmChart\Base\__construct
__construct()
Definition
base.php:19
Bitrix\Report\VisualConstructor\Views\JsComponent\AmChart\Base\AM_CHART_LIB_PATH
const AM_CHART_LIB_PATH
Definition
base.php:15
Bitrix\Report\VisualConstructor\Views\JsComponent\AmChart\Base\getAmChartType
getAmChartType()
Bitrix\Report\VisualConstructor\Views\JsComponent\AmChart\Base\handlerFinallyBeforePassToView
handlerFinallyBeforePassToView($data)
Definition
base.php:31
Bitrix\Report\VisualConstructor\Views\JsComponent\AmChart\Base\collectWidgetHandlerFormElements
collectWidgetHandlerFormElements(BaseWidget $widgetHandler)
Definition
base.php:48
Bitrix\Report\VisualConstructor\Views\JsComponent\Base
Definition
base.php:14
Bitrix\Report\VisualConstructor\Views\JsComponent\AmChart
Definition
base.php:3
modules
report
lib
visualconstructor
views
jscomponent
amchart
base.php
Создано системой
1.10.0