36 $this->
lng = $DIC->language();
37 if (isset($DIC[
"tree"])) {
38 $this->tree = $DIC->repositoryTree();
44 return "survey_notification";
52 return $lng->
txt(
"survey_reminder_cron");
60 return $lng->
txt(
"survey_reminder_cron_info");
65 return CronJobScheduleType::SCHEDULE_TYPE_DAILY;
94 foreach ($tree->getSubTree($root,
false, [
"svy"]) as $svy_ref_id) {
96 $num = $svy->checkReminder();
98 $message[] = $svy_ref_id .
"(" . $num .
")";
104 $result->setStatus($status);
107 $result->setMessage(
"Ref-Ids: " . implode(
", ",
$message) .
' / ' .
"#" . count(
$message));
static getLogger(string $a_component_id)
Get component logger.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
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...
loadLanguageModule(string $a_module)
Load language module.
getDefaultScheduleValue()
Cron for survey notifications (reminder to paricipate in the survey)
final const STATUS_NO_ACTION