30 $this->lng =
$DIC->language();
31 if (isset(
$DIC[
"tree"])) {
32 $this->tree =
$DIC->repositoryTree();
38 return "survey_notification";
45 $lng->loadLanguageModule(
"survey");
46 return $lng->txt(
"survey_reminder_cron");
53 $lng->loadLanguageModule(
"survey");
54 return $lng->txt(
"survey_reminder_cron_info");
85 include_once
"Modules/Survey/classes/class.ilObjSurvey.php";
92 $log->debug(var_export($tutor_res,
true));
94 $root =
$tree->getNodeData(ROOT_FOLDER_ID);
95 foreach (
$tree->getSubTree($root,
false,
"svy") as $svy_ref_id) {
97 $num = $svy->checkReminder();
99 $message[] = $svy_ref_id .
"(" . $num .
")";
104 if (in_array($svy->getId(), $tutor_res)) {
105 if ($svy->sendTutorResults()) {
An exception for terminatinating execution or to throw for unit testing.
Cron job result data container.
Cron job application base class.
const SCHEDULE_TYPE_DAILY
static getLogger($a_component_id)
Get component logger.
static getSurveysWithTutorResults()
Cron for survey notifications.
hasAutoActivation()
Is to be activated on "installation".
getDescription()
Get description.
__construct()
Constructor.
getDefaultScheduleValue()
Get schedule value.
getDefaultScheduleType()
Get schedule type.
hasFlexibleSchedule()
Can the schedule be configured?