- Author
- Jens Conze
- Version
- $Id$
Definition at line 12 of file class.ilMailOptionsGUI.php.
◆ __construct()
ilMailOptionsGUI constructor.
- Parameters
-
Definition at line 53 of file class.ilMailOptionsGUI.php.
References $ctrl, $DIC, $lng, $mail_options, $request, $tpl, $user, and user().
66 if (null === $this->tpl) {
67 $this->tpl = $DIC->ui()->mainTemplate();
71 if (null === $this->ctrl) {
72 $this->ctrl = $DIC->ctrl();
76 if (null === $this->lng) {
77 $this->lng = $DIC->language();
81 if (null === $this->
user) {
82 $this->
user = $DIC->user();
86 if (null === $this->request) {
87 $this->request = $DIC->http()->request();
91 if (null === $this->umail) {
95 $this->mbox = $malBox;
96 if (null === $this->mbox) {
99 $this->mail_options = $mail_options ??
new ilMailOptions((
int) $this->
user->getId());
101 $this->lng->loadLanguageModule(
'mail');
102 $this->ctrl->saveParameter($this,
'mobj_id');
Class ilMailOptions this class handles user mails.
Mail Box class Base class for creating and handling mail boxes.
◆ executeCommand()
ilMailOptionsGUI::executeCommand |
( |
| ) |
|
Definition at line 105 of file class.ilMailOptionsGUI.php.
107 if (!$this->mail_options->mayManageInvididualSettings()) {
108 $referrer = $this->request->getQueryParams()[
'referrer'] ??
'';
109 if (strtolower(
'ilPersonalSettingsGUI') === strtolower($referrer)) {
110 $this->ctrl->redirectByClass(
'ilPersonalSettingsGUI');
113 $this->ctrl->redirectByClass(
'ilMailGUI');
117 $nextClass = $this->ctrl->getNextClass($this);
118 switch ($nextClass) {
120 if (!($cmd = $this->ctrl->getCmd())) {
121 $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 157 of file class.ilMailOptionsGUI.php.
References $form, getForm(), and showOptions().
159 $this->tpl->setTitle($this->lng->txt(
'mail'));
163 ilUtil::sendSuccess($this->lng->txt(
'mail_options_saved'),
true);
164 $this->ctrl->redirect($this,
'showOptions');
showOptions(ilMailOptionsFormGUI $form=null)
Called to display the mail options form.
◆ setForm()
◆ showOptions()
◆ $ctrl
◆ $form
◆ $lng
◆ $mail_options
ilMailOptionsGUI::$mail_options |
|
protected |
◆ $mbox
◆ $request
ilMailOptionsGUI::$request |
|
protected |
◆ $settings
ilMailOptionsGUI::$settings |
|
private |
◆ $tpl
◆ $umail
◆ $user
The documentation for this class was generated from the following file: