6 declare(strict_types=1);
30 $this->log = $DIC[
'ilLog'];
31 $this->lng = $DIC[
'lng'];
32 $this->lng->loadLanguageModule(
"prg");
35 const ID =
'prg_restart_assignments_temporal_progress';
44 return $this->lng->txt(
'prg_restart_assignments_temporal_progress_title');
54 return $this->lng->txt(
'prg_restart_assignments_temporal_progress_desc');
93 return self::SCHEDULE_TYPE_IN_DAYS;
115 foreach ($this->user_assignments_db->getDueToRestartInstances() as $assignment) {
117 $assignment->restartAssignment();
119 $this->log->write(
'an error occured: ' . $e->getMessage());
getDescription()
Get description.
Cron job application base class.
getDefaultScheduleValue()
Get schedule value.
hasAutoActivation()
Is to be activated on "installation".
getDefaultScheduleType()
Get schedule type.
Cron job result data container.
hasFlexibleSchedule()
Can the schedule be configured?