19declare(strict_types=1);
34 protected function init(): void
38 if (!$this->initDone) {
40 $this->
lng = $DIC->language();
41 $this->
http = $DIC->http();
43 $this->initDone =
true;
49 return 'mail_notification';
56 return $this->
lng->txt(
'cron_mail_notification');
63 $this->
lng->loadLanguageModule(
'mail');
66 $this->
lng->txt(
'cron_mail_notification_desc'),
67 $this->lng->txt(
'mail_allow_external')
110 $this->
lng->txt(
'cron_mail_notification_message'),
111 'mail_notification_message'
113 $cb->setInfo($this->
lng->txt(
'cron_mail_notification_message_info'));
114 $cb->setChecked((
bool) $this->
settings->get(
'mail_notification_message',
'0'));
122 'mail_notification_message',
123 (
string) ($this->
http->wrapper()->post()->has(
'mail_notification_message') ? 1 : 0)
130 $setting->
set(
'mail_notification', (
string) ((
int) $a_currently_active));
const SCHEDULE_TYPE_DAILY
@depracated This will be replaced with an ENUM in ILIAS 9
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)
Important: This method is (also) called from the setup process, where the constructor of an ilCronJob...
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)
Interface GlobalHttpState.
static http()
Fetches the global http state from ILIAS.