ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
class.ilStudyProgrammeMembershipSourceReaderRole.php
Go to the documentation of this file.
1<?php
2
3declare(strict_types = 1);
4
9{
10 public function __construct(ilRbacReview $rbac_review, int $src_id)
11 {
12 $this->src_id = $src_id;
13 $this->rbac_review = $rbac_review;
14 }
15
19 public function getMemberIds() : array
20 {
21 return array_map(
22 'intval',
23 $this->rbac_review->assignedUsers($this->src_id)
24 );
25 }
26}
An exception for terminatinating execution or to throw for unit testing.
class ilRbacReview Contains Review functions of core Rbac.
Provides adapters to read member-ids from a specific source.