- Author
- Jens Conze
- Version
- $Id$
Definition at line 10 of file class.ilMailOptionsGUI.php.
◆ __construct()
ilMailOptionsGUI constructor.
- Parameters
-
Definition at line 68 of file class.ilMailOptionsGUI.php.
References $ctrl, $DIC, $lng, $request, $tpl, $user, settings(), and user().
81 if (null === $this->tpl) {
82 $this->tpl = $DIC->ui()->mainTemplate();
86 if (null === $this->ctrl) {
87 $this->ctrl = $DIC->ctrl();
96 if (null === $this->lng) {
97 $this->lng = $DIC->language();
101 if (null === $this->
user) {
102 $this->
user = $DIC->user();
106 if (null === $this->request) {
107 $this->request = $DIC->http()->request();
110 $this->umail = $mail;
111 if (null === $this->umail) {
112 $this->umail = new \ilFormatMail($this->
user->getId());
115 $this->mbox = $malBox;
116 if (null === $this->mbox) {
117 $this->mbox = new \ilMailbox($this->
user->getId());
120 $this->lng->loadLanguageModule(
'mail');
121 $this->ctrl->saveParameter($this,
'mobj_id');
◆ executeCommand()
ilMailOptionsGUI::executeCommand |
( |
| ) |
|
Definition at line 124 of file class.ilMailOptionsGUI.php.
References settings().
126 if (!$this->
settings->get(
'show_mail_settings')) {
127 $referrer = $this->request->getQueryParams()[
'referrer'] ??
'';
128 if (strtolower(
'ilPersonalSettingsGUI') === strtolower($referrer)) {
129 $this->ctrl->redirectByClass(
'ilPersonalSettingsGUI');
132 $this->ctrl->redirectByClass(
'ilMailGUI');
136 $nextClass = $this->ctrl->getNextClass($this);
137 switch ($nextClass) {
139 if (!($cmd = $this->ctrl->getCmd())) {
140 $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 176 of file class.ilMailOptionsGUI.php.
References $form, getForm(), and showOptions().
178 $this->tpl->setTitle($this->lng->txt(
'mail'));
182 ilUtil::sendSuccess($this->lng->txt(
'mail_options_saved'),
true);
183 $this->ctrl->redirect($this,
'showOptions');
showOptions(\ilMailOptionsFormGUI $form=null)
Called to display the mail options form.
◆ setForm()
◆ showOptions()
◆ $ctrl
◆ $form
ilMailOptionsGUI::$form = null |
|
protected |
◆ $lng
◆ $mbox
◆ $request
ilMailOptionsGUI::$request |
|
protected |
◆ $settings
ilMailOptionsGUI::$settings |
|
private |
◆ $tpl
◆ $umail
◆ $user
The documentation for this class was generated from the following file: