• Модуль: voximplant
  • Путь к файлу: ~/bitrix/modules/voximplant/lib/integration/report/dashboard/averagecalltime/averagecalltimeboard.php
  • Класс: BitrixVoximplantIntegrationReportDashboardAverageCallTimeAverageCallTimeBoard
  • Вызов: AverageCallTimeBoard::get
static function get(): Dashboard
{
	$board = new Dashboard();
	$board->setVersion(self::VERSION);
	$board->setBoardKey(static::BOARD_KEY);
	$board->setGId(Util::generateUserUniqueId());
	$board->setUserId(0);

	$firstRow = DashboardRow::factoryWithHorizontalCells(1);
	$firstRow->setWeight(1);
	$chart = static::buildAverageCallTimeGraph();
	$chart->setWeight($firstRow->getLayoutMap()['elements'][0]['id']);
	$firstRow->addWidgets($chart);
	$board->addRows($firstRow);

	$secondRow = DashboardRow::factoryWithHorizontalCells(1);
	$secondRow->setWeight(2);
	$grid = static::buildAverageCallTimeGrid();
	$grid->setWeight($secondRow->getLayoutMap()['elements'][0]['id']);
	$secondRow->addWidgets($grid);
	$board->addRows($secondRow);

	return $board;
}