5 include_once
"Services/Cron/classes/class.ilCronJob.php";
28 $this->lng = $DIC->language();
33 return "exc_reminders";
40 $lng->loadLanguageModule(
"exc");
42 return $lng->txt(
"exc_reminders_cron");
49 $lng->loadLanguageModule(
"exc");
51 return $lng->txt(
"exc_reminders_cron_info");
56 return self::SCHEDULE_TYPE_DAILY;
76 include_once
"Modules/Exercise/classes/class.ilExAssignmentReminder.php";
79 $log->debug(
"--- Start Exercise Reminders Cron");
84 $num_reminders = $reminder->checkReminders();
86 $this->lng->loadLanguageModule(
"exc");
90 $message = $this->lng->txt(
'exc_reminder_cron_ok');
94 $cron_result->setStatus($cron_status);
97 $cron_result->setMessage(
$message .
" " . $num_reminders);
98 $cron_result->setCode(
"#" . $num_reminders);
getDefaultScheduleValue()
Cron job application base class.
catch(Exception $e) $message
Cron for exercise reminders.
TODO: import/export reminder data with the exercise/assignment.
static getLogger($a_component_id)
Get component logger.
Cron job result data container.
__construct()
Constructor.