4 include_once
"Services/Cron/classes/class.ilCronJob.php";
15 return "cal_consultation";
24 $lng->loadLanguageModule(
'dateplaner');
25 return $lng->txt(
"cal_ch_cron_reminder");
34 $lng->loadLanguageModule(
'dateplaner');
35 return $lng->txt(
"cal_ch_cron_reminder_info");
40 return self::SCHEDULE_TYPE_DAILY;
72 $days_before =
$ilSetting->get(
'ch_reminder_days');
80 $query =
'SELECT * FROM booking_user ' .
81 'JOIN cal_entries ON entry_id = cal_id ' .
82 'WHERE notification_sent = ' .
$ilDB->quote(0,
'integer') .
' ' .
87 include_once
'Services/Calendar/classes/class.ilCalendarMailNotification.php';
89 $mail->setAppointmentId(
$row->entry_id);
90 $mail->setRecipients(array(
$row->user_id));
95 $query =
'UPDATE booking_user ' .
96 'SET notification_sent = ' .
$ilDB->quote(1,
'integer') .
' ' .
97 'WHERE user_id = ' .
$ilDB->quote(
$row->user_id,
'integer') .
' ' .
98 'AND entry_id = ' .
$ilDB->quote(
$row->entry_id,
'integer');
119 $lng->loadLanguageModule(
'dateplaner');
121 $consultation_days =
new ilNumberInputGUI(
$lng->txt(
'cal_ch_cron_reminder_days'),
'ch_reminder_days');
123 $consultation_days->setMaxLength(2);
124 $consultation_days->setSize(2);
125 $consultation_days->setValue(
$ilSetting->get(
'ch_reminder_days', 2));
126 $consultation_days->setRequired(
true);
127 $a_form->
addItem($consultation_days);
const TYPE_BOOKING_REMINDER
Cron job application base class.
Distributes calendar mail notifications.
foreach($_POST as $key=> $value) $res
addCustomSettingsToForm(ilPropertyFormGUI $a_form)
Reminders for consultation hours.
saveCustomSettings(ilPropertyFormGUI $a_form)
getDefaultScheduleValue()
Cron job result data container.