ILIAS  release_8 Revision v8.24
OrgUnitUserService.php
Go to the documentation of this file.
1<?php
2
4
7
9{
10 public function __construct()
11 {
12 }
13
18 public function getUsers(array $user_ids, bool $with_superios = false, bool $with_positions = false): array
19 {
20 $org_unit_user_repository = new ilOrgUnitUserRepository();
21
22 if ($with_superios) {
23 $org_unit_user_repository->withSuperiors();
24 }
25 if ($with_positions) {
26 $org_unit_user_repository->withPositions();
27 }
28
29 return $org_unit_user_repository->getOrgUnitUsers($user_ids);
30 }
31
36 public function getEmailAdressesOfSuperiors(array $user_ids): array
37 {
38 $org_unit_user_repository = new ilOrgUnitUserRepository();
39 $org_unit_user_repository->withSuperiors();
40
41 return $org_unit_user_repository->getEmailAdressesOfSuperiors($user_ids);
42 }
43}
getUsers(array $user_ids, bool $with_superios=false, bool $with_positions=false)