ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
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 (ilStudyProgrammeAutoMembershipSource $ams, ?int $exclude_id)
 Build a MembershipSourceReader according to $src_type. More...
 

Protected Attributes

Pimple Container $dic
 

Detailed Description

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

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

Constructor & Destructor Documentation

◆ __construct()

ilStudyProgrammeMembershipSourceReaderFactory::__construct ( Pimple\Container  $dic)

Member Function Documentation

◆ getReaderFor()

ilStudyProgrammeMembershipSourceReaderFactory::getReaderFor ( ilStudyProgrammeAutoMembershipSource  $ams,
?int  $exclude_id 
)

Build a MembershipSourceReader according to $src_type.

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

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

39 {
40 $src_id = $ams->getSourceId();
41 switch ($ams->getSourceType()) {
44 $this->dic['rbacreview'],
45 $src_id
46 );
51 );
55 new ilOrgUnitUserAssignmentDBRepository($this->dic['ilDB'], $this->dic->event()),
56 $src_id,
57 $ams->isSearchRecursive(),
58 $exclude_id
59 );
60
61 default:
62 throw new InvalidargumentException("Invalid source type.", 1);
63 }
64 }
static getInstance(int $a_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\getSourceId(), ilStudyProgrammeAutoMembershipSource\getSourceType(), ilStudyProgrammeAutoMembershipSource\isSearchRecursive(), ilStudyProgrammeAutoMembershipSource\TYPE_COURSE, ilStudyProgrammeAutoMembershipSource\TYPE_GROUP, ilStudyProgrammeAutoMembershipSource\TYPE_ORGU, and ilStudyProgrammeAutoMembershipSource\TYPE_ROLE.

+ Here is the call graph for this function:

Field Documentation

◆ $dic

Pimple Container ilStudyProgrammeMembershipSourceReaderFactory::$dic
protected

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

Referenced by __construct().


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