ILIAS  release_7 Revision v7.30-3-g800a261c036
ilStudyProgrammeMembershipSourceReaderFactory Class Reference

Provides adapters to read member-ids from a specific source. More...

+ Collaboration diagram for ilStudyProgrammeMembershipSourceReaderFactory:

Public Member Functions

 __construct (Pimple\Container $dic)
 
 getReaderFor (string $src_type, int $src_id)
 Build a MembershipSourceReader according to $src_type. More...
 

Detailed Description

Provides adapters to read member-ids from a specific source.

Definition at line 8 of file class.ilStudyProgrammeMembershipSourceReaderFactory.php.

Constructor & Destructor Documentation

◆ __construct()

ilStudyProgrammeMembershipSourceReaderFactory::__construct ( Pimple\Container  $dic)

Definition at line 10 of file class.ilStudyProgrammeMembershipSourceReaderFactory.php.

11 {
12 $this->dic = $dic;
13 }
$dic
Definition: result.php:13

References $dic.

Member Function Documentation

◆ getReaderFor()

ilStudyProgrammeMembershipSourceReaderFactory::getReaderFor ( string  $src_type,
int  $src_id 
)

Build a MembershipSourceReader according to $src_type.

Exceptions
InvalidArgumentExceptionif $src_type is not one of the constant types in ilStudyProgrammeAutoMembershipSource.

Definition at line 20 of file class.ilStudyProgrammeMembershipSourceReaderFactory.php.

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 }
Class ilOrgUnitUserAssignment.
static getInstance($a_ref_id)
Get instance by ref_id.
Provides adapters to read member-ids from a specific source.
Provides adapters to read member-ids from a specific source.

References ilObjOrgUnitTree\_getInstance(), ilParticipants\getInstance(), ilStudyProgrammeAutoMembershipSource\TYPE_COURSE, ilStudyProgrammeAutoMembershipSource\TYPE_GROUP, ilStudyProgrammeAutoMembershipSource\TYPE_ORGU, and ilStudyProgrammeAutoMembershipSource\TYPE_ROLE.

+ Here is the call graph for this function:

The documentation for this class was generated from the following file: