Bitrix-D7 23.9
 
Загрузка...
Поиск...
Не найдено
Класс GraphHandler
+ Граф наследования:GraphHandler:

Открытые члены

 getMultipleGroupedData ()
 
 getMultipleGroupedDemoData ()
 
 prepare ()
 
- Открытые члены унаследованные от BaseHandler
 getMultipleData ()
 
 getMultipleDemoData ()
 
- Открытые члены унаследованные от BaseReport
 __construct ()
 
 getCollectedFormElements ()
 
 getCalculateField ()
 
 getGroupingField (DropDown $whatWillCalculateField)
 
 getFormElements ()
 
 getTitle ()
 
 setTitle ($title)
 
 getWeight ()
 
 setWeight ($weight)
 
 getReport ()
 
 setReport ($report)
 
 getCalculatedData ()
 
 setCalculatedData ($calculatedData)
 
 fillReport (Report $report)
 
 getCategoryKey ()
 
 getUnitKey ()
 
 getReportImplementedDataTypes ()
 
 getWidgetHandler ()
 
 setWidgetHandler (BaseWidget $widgetHandler)
 
 __clone ()
 
 getWhatWillCalculateOptions ($groupingValue=null)
 
 isEnabled ()
 
- Открытые члены унаследованные от Base
 getFormElementFromCollected ($key)
 
 addFormElement (BaseFormElement $element)
 
 addFormElementBefore (BaseFormElement $newElement, BaseFormElement $targetElement)
 
 addFormElementAfter (BaseFormElement $newElement, BaseFormElement $targetElement)
 
 addFormElementToStart (BaseFormElement $newElement)
 
 addFormElementToEnd (BaseFormElement $newElement)
 
 setFormElements ($formElementList)
 
 updateFormElementValue ($formElement, $value)
 
 getFormElement ($fieldKey)
 
 getFormElementValue ($fieldKey)
 
 getFormElementByDataAttribute ($attributeKey, $value)
 
 removeFormElement (BaseFormElement $element)
 
 setConfigurations ($configurations)
 
 getConfigurations ()
 
 getConfigurationsGidKeyed ()
 
 getConfiguration ($key)
 
 getView ()
 
 setView (View $view)
 

Защищенные данные

const COLORS
 
- Защищенные данные унаследованные от BaseHandler
const MAX_CHART_COLUMNS_COUNT = 5
 
const MAX_STORES_LIST_CHARS = 25
 
- Защищенные данные унаследованные от Base
 $configurations = array()
 
 $view
 
 $formElementsList = array()
 

Дополнительные унаследованные члены

- Открытые статические члены унаследованные от Base
static getClassName ()
 
- Защищенные члены унаследованные от ProfitHandler
 preparePriceFields (array $fields, string $currency)
 
 getBaseCurrency ()
 
 getStoreTotals ()
 
 prepareOverallTotals (array $storeTotals)
 
 calculateProfitability (float $costPrice, float $profit)
 
 getProductFilter (array $productFilter)
 
- Защищенные члены унаследованные от BaseHandler
 getFormattedFilter ()
 
 getFilter ()
 
 getFilterParameters ()
 
- Защищенные члены унаследованные от BaseReport
 collectFormElements ()
 
 getGroupByOptions ()
 
 getNameForFormElement (BaseValuable $element, $pseudoReportId='')
 
 setCategoryKey ($categoryKey)
 
 setUnitKey ($unitKey)
 
- Защищенные члены унаследованные от Base
 getNameForFormElement (BaseValuable $element)
 
- Защищенные статические члены унаследованные от BaseHandler
static formChartSliderUrl (string $componentName, array $filter)
 
static getAnalyticBoardByKey ($key)
 
static getNoAccessToStoresStub ()
 

Подробное описание

См. определение в файле graphhandler.php строка 15

Методы

◆ getMultipleGroupedData()

getMultipleGroupedData ( )

Array format for return this method:
array( 'items' => array( array( 'groupBy' => 01.01.1970 or 15 etc. 'title' => 'Some Title', 'value' => 1, 'targetUrl' => 'http://url.domain?params=param' ), array( 'groupBy' => 01.01.1970 or 15 etc. 'title' => 'Some Title', 'value' => 2, 'targetUrl' => 'http://url.domain?params=param' ) ), 'config' => array( 'groupsLabelMap' => array( '01.01.1970' => 'Start of our internet evolution' '15' => 'Just a simple integer' ), 'reportTitle' => 'Some title for this report' ) )

Возвращает
array

Замещает IReportMultipleGroupedData.

См. определение в файле graphhandler.php строка 25

◆ getMultipleGroupedDemoData()

getMultipleGroupedDemoData ( )
Возвращает
array

Замещает IReportMultipleGroupedData.

См. определение в файле graphhandler.php строка 30

◆ prepare()

prepare ( )

Called every time when calculate some report result before passing some concrete handler, such us getMultipleData or getSingleData. Here you can get result of configuration fields of report, if report in widget you can get configurations of widget.

Возвращает
mixed

Переопределяет метод предка BaseHandler.

См. определение в файле graphhandler.php строка 35

Данные класса

◆ COLORS

const COLORS
protected
Инициализатор
= [
'SOLD' => '#64b1e2',
'PROFIT' => '#fda505',
]

См. определение в файле graphhandler.php строка 17