- Модуль: tasks
- Путь к файлу: ~/bitrix/modules/tasks/lib/scrum/service/epicservice.php
- Класс: BitrixTasksScrumServiceEpicService
- Вызов: EpicService::getList
public function getList(
array $select = [],
array $filter = [],
array $order = [],
PageNavigation $nav = null
): ?QueryResult
{
try
{
if (!Loader::includeModule('socialnetwork'))
{
$this->errorCollection->setError(
new Error(
'Unable to load socialnetwork.',
self::ERROR_COULD_NOT_GET_LIST
)
);
return null;
}
$query = new QueryQuery(EpicTable::getEntity());
if (empty($select))
{
$select = ['*'];
}
$query->setSelect($select);
$query->setFilter($filter);
$query->setOrder($order);
if ($nav)
{
$query->setOffset($nav->getOffset());
$query->setLimit($nav->getLimit() + 1);
}
$query->registerRuntimeField(
'UG',
new ReferenceField(
'UG',
UserToGroupTable::getEntity(),
Join::on('this.GROUP_ID', 'ref.GROUP_ID')->where('ref.USER_ID', $this->userId),
['join_type' => 'inner']
)
);
$queryResult = $query->exec();
return $queryResult;
}
catch (Exception $e)
{
$this->errorCollection->setError(
new Error(
$e->getMessage(),
self::ERROR_COULD_NOT_GET_LIST
)
);
return null;
}
}