4 include_once
"Services/Cron/classes/class.ilCronJob.php";
15 return "cal_consultation";
22 $lng->loadLanguageModule(
'dateplaner');
23 return $lng->txt(
"cal_ch_cron_reminder");
30 $lng->loadLanguageModule(
'dateplaner');
31 return $lng->txt(
"cal_ch_cron_reminder_info");
65 $days_before = $ilSetting->get(
'ch_reminder_days');
73 $query =
'SELECT * FROM booking_user '.
74 'JOIN cal_entries ON entry_id = cal_id '.
75 'WHERE notification_sent = '.$ilDB->quote(0,
'integer').
' '.
81 include_once
'Services/Calendar/classes/class.ilCalendarMailNotification.php';
83 $mail->setAppointmentId(
$row->entry_id);
84 $mail->setRecipients(array(
$row->user_id));
89 $query =
'UPDATE booking_user '.
90 'SET notification_sent = '.$ilDB->quote(1,
'integer').
' '.
91 'WHERE user_id = '.$ilDB->quote(
$row->user_id,
'integer').
' '.
92 'AND entry_id = '.$ilDB->quote(
$row->entry_id,
'integer');
111 $lng->loadLanguageModule(
'dateplaner');
113 $consultation_days =
new ilNumberInputGUI($lng->txt(
'cal_ch_cron_reminder_days'),
'ch_reminder_days');
115 $consultation_days->setMaxLength(2);
116 $consultation_days->setSize(2);
117 $consultation_days->setValue($ilSetting->get(
'ch_reminder_days',2));
118 $consultation_days->setRequired(
true);
119 $a_form->
addItem($consultation_days);
126 $ilSetting->set(
'ch_reminder_days', $a_form->
getInput(
'ch_reminder_days'));