- Author
- Jens Conze
- Version
- $Id$
Definition at line 12 of file class.ilMailOptionsGUI.php.
◆ __construct()
ilMailOptionsGUI constructor.
- Parameters
-
Definition at line 52 of file class.ilMailOptionsGUI.php.
References $ctrl, $DIC, $lng, $request, $tpl, $user, settings(), and user().
65 if (null === $this->tpl) {
66 $this->tpl = $DIC->ui()->mainTemplate();
70 if (null === $this->ctrl) {
71 $this->ctrl = $DIC->ctrl();
80 if (null === $this->lng) {
81 $this->lng = $DIC->language();
85 if (null === $this->
user) {
86 $this->
user = $DIC->user();
90 if (null === $this->request) {
91 $this->request = $DIC->http()->request();
95 if (null === $this->umail) {
99 $this->mbox = $malBox;
100 if (null === $this->mbox) {
104 $this->lng->loadLanguageModule(
'mail');
105 $this->ctrl->saveParameter($this,
'mobj_id');
Mail Box class Base class for creating and handling mail boxes.
◆ executeCommand()
ilMailOptionsGUI::executeCommand |
( |
| ) |
|
Definition at line 108 of file class.ilMailOptionsGUI.php.
References settings().
110 if (!$this->
settings->get(
'show_mail_settings')) {
111 $referrer = $this->request->getQueryParams()[
'referrer'] ??
'';
112 if (strtolower(
'ilPersonalSettingsGUI') === strtolower($referrer)) {
113 $this->ctrl->redirectByClass(
'ilPersonalSettingsGUI');
116 $this->ctrl->redirectByClass(
'ilMailGUI');
120 $nextClass = $this->ctrl->getNextClass($this);
121 switch ($nextClass) {
123 if (!($cmd = $this->ctrl->getCmd())) {
124 $cmd =
'showOptions';
◆ getForm()
ilMailOptionsGUI::getForm |
( |
| ) |
|
|
protected |
◆ saveOptions()
ilMailOptionsGUI::saveOptions |
( |
| ) |
|
|
protected |
Called if the user pushes the submit button of the mail options form.
Passes the post data to the mail options model instance to store them.
Definition at line 160 of file class.ilMailOptionsGUI.php.
References $form, getForm(), and showOptions().
162 $this->tpl->setTitle($this->lng->txt(
'mail'));
166 ilUtil::sendSuccess($this->lng->txt(
'mail_options_saved'),
true);
167 $this->ctrl->redirect($this,
'showOptions');
showOptions(ilMailOptionsFormGUI $form=null)
Called to display the mail options form.
◆ setForm()
◆ showOptions()
◆ $ctrl
◆ $form
◆ $lng
◆ $mbox
◆ $request
ilMailOptionsGUI::$request |
|
protected |
◆ $settings
ilMailOptionsGUI::$settings |
|
private |
◆ $tpl
◆ $umail
◆ $user
The documentation for this class was generated from the following file: