19 declare(strict_types=1);
36 protected int $managed_user_id,
37 protected int $managing_user_id,
44 protected function getId(): string
51 $lng = $this->domain->lng();
52 return $lng->txt(
'role_assignment') .
' (' .
53 $this->domain->profile()->getNamePresentation($this->managed_user_id,
true) .
')';
58 return $this->domain->assignedRoledRetrieval(
60 $this->managed_user_id,
61 $this->managing_user_id
67 $f = $this->gui->ui()->factory();
69 $icon = $data_row[
"assigned"] ??
false 70 ?
$f->symbol()->icon()->custom(
'assets/images/standard/icon_checked.svg',
'',
'small')
71 :
$f->symbol()->icon()->custom(
'assets/images/standard/icon_unchecked.svg',
'',
'small');
74 'id' => $data_row[
'id'],
75 'title' => $data_row[
'title'],
76 'desc' => $data_row[
'desc'],
77 'type' => $data_row[
'type'],
85 $lng = $this->domain->lng();
88 ->textColumn(
'desc',
$lng->txt(
'description'))
89 ->textColumn(
'type',
$lng->txt(
'type'))
90 ->iconColumn(
'icon',
$lng->txt(
'info_assigned'),
false);
94 $lng->txt(
"change_assignment")
textColumn(string $key, string $title, bool $sortable=false)
transformRow(array $data_row)
__construct(protected InternalDomainService $domain, protected InternalGUIService $gui, protected int $ref_id, protected int $managed_user_id, protected int $managing_user_id, object $parent_gui, string $parent_cmd)
multiAction(string $action, string $title)
__construct(Container $dic, ilPlugin $plugin)
build(TableAdapterGUI $table)