Definition at line 28 of file AssignedRolesRetrieval.php.
◆ __construct()
ILIAS\Category\AssignedRolesRetrieval::__construct |
( |
protected InternalDomainService |
$domain, |
|
|
protected int |
$ref_id, |
|
|
protected int |
$managed_user_id, |
|
|
protected int |
$managing_user_id |
|
) |
| |
◆ count()
ILIAS\Category\AssignedRolesRetrieval::count |
( |
array |
$filter, |
|
|
array |
$parameters |
|
) |
| |
◆ getData()
ILIAS\Category\AssignedRolesRetrieval::getData |
( |
array |
$fields, |
|
|
?Range |
$range = null , |
|
|
?Order |
$order = null , |
|
|
array |
$filter = [] , |
|
|
array |
$parameters = [] |
|
) |
| |
Definition at line 48 of file AssignedRolesRetrieval.php.
References $lng, ILIAS\UI\Implementation\Component\Table\$range, and ilObjectFactory\getInstanceByObjId().
56 $rbacreview = $this->domain->rbac()->review();
57 $roles = $this->domain->assignedRolesManager(
59 $this->managed_user_id,
60 $this->managing_user_id
61 )->getAssignableRoles();
62 $ass_roles = $rbacreview->assignedRoles($this->managed_user_id);
63 $lng = $this->domain->lng();
66 foreach ($roles as $role) {
69 $assigned = in_array((
int) $role[
'obj_id'], $ass_roles,
true);
70 $title = $role_obj?->getTitle() ?:
"";
71 $desc = $role_obj?->getDescription() ?:
"";
72 $type = ($role[
'role_type'] ??
'') ===
'global' ?
76 "assigned" => $assigned,
79 "id" => $role[
'obj_id'],
87 foreach ($this->data as $row) {
static getInstanceByObjId(?int $obj_id, bool $stop_on_error=true)
get an instance of an Ilias object by object id
◆ isFieldNumeric()
ILIAS\Category\AssignedRolesRetrieval::isFieldNumeric |
( |
string |
$field | ) |
|
◆ $data
array ILIAS\Category\AssignedRolesRetrieval::$data = [] |
|
protected |
The documentation for this class was generated from the following file: