19declare(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;
101 \
ILIAS\UI\Factory $ui_factory,
102 \
ILIAS\Refinery\Factory $factory,
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);
137 throw new RuntimeException(
'Not implemented');
142 throw new RuntimeException(
'Not implemented');
147 $setting->
set(
'mail_notification', (
string) ((
int) $a_currently_active));
hasAutoActivation()
Is to be activated on "installation", does only work for ILIAS core cron jobs.
addCustomSettingsToForm(ilPropertyFormGUI $a_form)
getDefaultScheduleValue()
saveCustomSettings(ilPropertyFormGUI $a_form)
activationWasToggled(ilDBInterface $db, ilSetting $setting, bool $a_currently_active)
saveCustomConfiguration(mixed $form_data)
getCustomConfigurationInput(\ILIAS\UI\Factory $ui_factory, \ILIAS\Refinery\Factory $factory, ilLanguage $lng)
set(string $a_key, string $a_val)
Interface GlobalHttpState.
static http()
Fetches the global http state from ILIAS.
Interface Observer \BackgroundTasks Contains several chained tasks and infos about them.