• Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/integration/report/dashboard/sales/salesfunnelboard.php
  • Класс: Bitrix\Crm\Integration\Report\Dashboard\Sales\SalesFunnelBoard
  • Вызов: SalesFunnelBoard::get
static function get()
{
	$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);
	$funnel = static::buildSalesFunnel();
	$funnel->setWeight($firstRow->getLayoutMap()['elements'][0]['id']);
	$firstRow->addWidgets($funnel);
	$board->addRows($firstRow);

	$secondRow = DashboardRow::factoryWithHorizontalCells(1);
	$secondRow->setWeight(2);
	$salesFunnelGridByManager = static::buildManagerEfficiencyGrid();
	$salesFunnelGridByManager->setWeight($secondRow->getLayoutMap()['elements'][0]['id']);
	$secondRow->addWidgets($salesFunnelGridByManager);

	$board->addRows($secondRow);

	return $board;
}