ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
class.ilStudyProgrammeMembershipSourceReaderFactory.php
Go to the documentation of this file.
1<?php
2
3declare(strict_types = 1);
4
9{
10 public function __construct(Pimple\Container $dic)
11 {
12 $this->dic = $dic;
13 }
14
20 public function getReaderFor(string $src_type, int $src_id) : ilStudyProgrammeMembershipSourceReader
21 {
22 switch ($src_type) {
25 $this->dic['rbacreview'],
26 $src_id
27 );
32 );
37 $src_id
38 );
39
40 default:
41 throw new \InvalidargumentException("Invalid source type.", 1);
42 }
43 }
44}
An exception for terminatinating execution or to throw for unit testing.
Class ilOrgUnitUserAssignment.
static getInstance($a_ref_id)
Get instance by ref_id.
Provides adapters to read member-ids from a specific source.
getReaderFor(string $src_type, int $src_id)
Build a MembershipSourceReader according to $src_type.
Provides adapters to read member-ids from a specific source.
Provides adapters to read member-ids from a specific source.
$dic
Definition: result.php:13