ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
ilStudyProgrammeMembershipSourceReaderFactory Class Reference

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. 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...
 

Protected Attributes

Pimple Container $dic
 

Detailed Description

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.

ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.

If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning 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 ( 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 38 of file class.ilStudyProgrammeMembershipSourceReaderFactory.php.

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

39  {
40  switch ($src_type) {
43  $this->dic['rbacreview'],
44  $src_id
45  );
50  );
55  $src_id
56  );
57 
58  default:
59  throw new InvalidargumentException("Invalid source type.", 1);
60  }
61  }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
static getInstance(int $a_ref_id)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
+ 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: