- Модуль: socialnetwork
- Путь к файлу: ~/bitrix/modules/socialnetwork/lib/integration/ui/entityselector/projectrolesprovider.php
- Класс: BitrixSocialNetworkIntegrationUIEntitySelectorProjectRolesProvider
- Вызов: ProjectRolesProvider::makeScrumRoles
private function makeScrumRoles(): array
{
$roles = [];
$projectId = $this->getOption('projectId');
$roles[] = new Item(
[
'id' => $projectId . '_' . SONET_ROLES_OWNER,
'entityId' => $this->entityId,
'entityType' => 'role',
'title' => Loc::getMessage('SES_PROJECT_SCRUM_OWNER_ROLE'),
'tabs' => ['project-roles']
]
);
$roles[] = new Item(
[
'id' => $projectId . '_M',
'entityId' => $this->entityId,
'entityType' => 'role',
'title' => Loc::getMessage('SES_PROJECT_SCRUM_MASTER_ROLE'),
'tabs' => ['project-roles']
]
);
$roles[] = new Item(
[
'id' => $projectId . '_' . SONET_ROLES_MODERATOR,
'entityId' => $this->entityId,
'entityType' => 'role',
'title' => Loc::getMessage('SES_PROJECT_SCRUM_MODERATOR_ROLE'),
'tabs' => ['project-roles']
]
);
$roles[] = new Item(
[
'id' => $projectId . '_' . SONET_ROLES_USER,
'entityId' => $this->entityId,
'entityType' => 'role',
'title' => Loc::getMessage('SES_PROJECT_SCRUM_EMPLOYER_ROLE'),
'tabs' => ['project-roles']
]
);
return $roles;
}