• Модуль: report
  • Путь к файлу: ~/bitrix/modules/report/lib/visualconstructor/entity/dashboard.php
  • Класс: BitrixReportVisualConstructorEntityDashboard
  • Вызов: Dashboard::getCopyForCurrentUser
public function getCopyForCurrentUser()
{
	global $USER;

	$coreBoard = clone $this;
	$copyBoard = new Dashboard();
	$copyBoard->setBoardKey($coreBoard->getBoardKey());
	$copyBoard->setUserId($USER->getID());
	$copyBoard->setGId($coreBoard->getGId());
	$rows = $coreBoard->getRows();
	if (is_array($rows))
	{
		foreach ($rows as $row)
		{
			$copyBoard->addRows($row->getCopyForCurrentUser());
		}
	}


	return $copyBoard;
}