ILIAS  trunk Revision v11.0_alpha-1811-gd2d5443e411
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
ilPrgCronRiskyToFail.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->getProgrammeIdsWithRiskyToFailSettings();
37  }
38 
39  public function actOnSingleAssignment(ilPRGAssignment $ass): void
40  {
41  $this->events->userRiskyToFail($ass);
42  }
43 }
ilStudyProgrammeSettingsDBRepository $settings_repo
actOnSingleAssignment(ilPRGAssignment $ass)
actual (additional) payload; what to do with the found assignment(s)
getRelevantProgrammeIds()
acts as a pre-filter to not touch all PRGs; return obj_ids and config-setting, when a mail should be ...
ilStudyProgrammeEvents $events
__construct(ilStudyProgrammeSettingsDBRepository $settings_repo, ilStudyProgrammeEvents $events)
Assignments are relations of users to a PRG; They hold progress-information for (sub-)nodes of the PR...