• Модуль: voximplant
  • Путь к файлу: ~/bitrix/modules/voximplant/lib/integration/report/dashboard/lostcalls/lostcallsboard.php
  • Класс: BitrixVoximplantIntegrationReportDashboardLostCallsLostCallsBoard
  • Вызов: LostCallsBoard::buildLostCallsGrid
static function buildLostCallsGrid(): Widget
{
	$widget = new Widget();
	$widget->setGId(Util::generateUserUniqueId());
	$widget->setWidgetClass(BaseWidget::getClassName());
	$widget->setViewKey(ViewLostCallsLostCallsGrid::VIEW_KEY);
	$widget->setCategoryKey('telephony');
	$widget->setBoardId(static::BOARD_KEY);
	$widget->getWidgetHandler(true)
		   ->updateFormElementValue('label', Loc::getMessage('TELEPHONY_REPORT_LOST_CALLS_TABLE_VIEW_2'));
	$widget->addConfigurations($widget->getWidgetHandler(true)->getConfigurations());

	$report = new Report();
	$report->setGId(Util::generateUserUniqueId());
	$report->setReportClassName(HandlerLostCallsLostCalls::class);
	$report->setWidget($widget);
	$report->addConfigurations($report->getReportHandler(true)->getConfigurations());
	$widget->addReports($report);

	return $widget;
}