19 private $entityId =
'project-roles';
23 parent::__construct();
25 $this->options[
'projectId'] =
$options[
'projectId'];
30 return $GLOBALS[
'USER']->isAuthorized();
49 if ($group && $group->isScrumProject())
51 $dialog->
addItems($this->makeScrumRoles());
55 $dialog->
addItems($this->makeRoles());
59 'id' => $this->entityId,
60 'title' => Loc::getMessage(
'SES_PROJECT_ROLES_TAB_TITLE'),
65 private function makeScrumRoles():
array
69 $projectId = $this->
getOption(
'projectId');
74 'entityId' => $this->entityId,
75 'entityType' =>
'role',
76 'title' => Loc::getMessage(
'SES_PROJECT_SCRUM_OWNER_ROLE'),
77 'tabs' => [
'project-roles']
83 'id' => $projectId .
'_M',
84 'entityId' => $this->entityId,
85 'entityType' =>
'role',
86 'title' => Loc::getMessage(
'SES_PROJECT_SCRUM_MASTER_ROLE'),
87 'tabs' => [
'project-roles']
94 'entityId' => $this->entityId,
95 'entityType' =>
'role',
96 'title' => Loc::getMessage(
'SES_PROJECT_SCRUM_MODERATOR_ROLE'),
97 'tabs' => [
'project-roles']
104 'entityId' => $this->entityId,
105 'entityType' =>
'role',
106 'title' => Loc::getMessage(
'SES_PROJECT_SCRUM_EMPLOYER_ROLE'),
107 'tabs' => [
'project-roles']
114 private function makeRoles():
array
118 $projectId = $this->
getOption(
'projectId');
123 'entityId' => $this->entityId,
124 'entityType' =>
'role',
125 'title' => Loc::getMessage(
'SES_PROJECT_OWNER_ROLE'),
126 'tabs' => [
'project-roles']
133 'entityId' => $this->entityId,
134 'entityType' =>
'role',
135 'title' => Loc::getMessage(
'SES_PROJECT_MODERATOR_ROLE'),
136 'tabs' => [
'project-roles']
143 'entityId' => $this->entityId,
144 'entityType' =>
'role',
145 'title' => Loc::getMessage(
'SES_PROJECT_EMPLOYER_ROLE'),
146 'tabs' => [
'project-roles']
__construct(array $options=[])
fillDialog(Dialog $dialog)
getSelectedItems(array $ids)
getOption(string $option, $defaultValue=null)
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
const SONET_ROLES_MODERATOR
$GLOBALS['_____370096793']