19 declare(strict_types=1);
33 protected function init(): void
37 if (!$this->init_done) {
39 $this->
lng = $DIC->language();
40 $this->
http = $DIC->http();
42 $this->init_done =
true;
48 return 'mail_notification';
55 return $this->
lng->txt(
'cron_mail_notification');
62 $this->
lng->loadLanguageModule(
'mail');
65 $this->
lng->txt(
'cron_mail_notification_desc'),
66 $this->
lng->txt(
'mail_allow_external')
72 return JobScheduleType::DAILY;
105 $status = $ui_factory
108 ->checkbox($this->
lng->txt(
'cron_mail_notification_message'))
109 ->withByline($this->
lng->txt(
'cron_mail_notification_message_info'))
111 ->withDedicatedName(
'mail_notification_message');
120 'mail_notification_message',
121 (
string) ((
int) $form_data)
131 $result->setStatus(JobResult::STATUS_OK);
147 $setting->
set(
'mail_notification', (
string) ((
int) $a_currently_active));
saveCustomSettings(ilPropertyFormGUI $a_form)
saveCustomConfiguration(mixed $form_data)
Interface Observer Contains several chained tasks and infos about them.
set(string $a_key, string $a_val)
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
static http()
Fetches the global http state from ILIAS.
getCustomConfigurationInput(\ILIAS\UI\Factory $ui_factory, \ILIAS\Refinery\Factory $factory, ilLanguage $lng)
activationWasToggled(ilDBInterface $db, ilSetting $setting, bool $a_currently_active)
addCustomSettingsToForm(ilPropertyFormGUI $a_form)
getDefaultScheduleValue()