- Author
- Jens Conze
- Version
- $Id$
Definition at line 15 of file class.ilMailOptionsGUI.php.
◆ __construct()
ilMailOptionsGUI::__construct |
( |
| ) |
|
ilMailOptionsGUI constructor.
Definition at line 55 of file class.ilMailOptionsGUI.php.
56 {
58
59 $this->tpl =
$DIC->ui()->mainTemplate();
60 $this->ctrl =
$DIC->ctrl();
62 $this->lng =
$DIC->language();
63 $this->
user = $DIC->user();
64
65 $this->lng->loadLanguageModule('mail');
66
67 $this->ctrl->saveParameter($this, 'mobj_id');
68
70 $this->mbox =
new ilMailBox($this->
user->getId());
71 }
References $DIC, settings(), and user().
◆ executeCommand()
ilMailOptionsGUI::executeCommand |
( |
| ) |
|
Definition at line 73 of file class.ilMailOptionsGUI.php.
74 {
75 $nextClass = $this->ctrl->getNextClass($this);
76 switch ($nextClass) {
77 default:
78 if (!($cmd = $this->ctrl->getCmd())) {
79 $cmd = 'showOptions';
80 }
81
82 $this->$cmd();
83 break;
84 }
85 }
◆ getForm()
ilMailOptionsGUI::getForm |
( |
| ) |
|
|
protected |
◆ saveOptions()
ilMailOptionsGUI::saveOptions |
( |
| ) |
|
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 103 of file class.ilMailOptionsGUI.php.
104 {
105 $this->tpl->setTitle($this->lng->txt('mail'));
106
110 }
111
113 }
showOptions(ilMailOptionsFormGUI $form=null)
Called to display the mail options form.
static sendSuccess($a_info="", $a_keep=false)
Send Success Message to Screen.
if(isset($_POST['submit'])) $form
References $form, getForm(), ilUtil\sendSuccess(), and showOptions().
◆ showOptions()
Called to display the mail options form.
- Parameters
-
$form | ilMailOptionsFormGUI|null |
Definition at line 119 of file class.ilMailOptionsGUI.php.
120 {
121 if (
null ===
$form) {
124 } else {
125 $form->setValuesByPost();
126 }
127
128 $this->tpl->setContent(
$form->getHTML());
129 $this->tpl->show();
130 }
References $form, and getForm().
Referenced by saveOptions().
◆ $ctrl
◆ $lng
◆ $mbox
◆ $settings
ilMailOptionsGUI::$settings |
|
private |
◆ $tpl
◆ $umail
◆ $user
The documentation for this class was generated from the following file: