3declare(strict_types=1);
27 private const ID =
'prg_update_progress';
29 protected Pimple\Container
$dic;
38 $this->
lng = $DIC[
'lng'];
39 $this->
lng->loadLanguageModule(
'prg');
42 $this->settings_repo =
$dic[
'model.Settings.ilStudyProgrammeSettingsRepository'];
43 $this->assignment_repo =
$dic[
'repo.assignment'];
44 $this->acting_user_id =
$dic[
'current_user']->getId();
49 return $this->
lng->txt(
'prg_update_progress_title');
54 return $this->
lng->txt(
'prg_update_progress_description');
87 $now =
new DateTimeImmutable();
89 foreach ($this->assignment_repo->getPassedDeadline($now) as $assignment) {
90 $assignment = $assignment->markProgressesFailedForExpiredDeadline(
94 $this->assignment_repo->store($assignment);
const SCHEDULE_TYPE_IN_DAYS
@depracated This will be replaced with an ENUM in ILIAS 9
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
ilStudyProgrammeSettingsDBRepository $settings_repo
getDefaultScheduleValue()
hasAutoActivation()
Is to be activated on "installation", does only work for ILIAS core cron jobs.
ilPRGAssignmentDBRepository $assignment_repo
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...