3namespace Bitrix\Report\VisualConstructor\Entity;
5use Bitrix\Main\Entity\Query;
6use Bitrix\Report\VisualConstructor\Config\Common;
7use Bitrix\Report\VisualConstructor\Internal\DashboardRowTable;
8use Bitrix\Report\VisualConstructor\Internal\Model;
46 $attributes = parent::getMapAttributes();
47 $attributes[
'GID'] =
'gId';
48 $attributes[
'BOARD_ID'] =
'boardId';
49 $attributes[
'WEIGHT'] =
'weight';
50 $attributes[
'LAYOUT_MAP'] =
'layoutMap';
61 'type' => Common::ONE_TO_MANY,
66 'type' => Common::MANY_TO_ONE,
68 'inversedBy' =>
'rows',
70 'field' =>
array(
'boardId',
'id')
81 $coreRow = clone $this;
83 $copyRow->setBoardId($coreRow->getBoardId());
84 $copyRow->setGId($coreRow->getGId());
85 $copyRow->setWeight($coreRow->getWeight());
86 $copyRow->setLayoutMap($coreRow->getLayoutMap());
93 $copyRow->addWidgets($widget->getCopyForCurrentUser());
157 return static::getModelList(
array(
158 'select' =>
array(
'*'),
159 'filter' => Query::filter()->where(
'BOARD_ID',
$boardId)->logic(
'and')->whereIn(
'GID', $gIds)
172 'select' =>
array(
'*'),
174 'with' =>
array(
'widgets',
'widgets.configurations'),
175 'order' =>
array(
'WEIGHT' =>
'ASC'),
188 return static::load(
array(
'GID' =>
$gId));
205 'DASHBOARD.USER_ID' =>
$USER->getId()
222 'select' =>
array(
'*'),
223 'filter' => Query::filter()->where(
'BOARD_ID',
$boardId),
224 'with' =>
array(
'widgets',
'widgets.configurations',
'widgets.reports.configurations'),
225 'order' =>
array(
'WEIGHT' =>
'ASC'),
235 return unserialize($this->layoutMap, [
'allowed_classes' =>
false]);
static getMapReferenceAttributes()
static getMapAttributes()
static getTableClassName()
static getRowsWithWidgetsByBoard($boardId)
static getRowsByGIdsAndBoardId(array $gIds, $boardId)
static getCurrentUserRowByGId($rowGId)
static getRowsWithReportsByBoard($boardId)
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)