37 $this->
lng = $DIC->language();
42 return "exc_reminders";
51 return $lng->
txt(
"exc_reminders_cron");
60 return $lng->
txt(
"exc_reminders_cron_info");
65 return JobScheduleType::DAILY;
89 $log->debug(
"--- Start Exercise Reminders Cron");
91 $cron_status = JobResult::STATUS_NO_ACTION;
94 $num_reminders = $reminder->checkReminders();
96 $this->
lng->loadLanguageModule(
"exc");
98 if ($num_reminders !== 0) {
99 $cron_status = JobResult::STATUS_OK;
100 $message = $this->
lng->txt(
'exc_reminder_cron_ok');
104 $cron_result->setStatus($cron_status);
107 $cron_result->setMessage(
$message .
" " . $num_reminders .
' / ' .
"#" . $num_reminders);
static getLogger(string $a_component_id)
Get component logger.
txt(string $a_topic, string $a_default_lang_fallback_mod="")
gets the text for a given topic if the topic is not in the list, the topic itself with "-" will be re...
getDefaultScheduleValue()
loadLanguageModule(string $a_module)
Load language module.
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
Cron for exercise reminders.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...