19 declare(strict_types=1);
31 public function getFor(
int $prg_obj_id): array;
41 ?
int $last_edited_usr_id =
null,
53 public function delete(
int $prg_obj_id,
string $source_type,
int $source_id):
void;
58 public function deleteFor(
int $prg_obj_id): void;
65 public static function getProgrammesFor(
string $source_type,
int $source_id): array;
getFor(int $prg_obj_id)
Read auto-membership sources of programme.
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
Persistence of "monitored" sources for automatic membership.
Class ilStudyProgrammeAutoMembershipSource.
static getProgrammesFor(string $source_type, int $source_id)
Get all programmes' obj_ids monitoring the given source.
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.
deleteFor(int $prg_obj_id)
Delete all auto-membership sources of a programme.
update(ilStudyProgrammeAutoMembershipSource $ams)
Update an auto-membership source.