ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ilPrgRestart.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22{
25
26 public function __construct(
29 ) {
30 $this->settings_repo = $settings_repo;
31 $this->events = $events;
32 }
33
34 public function getRelevantProgrammeIds(): array
35 {
36 return $this->settings_repo
37 ->getProgrammeIdsWithReassignmentForExpiringValidity();
38 }
39
40 public function actOnSingleAssignment(ilPRGAssignment $ass): void
41 {
42 $this->events->userReAssigned($ass);
43 }
44}
Assignments are relations of users to a PRG; They hold progress-information for (sub-)nodes of the PR...
__construct(ilStudyProgrammeSettingsDBRepository $settings_repo, ilStudyProgrammeEvents $events)
ilStudyProgrammeSettingsDBRepository $settings_repo
getRelevantProgrammeIds()
acts as a pre-filter to not touch all PRGs; return obj_ids and config-setting, when a mail should be ...
actOnSingleAssignment(ilPRGAssignment $ass)
actual (additional) payload; what to do with the found assignment(s)
ilStudyProgrammeEvents $events