19 declare(strict_types=1);
37 protected int $managed_user_id,
38 protected int $managing_user_id
45 return in_array($field, [
'id',
'obj_id',
'ref_id']);
53 array $parameters = []
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'],
84 $data = $this->applyOrder($data, $order);
85 $this->data = $this->applyRange($data,
$range);
87 foreach ($this->data as $row) {
92 public function count(array $filter, array $parameters):
int 94 return count($this->data);
isFieldNumeric(string $field)
__construct(protected InternalDomainService $domain, protected int $ref_id, protected int $managed_user_id, protected int $managing_user_id)
Both the subject and the direction need to be specified when expressing an order. ...
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
getData(array $fields, ?Range $range=null, ?Order $order=null, array $filter=[], array $parameters=[])
count(array $filter, array $parameters)
static getInstanceByObjId(?int $obj_id, bool $stop_on_error=true)
get an instance of an Ilias object by object id
A simple class to express a naive range of whole positive numbers.