• Модуль: report
  • Путь к файлу: ~/bitrix/modules/report/lib/visualconstructor/internal/model.php
  • Класс: BitrixReportVisualConstructorInternaldeveloped
  • Вызов: developed::factoryWithHorizontalCells
static function factoryWithHorizontalCells($cellCount = 1)
{
	$row = new DashboardRow();
	$row->setGId(Util::generateUserUniqueId());
	$map = [
		'type' => 'cell-container',
		'orientation' => 'horizontal',
		'elements' => []
	];
	for ($i = 0; $i < $cellCount; $i++)
	{
		$cellId = 'cell_' . randString(4);
		$map['elements'][] = [
			'type' => 'cell',
			'id' => $cellId
		];
	}
	$row->setLayoutMap($map);

	return $row;
}