3 declare(strict_types=1);
29 private const ID =
'prg_update_progress';
40 $this->
lng = $DIC[
'lng'];
41 $this->
lng->loadLanguageModule(
'prg');
44 $this->settings_repo = $dic[
'model.Settings.ilStudyProgrammeSettingsRepository'];
45 $this->assignment_repo = $dic[
'repo.assignment'];
46 $this->acting_user_id = $dic[
'current_user']->getId();
51 return $this->
lng->txt(
'prg_update_progress_title');
56 return $this->
lng->txt(
'prg_update_progress_description');
76 return CronJobScheduleType::SCHEDULE_TYPE_IN_DAYS;
91 foreach ($this->assignment_repo->getPassedDeadline($now) as $assignment) {
92 $assignment = $assignment->markProgressesFailedForExpiredDeadline(
96 $this->assignment_repo->store($assignment);
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
ilPRGAssignmentDBRepository $assignment_repo
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
final const STATUS_NO_ACTION
getDefaultScheduleValue()
ilStudyProgrammeSettingsDBRepository $settings_repo
This will set progresses to FAILED, if they are past the deadline (and not successful, yet)
Assignments are relations of users to a PRG; They hold progress-information for (sub-)nodes of the PR...