Bitrix API

NodeMemberService

Table of Contents

Constants

MEMBER_TO_MEMBER_SUBORDINATE_CACHE_KEY  = 'node_member/member_from/%d/member_to/%d'

Methods

getAllEmployees()  : NodeMemberCollection
getDefaultHeadRoleEmployees()  : NodeMemberCollection
getMemberInformation()  : NodeMember
getMemberSubordination()  : MemberSubordinateRelationType
Calculates relation between members with id $memberId and member with id $targetMemberId Simplified: Who is member for targetMember
getPagedEmployees()  : NodeMemberCollection
moveMember()  : NodeMember
moveUsersToDepartment()  : array<string|int, mixed>
removeUserMemberFromDepartment()  : NodeMember|null
removeUserMembersFromDepartmentByCollection()  : NodeMemberCollection
saveUsersToDepartment()  : NodeMemberCollection

Constants

MEMBER_TO_MEMBER_SUBORDINATE_CACHE_KEY

public mixed MEMBER_TO_MEMBER_SUBORDINATE_CACHE_KEY = 'node_member/member_from/%d/member_to/%d'

Methods

getMemberSubordination()

Calculates relation between members with id $memberId and member with id $targetMemberId Simplified: Who is member for targetMember

public getMemberSubordination(int $memberId, int $targetMemberId) : MemberSubordinateRelationType
Parameters
$memberId : int
$targetMemberId : int
Tags
throws
ArgumentException
throws
ObjectPropertyException
throws
SystemException
Return values
MemberSubordinateRelationType

getPagedEmployees()

public getPagedEmployees(int $nodeId[, bool $withAllChildNodes = false ][, int $offset = 0 ][, int $limit = 500 ][, bool $onlyActive = true ]) : NodeMemberCollection
Parameters
$nodeId : int
$withAllChildNodes : bool = false
$offset : int = 0
$limit : int = 500
$onlyActive : bool = true
Return values
NodeMemberCollection

moveUsersToDepartment()

public moveUsersToDepartment(Node $node[, array<string|int, mixed> $departmentUserIds = [] ]) : array<string|int, mixed>
Parameters
$node : Node
$departmentUserIds : array<string|int, mixed> = []
Tags
throws
CreationFailedException
throws
ArgumentException
throws
DuplicateEntryException
throws
SqlQueryException
throws
ObjectPropertyException
throws
SystemException
Return values
array<string|int, mixed>

        
On this page

Search results