3namespace Bitrix\Report\VisualConstructor\Entity;
5use Bitrix\Main\Entity\Query;
6use Bitrix\Report\VisualConstructor\Config\Common;
7use Bitrix\Report\VisualConstructor\Helper\Util;
8use Bitrix\Report\VisualConstructor\Internal\DashboardTable;
9use Bitrix\Report\VisualConstructor\Internal\Model;
50 $attributes = parent::getMapAttributes();
51 $attributes[
'GID'] =
'gId';
52 $attributes[
'BOARD_KEY'] =
'boardKey';
53 $attributes[
'USER_ID'] =
'userId';
54 $attributes[
'VERSION'] =
'version';
67 'type' => Common::ONE_TO_MANY,
69 'mappedBy' =>
'dashboard'
83 $with =
array(
'rows',
'rows.widgets',
'rows.widgets.configurations');
88 $order =
array(
'\Bitrix\Report\VisualConstructor\Internal\DashboardRow:DASHBOARD.WEIGHT' =>
'ASC');
103 $with =
array(
'rows',
'rows.widgets',
'rows.widgets.configurations',
'rows.widgets.reports',
'rows.widgets.reports.configurations');
108 $order =
array(
'\Bitrix\Report\VisualConstructor\Internal\DashboardRow:DASHBOARD.WEIGHT' =>
'ASC');
111 if (!$board && $createIfNotExist)
114 $board->setGId(Util::generateUserUniqueId());
116 $board->setUserId(0);
144 public static function getCurrentUserBoardWithEverythingByBoardKey(
$boardKey)
151 $with =
array(
'rows',
'rows.widgets',
'rows.widgets.configurations',
'rows.widgets.reports',
'rows.widgets.reports.configurations');
156 $order =
array(
'\Bitrix\Report\VisualConstructor\Internal\DashboardRow:DASHBOARD.WEIGHT' =>
'ASC');
181 $coreBoard = clone $this;
183 $copyBoard->setBoardKey($coreBoard->getBoardKey());
184 $copyBoard->setUserId(
$USER->getID());
185 $copyBoard->setGId($coreBoard->getGId());
186 $rows = $coreBoard->getRows();
189 foreach (
$rows as $row)
191 $copyBoard->addRows($row->getCopyForCurrentUser());
245 return static::load(
array(
261 return static::getModelList(
array(
if(!is_object($USER)||! $USER->IsAuthorized()) $userId
static getDefaultBoardByBoardKey($boardKey)
static loadByBoardKeyAndUserId($boardKey, $userId)
static loadByBoardKeyMultiple($boardKey)
static getMapReferenceAttributes()
static getMapAttributes()
static getBoardWithRowsAndWidgetsByBoardKeyUserId($boardKey, $userId)
static getTableClassName()
static getDefaultBoardWithEverythingByBoardKey($boardKey, $createIfNotExist=true)
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)