6 declare(strict_types=1);
17 const ID =
'prg_invalidate_expired_progresses';
39 $this->log = $DIC[
'ilLog'];
40 $this->lng = $DIC[
'lng'];
41 $this->lng->loadLanguageModule(
'prg');
51 return $this->lng->txt(
'prg_invalidate_expired_progresses_title');
61 return $this->lng->txt(
'prg_invalidate_expired_progresses_desc');
101 return self::SCHEDULE_TYPE_IN_DAYS;
122 foreach ($this->user_progress_db->getExpiredSuccessfull() as $progress) {
124 $progress->invalidate();
126 $this->log->write(
'an error occured: ' . $e->getMessage());
getDescription()
Get description.
hasFlexibleSchedule()
Can the schedule be configured?
Cron job application base class.
This ivalidates a successful progress if validityOfQualification is reached.
hasAutoActivation()
Is to be activated on "installation".
Cron job result data container.
getDefaultScheduleValue()
Get schedule value.
getDefaultScheduleType()
Get schedule type.