ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
OrgUnitUserService.php
Go to the documentation of this file.
1<?php
3
6
8{
9 public function __construct()
10 {
11 }
12
13
21 public function getUsers(array $user_ids, $with_superios = false, $with_positions = false)
22 {
23 $org_unit_user_repository = new ilOrgUnitUserRepository();
24
25 if ($with_superios) {
26 $org_unit_user_repository->withSuperiors();
27 }
28 if ($with_positions) {
29 $org_unit_user_repository->withPositions();
30 }
31
32 return $org_unit_user_repository->getOrgUnitUsers($user_ids);
33 }
34
35 public function getEmailAdressesOfSuperiors(array $user_ids) : array
36 {
37 $org_unit_user_repository = new ilOrgUnitUserRepository();
38 $org_unit_user_repository->withSuperiors();
39
40 return $org_unit_user_repository->getEmailAdressesOfSuperiors($user_ids);
41 }
42}
An exception for terminatinating execution or to throw for unit testing.
getUsers(array $user_ids, $with_superios=false, $with_positions=false)