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");
36 return self::SCHEDULE_TYPE_DAILY;
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') .
' ' .
80 include_once
'Services/Calendar/classes/class.ilCalendarMailNotification.php';
82 $mail->setAppointmentId(
$row->entry_id);
83 $mail->setRecipients(
array(
$row->user_id));
88 $query =
'UPDATE booking_user ' .
89 'SET notification_sent = ' . $ilDB->quote(1,
'integer') .
' ' .
90 'WHERE user_id = ' . $ilDB->quote(
$row->user_id,
'integer') .
' ' .
91 'AND entry_id = ' . $ilDB->quote(
$row->entry_id,
'integer');
109 $lng->loadLanguageModule(
'dateplaner');
111 $consultation_days =
new ilNumberInputGUI($lng->txt(
'cal_ch_cron_reminder_days'),
'ch_reminder_days');
113 $consultation_days->setMaxLength(2);
114 $consultation_days->setSize(2);
115 $consultation_days->setValue($ilSetting->get(
'ch_reminder_days', 2));
116 $consultation_days->setRequired(
true);
117 $a_form->
addItem($consultation_days);
124 $ilSetting->set(
'ch_reminder_days', $a_form->
getInput(
'ch_reminder_days'));
const TYPE_BOOKING_REMINDER
Cron job application base class.
Distributes calendar mail notifications.
foreach($_POST as $key=> $value) $res
Create styles array
The data for the language used.
addCustomSettingsToForm(ilPropertyFormGUI $a_form)
Reminders for consultation hours.
saveCustomSettings(ilPropertyFormGUI $a_form)
getDefaultScheduleValue()
Add data(end) time
Method that wraps PHPs time in order to allow simulations with the workflow.
Cron job result data container.