4require_once
"Services/Mail/classes/class.ilMailbox.php";
5require_once
"Services/Mail/classes/class.ilFormatMail.php";
6require_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')
138 $data[
'incoming_type'] = $mailOptions->getIncomingType();
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);
198 $cb->setInfo(
$lng->txt(
'mail_cronjob_notification_info'));
200 $this->form->addItem($cb);
203 $this->form->addCommandButton(
'saveOptions',
$lng->txt(
'save'));
initMailOptionsForm()
Initialises the mail options form.
showOptions()
Called to display the mail options form.
saveOptions()
Called if the user pushes the submit button of the mail options form.
setMailOptionsValuesByDB()
Fetches data from model and loads this data into form.
Class UserMail this class handles user mails.
_lookupEmail($a_user_id)
Lookup email.
This class represents a text area property in a property form.
static sendSuccess($a_info="", $a_keep=false)
Send Success Message to Screen.
static stripSlashes($a_str, $a_strip_html=true, $a_allow="")
strip slashes if magic qoutes is enabled
if(!is_array($argv)) $options