24 require_once
"Services/Mail/classes/class.ilMailbox.php";
25 require_once
"Services/Mail/classes/class.ilFormatMail.php";
26 require_once
'Services/Mail/classes/class.ilMailOptions.php';
53 $this->ctrl->saveParameter($this,
"mobj_id");
56 $this->mbox =
new ilMailBox($ilUser->getId());
61 $forward_class = $this->ctrl->getNextClass($this);
62 switch($forward_class)
65 if (!(
$cmd = $this->ctrl->getCmd()))
87 $this->tpl->setTitle($lng->txt(
'mail'));
91 if($ilSetting->get(
'usr_settings_hide_mail_incoming_mail') !=
'1' &&
92 $ilSetting->get(
'usr_settings_disable_mail_incoming_mail') !=
'1')
94 $incoming_type = (int)
$_POST[
'incoming_type'];
98 $incoming_type = $mailOptions->getIncomingType();
101 if($this->form->checkInput())
103 $mailOptions->updateOptions(
107 (
int)$_POST[
'cronjob_notification']
113 $this->form->setValuesByPost();
115 $this->tpl->setContent($this->form->getHTML());
129 $this->tpl->setTitle($lng->txt(
'mail'));
134 $this->tpl->setContent($this->form->getHTML());
151 'linebreak' => $mailOptions->getLinebreak(),
152 'signature' => $mailOptions->getSignature(),
153 'cronjob_notification' => $mailOptions->getCronjobNotification()
156 if($ilSetting->get(
'usr_settings_hide_mail_incoming_mail') !=
'1')
161 $this->form->setValuesByArray($data);
174 include_once
'Services/Form/classes/class.ilPropertyFormGUI.php';
177 $this->form->setFormAction($ilCtrl->getFormAction($this,
'saveOptions'));
178 $this->form->setTitle($lng->txt(
'mail_settings'));
181 if($ilSetting->get(
'usr_settings_hide_mail_incoming_mail') !=
'1')
191 $ilSetting->get(
'usr_settings_disable_mail_incoming_mail') ==
'1')
193 $si->setDisabled(
true);
195 $this->form->addItem($si);
200 for($i = 50; $i <= 80; $i++)
206 $this->form->addItem($si);
212 $this->form->addItem($ta);
215 if($ilSetting->get(
'mail_notification'))
217 $cb =
new ilCheckboxInputGUI($lng->txt(
'cron_mail_notification'),
'cronjob_notification');
218 $cb->
setInfo($lng->txt(
'mail_cronjob_notification_info'));
220 $this->form->addItem($cb);
223 $this->form->addCommandButton(
'saveOptions', $lng->txt(
'save'));