1C-Bitrix
25.700.0
Загрузка...
Поиск...
Не найдено
UserToGroupRepository.php
См. документацию.
1
<?php
2
3
namespace
Bitrix\Socialnetwork\Collab\Integration\Humanresources\Repository
;
4
5
use Bitrix\HumanResources\Item\NodeRelation;
6
use
Bitrix\Socialnetwork\UserToGroupTable
;
7
8
class
UserToGroupRepository
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
}
Bitrix\Socialnetwork\Collab\Integration\Humanresources\Repository\UserToGroupRepository
Определения
UserToGroupRepository.php:9
Bitrix\Socialnetwork\Collab\Integration\Humanresources\Repository\UserToGroupRepository\getForRelation
getForRelation(NodeRelation $relation, array $filteredUsers)
Определения
UserToGroupRepository.php:10
Bitrix\Socialnetwork\UserToGroupTable
Определения
usertogroup.php:37
Bitrix\Socialnetwork\UserToGroupTable\INITIATED_BY_STRUCTURE
const INITIATED_BY_STRUCTURE
Определения
usertogroup.php:62
array
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Определения
file_new.php:804
Bitrix\Socialnetwork\Collab\Integration\Humanresources\Repository
Определения
UserToGroupRepository.php:3
bitrix
modules
socialnetwork
lib
Collab
Integration
Humanresources
Repository
UserToGroupRepository.php
Создано системой
1.14.0