ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
OrgUnitUserService.php
Go to the documentation of this file.
1<?php
2
20
23
25{
26 public function __construct()
27 {
28 }
29
34 public function getUsers(array $user_ids, bool $with_superios = false, bool $with_positions = false): array
35 {
36 $org_unit_user_repository = new ilOrgUnitUserRepository();
37
38 if ($with_superios) {
39 $org_unit_user_repository->withSuperiors();
40 }
41 if ($with_positions) {
42 $org_unit_user_repository->withPositions();
43 }
44
45 return $org_unit_user_repository->getOrgUnitUsers($user_ids);
46 }
47
52 public function getEmailAdressesOfSuperiors(array $user_ids): array
53 {
54 $org_unit_user_repository = new ilOrgUnitUserRepository();
55 $org_unit_user_repository->withSuperiors();
56
57 return $org_unit_user_repository->getEmailAdressesOfSuperiors($user_ids);
58 }
59}
getUsers(array $user_ids, bool $with_superios=false, bool $with_positions=false)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...