ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
All Data Structures Namespaces Files Functions Variables Modules Pages
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.

References $dic.

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

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.

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

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  }
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.
+ Here is the call graph for this function:

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