ILIAS  release_8 Revision v8.24
class.ilStudyProgrammeMembershipSourceReaderOrgu.php
Go to the documentation of this file.
1<?php
2
3declare(strict_types=1);
4
25{
28 protected int $src_id;
29
30 public function __construct(
33 int $src_id
34 ) {
35 $this->orgu_tree = $orgu_tree;
36 $this->orgu_assignment = $orgu_assignment;
37 $this->src_id = $src_id;
38 }
39
43 public function getMemberIds(): array
44 {
45 $assignees = $this->orgu_assignment::where(
46 ['orgu_id' => $this->src_id]
47 )->getArray('id', 'user_id');
48
49 return array_map(
50 'intval',
51 array_values($assignees)
52 );
53 }
54}
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Class ilOrgUnitUserAssignment.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
__construct(ilObjOrgUnitTree $orgu_tree, ilOrgUnitUserAssignment $orgu_assignment, int $src_id)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...