22 if (!isset(self::$instance)) {
23 self::$instance =
new self();
26 return self::$instance;
35 public function getPositionsOfUserId($user_id)
42 $positions[] = ilOrgUnitPosition::find($assignment->getPositionId());
60 'user_id' => $user_id,
61 'position_id' => $position_id,
62 'orgu_id' => $orgu_id,
96 ->getArray(null,
'user_id');
108 ->getArray(null,
'user_id');
124 ->getArray(null,
'user_id');
137 'orgu_id' => $orgu_ids,
138 'position_id' => $position_id,
139 ])->getArray(null,
'user_id');
156 'position_id' => $position_id,
157 ])->getArray(null,
'user_id');
172 'position_id' => $position_id,
173 'user_id' => $user_id,
174 ])->getArray(null,
'orgu_id');
180 $recursive_orgu_ids = [];
182 foreach ($orgu_ids as $orgu_id) {
183 $recursive_orgu_ids = $recursive_orgu_ids +
$tree->getAllChildren($orgu_id);
186 return $recursive_orgu_ids;
198 'position_id' => $position_id,
199 ])->getArray(null,
'user_id');
211 'position_id' => $position_id,
223 $q =
"DELETE FROM il_orgu_ua WHERE user_id = " . $DIC->database()->quote($user_id,
"integer");
224 $DIC->database()->manipulate($q);
getUserIdsOfOrgUnitsInPosition(array $orgu_ids, $position_id)
deleteAllAssignmentsOfUser($user_id)
getUserIdsOfOrgUnit($orgunit_ref_id)
getAssignmentsOfUserId($user_id)
static where($where, $operator=null)
getAssignmentOrFail($user_id, $position_id, $orgu_id)
getOrgUnitIdsOfUsersPosition($position_id, $user_id, $recursive=false)
getUserIdsOfUsersOrgUnitsInPosition($user_id, $users_position_id, $position_id, $recursive=false)
Class ilOrgUnitUserAssignmentQueries.
getUserAssignmentsOfPosition($position_id)
getUserIdsOfOrgUnits(array $orgunit_ref_id)
filterUserIdsDueToAuthorities($user_id, array $user_ids)
getUserIdsOfPosition($position_id)
getUserIdsOfOrgUnitsOfUsersPosition($position_id, $user_id, $recursive=false)