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

	$firstRow = DashboardRow::factoryWithHorizontalCells(1);
	$firstRow->setWeight(1);

	$leadFunnel = static::buildLeadColumnFunnel();
	$leadFunnel->setWeight($firstRow->getLayoutMap()['elements'][0]['id']);
	$firstRow->addWidgets($leadFunnel);

	$board->addRows($firstRow);

	$secondRow = DashboardRow::factoryWithHorizontalCells(1);
	$secondRow->setWeight(2);

	$grid = static::buildLeadByResponsibleGrid();
	$grid->setWeight($secondRow->getLayoutMap()['elements'][0]['id']);
	$secondRow->addWidgets($grid);

	$board->addRows($secondRow);

	return $board;
}