ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.ilStudyProgrammeMembershipSourceReaderFactory.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
25{
26 protected Pimple\Container $dic;
27
28 public function __construct(Pimple\Container $dic)
29 {
30 $this->dic = $dic;
31 }
32
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 }
65}
static getInstance(int $a_ref_id)
Provides adapters to read member-ids from a specific source.
getReaderFor(ilStudyProgrammeAutoMembershipSource $ams, ?int $exclude_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.