19 declare(strict_types=1);
35 protected function init(): void
39 if (!$this->initDone) {
41 $this->
lng = $DIC->language();
42 $this->
http = $DIC->http();
44 $this->initDone =
true;
50 return 'mail_notification';
57 return $this->
lng->txt(
'cron_mail_notification');
64 $this->
lng->loadLanguageModule(
'mail');
67 $this->
lng->txt(
'cron_mail_notification_desc'),
68 $this->
lng->txt(
'mail_allow_external')
74 return CronJobScheduleType::SCHEDULE_TYPE_DAILY;
111 $this->
lng->txt(
'cron_mail_notification_message'),
112 'mail_notification_message' 114 $cb->setInfo($this->
lng->txt(
'cron_mail_notification_message_info'));
115 $cb->setChecked((
bool) $this->
settings->get(
'mail_notification_message',
'0'));
123 'mail_notification_message',
124 (
string) ($this->
http->wrapper()->post()->has(
'mail_notification_message') ? 1 : 0)
131 $setting->
set(
'mail_notification', (
string) ((
int) $a_currently_active));
saveCustomSettings(ilPropertyFormGUI $a_form)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
set(string $a_key, string $a_val)
static http()
Fetches the global http state from ILIAS.
activationWasToggled(ilDBInterface $db, ilSetting $setting, bool $a_currently_active)
addCustomSettingsToForm(ilPropertyFormGUI $a_form)
getDefaultScheduleValue()