ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
class.ilStudyProgrammeMembershipSourceReaderOrgu.php
Go to the documentation of this file.
1<?php
2
3declare(strict_types = 1);
4
9{
13 protected $orgu_tree;
14
19
23 protected $src_id;
24
25 public function __construct(
28 int $src_id
29 ) {
30 $this->orgu_tree = $orgu_tree;
31 $this->orgu_assignment = $orgu_assignment;
32 $this->src_id = $src_id;
33 }
34
38 public function getMemberIds() : array
39 {
40 $assignees = $this->orgu_assignment::where(
41 ['orgu_id' => $this->src_id]
42 )->getArray('id', 'user_id');
43
44 return array_map(
45 'intval',
46 array_values($assignees)
47 );
48 }
49}
An exception for terminatinating execution or to throw for unit testing.
Class ilObjOrgUnitTree Implements a singleton pattern for caching.
Class ilOrgUnitUserAssignment.
Provides adapters to read member-ids from a specific source.
__construct(ilObjOrgUnitTree $orgu_tree, ilOrgUnitUserAssignment $orgu_assignment, int $src_id)