• Модуль: imopenlines
  • Путь к файлу: ~/bitrix/modules/imopenlines/lib/integrations/report/handlers/dialog.php
  • Класс: BitrixImOpenLinesIntegrationsReportHandlersDialog
  • Вызов: Dialog::getSingleData
public function getSingleData()
{

	$data = parent::getSingleData();

	/** @var DropDown $whatWillCalculate */
	$whatWillCalculate = $this->getFormElement('calculate');
	$whatWillCalculateValue = $whatWillCalculate->getValue();
	switch ($whatWillCalculateValue)
	{
		case self::WHAT_WILL_CALCULATE_AVERAGE_TIME_TO_ANSWER:
			$data['config']['unitOfMeasurement'] = Loc::getMessage('DIALOG_MINUTE');
			break;
	}

	return $data;
}