1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
UserToGroupRepository.php
См. документацию.
1<?php
2
4
5use Bitrix\HumanResources\Item\NodeRelation;
7
9{
10 public function getForRelation(NodeRelation $relation, array $filteredUsers): array
11 {
12 if (empty($filteredUsers))
13 {
14 return [];
15 }
16
17 return UserToGroupTable::query()
18 ->setSelect(['USER_ID'])
19 ->where('GROUP_ID', $relation->entityId)
20 ->whereIn('USER_ID', $filteredUsers)
21 ->where('INITIATED_BY_TYPE', UserToGroupTable::INITIATED_BY_STRUCTURE)
22 ->exec()
23 ->fetchAll()
24 ;
25 }
26}
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Определения file_new.php:804