ILIAS  release_7 Revision v7.30-3-g800a261c036
All Data Structures Namespaces Files Functions Variables Modules Pages
interface.ilStudyProgrammeAutoMembershipsRepository.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types = 1);
4 
9 {
14  public function getFor(int $prg_obj_id) : array;
15 
20  public function create(
21  int $prg_obj_id,
22  string $source_type,
23  int $source_id,
24  bool $enabled,
25  int $last_edited_usr_id = null,
26  \DateTimeImmutable $last_edited = null
28 
33  public function update(ilStudyProgrammeAutoMembershipSource $ams);
34 
38  public function delete(int $prg_obj_id, string $source_type, int $source_id);
39 
43  public function deleteFor(int $prg_obj_id);
44 
49  public static function getProgrammesFor(string $source_type, int $source_id) : array;
50 }
getFor(int $prg_obj_id)
Read auto-membership sources of programme.
create(int $prg_obj_id, string $source_type, int $source_id, bool $enabled, int $last_edited_usr_id=null, \DateTimeImmutable $last_edited=null)
Build an auto-membership source.
Persistence of "monitored" sources for automatic membership.
static getProgrammesFor(string $source_type, int $source_id)
Get all programmes&#39; obj_ids monitoring the given source.
deleteFor(int $prg_obj_id)
Delete all auto-membership sources of a programme.
update(ilStudyProgrammeAutoMembershipSource $ams)
Update an auto-membership source.