- Модуль: report
- Путь к файлу: ~/bitrix/modules/report/lib/visualconstructor/entity/dashboard.php
- Класс: BitrixReportVisualConstructorEntityDashboard
- Вызов: Dashboard::getBoardWithRowsAndWidgetsByBoardKeyUserId
static function getBoardWithRowsAndWidgetsByBoardKeyUserId($boardKey, $userId)
{
$with = array('rows', 'rows.widgets', 'rows.widgets.configurations');
$filter = Query::filter();
$filter->where('BOARD_KEY', $boardKey);
$filter->logic('and');
$filter->where('USER_ID', $userId);
$order = array('BitrixReportVisualConstructorInternalDashboardRow:DASHBOARD.WEIGHT' => 'ASC');
$board = static::load($filter, $with, $order);
return $board;
}