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

	$firstRow = DashboardRow::factoryWithHorizontalCells(1);
	$firstRow->setWeight(1);
	$linearGraph = self::buildFinancialRatingGraph();
	$linearGraph->setWeight($firstRow->getLayoutMap()['elements'][0]['id']);
	$firstRow->addWidgets($linearGraph);
	$board->addRows($firstRow);

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

	return $board;
}