6declare(strict_types=1);
11 const ID =
'prg_invalidate_expired_progresses';
33 $this->log =
$DIC[
'ilLog'];
34 $this->lng =
$DIC[
'lng'];
35 $this->lng->loadLanguageModule(
'prg');
45 return $this->lng->txt(
'prg_invalidate_expired_progresses_title');
55 return $this->lng->txt(
'prg_invalidate_expired_progresses_desc');
116 foreach ($this->user_progress_db->getExpiredSuccessfulInstances() as $progress) {
118 $progress->invalidate();
120 $this->log->write(
'an error occured: ' .
$e->getMessage());
An exception for terminatinating execution or to throw for unit testing.
Cron job result data container.
Cron job application base class.
const SCHEDULE_TYPE_IN_DAYS
Base class for ILIAS Exception handling.
hasFlexibleSchedule()
Can the schedule be configured?
getDefaultScheduleValue()
Get schedule value.
getDescription()
Get description.
hasAutoActivation()
Is to be activated on "installation".
getDefaultScheduleType()
Get schedule type.