4include_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');
114 $consultation_days->setMinValue(1);
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);
const DB_FETCHMODE_OBJECT
Distributes calendar mail notifications.
const TYPE_BOOKING_REMINDER
Reminders for consultation hours.
hasCustomSettings()
Has cron job any custom setting which can be edited?
getDefaultScheduleValue()
Get schedule value.
saveCustomSettings(ilPropertyFormGUI $a_form)
Save custom settings.
hasAutoActivation()
Is to be activated on "installation".
addCustomSettingsToForm(ilPropertyFormGUI $a_form)
Add custom settings to form.
getDefaultScheduleType()
Get schedule type.
hasFlexibleSchedule()
Can the schedule be configured?
getDescription()
Get description.
Cron job result data container.
Cron job application base class.
const SCHEDULE_TYPE_DAILY
@classDescription Date and time handling