19declare(strict_types=1);
47 $this->tpl =
$tpl ??
$DIC->ui()->mainTemplate();
49 $this->
lng = $lng ??
$DIC->language();
55 $this->
lng->loadLanguageModule(
'mail');
56 $this->
ctrl->saveParameter($this,
'mobj_id');
61 if (!$this->mail_options->mayManageInvididualSettings()) {
63 if ($this->
http->wrapper()->query()->has(
'referrer')) {
64 $referrer = $this->
http->wrapper()->query()->retrieve(
66 $this->
refinery->kindlyTo()->string()
69 if (strtolower(ilPersonalSettingsGUI::class) === strtolower($referrer)) {
70 $this->
ctrl->redirectByClass(PersonalSettingsGUI::class);
72 $this->
ctrl->redirectByClass(ilMailGUI::class);
75 if (!($cmd = $this->
ctrl->getCmd())) {
97 $this->tpl->setTitle($this->
lng->txt(
'mail'));
101 $this->tpl->setOnScreenMessage(
'success', $this->
lng->txt(
'mail_options_saved'),
true);
102 $this->
ctrl->redirect($this,
'showOptions');
110 if (
null ===
$form) {
118 $this->tpl->printToStdout();
@ilCtrl_Calls ILIAS\User\Settings\PersonalSettingsGUI: ILIAS\User\Account\DeleteAccountGUI @ilCtrl_Ca...
ilMailOptions $mail_options
__construct(?ilGlobalTemplateInterface $tpl=null, ?ilCtrlInterface $ctrl=null, ?ilLanguage $lng=null, ?ilObjUser $user=null, ?GlobalHttpState $http=null, ?Refinery $refinery=null, ?ilMailOptions $mail_options=null)
showOptions(?ilMailOptionsFormGUI $form=null)
ilMailOptionsFormGUI $form
readonly ilGlobalTemplateInterface $tpl
readonly ilCtrlInterface $ctrl
setForm(ilMailOptionsFormGUI $form)
readonly ilSetting $settings
Interface GlobalHttpState.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
static http()
Fetches the global http state from ILIAS.
form( $class_path, string $cmd, string $submit_caption="")