3declare(strict_types=1);
50 $this->tpl =
$tpl ??
$DIC->ui()->mainTemplate();
52 $this->
lng = $lng ??
$DIC->language();
58 $this->
lng->loadLanguageModule(
'mail');
59 $this->
ctrl->saveParameter($this,
'mobj_id');
64 if (!$this->mail_options->mayManageInvididualSettings()) {
66 if ($this->
http->wrapper()->query()->has(
'referrer')) {
67 $referrer = $this->
http->wrapper()->query()->retrieve(
69 $this->
refinery->kindlyTo()->string()
72 if (strtolower(ilPersonalSettingsGUI::class) === strtolower($referrer)) {
73 $this->
ctrl->redirectByClass(ilPersonalSettingsGUI::class);
75 $this->
ctrl->redirectByClass(ilMailGUI::class);
78 $nextClass = $this->
ctrl->getNextClass($this);
81 if (!($cmd = $this->
ctrl->getCmd())) {
106 $this->tpl->setTitle($this->
lng->txt(
'mail'));
110 $this->tpl->setOnScreenMessage(
'success', $this->
lng->txt(
'mail_options_saved'),
true);
111 $this->
ctrl->redirect($this,
'showOptions');
119 if (
null ===
$form) {
127 $this->tpl->printToStdout();
ilMailOptions $mail_options
showOptions(ilMailOptionsFormGUI $form=null)
ilGlobalTemplateInterface $tpl
ilMailOptionsFormGUI $form
__construct(ilGlobalTemplateInterface $tpl=null, ilCtrlInterface $ctrl=null, ilLanguage $lng=null, ilObjUser $user=null, GlobalHttpState $http=null, Refinery $refinery=null, ilMailOptions $mail_options=null)
setForm(ilMailOptionsFormGUI $form)
Class ilMailOptions this class handles user mails.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Interface GlobalHttpState.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
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)