• Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/integration/report/dashboard/ad/trafficefficiency.php
  • Класс: Bitrix\Crm\Integration\Report\Dashboard\Ad\TrafficEfficiency
  • Вызов: TrafficEfficiency::get
static function get()
{
	$board = new VC\Entity\Dashboard();
	$board->setVersion(self::VERSION);
	$board->setBoardKey(self::BOARD_KEY);
	$board->setGId(VC\Helper\Util::generateUserUniqueId());
	$board->setUserId(0);


	$firstRow = VC\Entity\DashboardRow::factoryWithHorizontalCells(1);
	$firstRow->setWeight(1);
	$funnel = self::buildFunnelWidget();
	$funnel->setWeight($firstRow->getLayoutMap()['elements'][0]['id']);
	$firstRow->addWidgets($funnel);
	$board->addRows($firstRow);

	$secondRow = VC\Entity\DashboardRow::factoryWithHorizontalCells(1);
	$secondRow->setWeight(2);
	$salesFunnelGridByManager = self::buildGridWidget();
	$salesFunnelGridByManager->setWeight($secondRow->getLayoutMap()['elements'][0]['id']);
	$secondRow->addWidgets($salesFunnelGridByManager);
	$board->addRows($secondRow);

	return $board;
}