ILIAS  release_8 Revision v8.19-1-g4e8f2f9140c
All Data Structures Namespaces Files Functions Variables Modules Pages
ilPrgRestart Class Reference

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...

+ Inheritance diagram for ilPrgRestart:
+ Collaboration diagram for ilPrgRestart:

Public Member Functions

 __construct (ilStudyProgrammeSettingsDBRepository $settings_repo, ilStudyProgrammeEvents $events)
 
 getRelevantProgrammeIds ()
 acts as a pre-filter to not touch all PRGs; return obj_ids and config-setting, when a mail should be issued. More...
 
 actOnSingleAssignment (ilPRGAssignment $ass)
 actual (additional) payload; what to do with the found assignment(s) More...
 

Protected Attributes

ilStudyProgrammeSettingsDBRepository $settings_repo
 
ilStudyProgrammeEvents $events
 

Detailed Description

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.

ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.

If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning

Definition at line 22 of file ilPrgRestart.php.

Constructor & Destructor Documentation

◆ __construct()

ilPrgRestart::__construct ( ilStudyProgrammeSettingsDBRepository  $settings_repo,
ilStudyProgrammeEvents  $events 
)

Definition at line 27 of file ilPrgRestart.php.

References $events, and $settings_repo.

30  {
31  $this->settings_repo = $settings_repo;
32  $this->events = $events;
33  }
ilStudyProgrammeSettingsDBRepository $settings_repo
ilStudyProgrammeEvents $events

Member Function Documentation

◆ actOnSingleAssignment()

ilPrgRestart::actOnSingleAssignment ( ilPRGAssignment  $ass)

actual (additional) payload; what to do with the found assignment(s)

Implements ilPrgCronJobAdapter.

Definition at line 41 of file ilPrgRestart.php.

41  : void
42  {
43  $this->events->userReAssigned($ass);
44  }

◆ getRelevantProgrammeIds()

ilPrgRestart::getRelevantProgrammeIds ( )

acts as a pre-filter to not touch all PRGs; return obj_ids and config-setting, when a mail should be issued.

Returns
array <$programme_obj_id => $days_offset_mail>

Implements ilPrgCronJobAdapter.

Definition at line 35 of file ilPrgRestart.php.

35  : array
36  {
37  return $this->settings_repo
38  ->getProgrammeIdsWithReassignmentForExpiringValidity();
39  }

Field Documentation

◆ $events

ilStudyProgrammeEvents ilPrgRestart::$events
protected

Definition at line 25 of file ilPrgRestart.php.

Referenced by __construct().

◆ $settings_repo

ilStudyProgrammeSettingsDBRepository ilPrgRestart::$settings_repo
protected

Definition at line 24 of file ilPrgRestart.php.

Referenced by __construct().


The documentation for this class was generated from the following file: