ILIAS  trunk Revision v11.0_alpha-1749-g1a06bdef097
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
ilPrgRestart.php
Go to the documentation of this file.
1 <?php
2 
19 declare(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 }
getRelevantProgrammeIds()
acts as a pre-filter to not touch all PRGs; return obj_ids and config-setting, when a mail should be ...
__construct(ilStudyProgrammeSettingsDBRepository $settings_repo, ilStudyProgrammeEvents $events)
actOnSingleAssignment(ilPRGAssignment $ass)
actual (additional) payload; what to do with the found assignment(s)
ilStudyProgrammeSettingsDBRepository $settings_repo
Assignments are relations of users to a PRG; They hold progress-information for (sub-)nodes of the PR...
ilStudyProgrammeEvents $events