ILIAS  release_9 Revision v9.13-25-g2c18ec4c24f
class.ilStudyProgrammeMembershipSourceReaderFactory.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
4 
25 {
27 
28  public function __construct(Pimple\Container $dic)
29  {
30  $this->dic = $dic;
31  }
32 
38  public function getReaderFor(string $src_type, int $src_id): ilStudyProgrammeMembershipSourceReader
39  {
40  switch ($src_type) {
43  $this->dic['rbacreview'],
44  $src_id
45  );
50  );
54  $src_id
55  );
56 
57  default:
58  throw new InvalidargumentException("Invalid source type.", 1);
59  }
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)
getReaderFor(string $src_type, int $src_id)
Build a MembershipSourceReader according to $src_type.
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...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...