4 require_once
"Services/Mail/classes/class.ilMailbox.php";
5 require_once
"Services/Mail/classes/class.ilFormatMail.php";
6 require_once
'Services/Mail/classes/class.ilMailOptions.php';
33 $this->ctrl->saveParameter($this,
"mobj_id");
36 $this->mbox =
new ilMailBox($ilUser->getId());
41 $forward_class = $this->ctrl->getNextClass($this);
42 switch($forward_class)
45 if (!(
$cmd = $this->ctrl->getCmd()))
67 $this->tpl->setTitle($lng->txt(
'mail'));
71 if($ilSetting->get(
'usr_settings_hide_mail_incoming_mail') !=
'1' &&
72 $ilSetting->get(
'usr_settings_disable_mail_incoming_mail') !=
'1')
74 $incoming_type = (int)
$_POST[
'incoming_type'];
78 $incoming_type = $mailOptions->getIncomingType();
81 if($this->form->checkInput())
83 $mailOptions->updateOptions(
87 (
int)$_POST[
'cronjob_notification']
93 $this->form->setValuesByPost();
95 $this->tpl->setContent($this->form->getHTML());
109 $this->tpl->setTitle($lng->txt(
'mail'));
114 $this->tpl->setContent($this->form->getHTML());
131 'linebreak' => $mailOptions->getLinebreak(),
132 'signature' => $mailOptions->getSignature(),
133 'cronjob_notification' => $mailOptions->getCronjobNotification()
136 if($ilSetting->get(
'usr_settings_hide_mail_incoming_mail') !=
'1')
141 $this->form->setValuesByArray($data);
154 include_once
'Services/Form/classes/class.ilPropertyFormGUI.php';
157 $this->form->setFormAction($ilCtrl->getFormAction($this,
'saveOptions'));
158 $this->form->setTitle($lng->txt(
'mail_settings'));
161 if($ilSetting->get(
'usr_settings_hide_mail_incoming_mail') !=
'1')
171 $ilSetting->get(
'usr_settings_disable_mail_incoming_mail') ==
'1')
173 $si->setDisabled(
true);
175 $this->form->addItem($si);
180 for($i = 50; $i <= 80; $i++)
186 $this->form->addItem(
$si);
192 $this->form->addItem($ta);
195 if($ilSetting->get(
'mail_notification'))
197 $cb =
new ilCheckboxInputGUI($lng->txt(
'cron_mail_notification'),
'cronjob_notification');
198 $cb->
setInfo($lng->txt(
'mail_cronjob_notification_info'));
200 $this->form->addItem($cb);
203 $this->form->addCommandButton(
'saveOptions', $lng->txt(
'save'));