...Человеческий поиск в разработке...
- Модуль: tasks
- Путь к файлу: ~/bitrix/modules/tasks/lib/control/member.php
- Класс: BitrixTasksControlMember
- Вызов: Member::getCurrentMembers
private function getCurrentMembers(): array { $members = []; $memberList = $this->task->getMemberList(); foreach ($memberList as $member) { $memberType = $member->getType(); $members[$memberType][] = [ 'USER_ID' => $member->getUserId(), 'TYPE' => $memberType, ]; } if (!array_key_exists(MemberTable::MEMBER_TYPE_RESPONSIBLE, $members)) { $members[MemberTable::MEMBER_TYPE_RESPONSIBLE][] = [ 'USER_ID' => $this->task->getResponsibleId(), 'TYPE' => MemberTable::MEMBER_TYPE_RESPONSIBLE, ]; } if (!array_key_exists(MemberTable::MEMBER_TYPE_ORIGINATOR, $members)) { $members[MemberTable::MEMBER_TYPE_ORIGINATOR][] = [ 'USER_ID' => $this->task->getCreatedBy(), 'TYPE' => MemberTable::MEMBER_TYPE_ORIGINATOR, ]; } return $members; }