4 require_once
'Services/Form/classes/class.ilPropertyFormGUI.php';
5 require_once
'Services/Mail/classes/class.ilMailOptions.php';
58 if (!method_exists(
$parentGui,
'executeCommand')) {
59 throw new \InvalidArgumentException(sprintf(
60 'Parameter $parentGui must be ilCtrl enabled by implementing executeCommand(), %s given.',
65 parent::__construct();
67 $this->ctrl = $DIC->ctrl();
69 $this->lng = $DIC->language();
70 $this->
user = $DIC->user();
84 $this->
setTitle($this->lng->txt(
'mail_settings'));
85 $this->
setFormAction($this->ctrl->getFormAction($this->parentGui, $this->positiveCmd));
87 if ($this->
settings->get(
'usr_settings_hide_mail_incoming_mail') !=
'1') {
88 require_once
'Services/Mail/classes/Form/class.ilIncomingMailInputGUI.php';
90 $this->
addItem($incoming_mail_gui);
94 for (
$i = 50;
$i <= 80;
$i++) {
106 if ($this->
settings->get(
'mail_notification')) {
107 $cb =
new ilCheckboxInputGUI($this->lng->txt(
'cron_mail_notification'),
'cronjob_notification');
108 $cb->
setInfo($this->lng->txt(
'mail_cronjob_notification_info'));
126 $this->
settings->get(
'usr_settings_hide_mail_incoming_mail') !=
'1' &&
127 $this->
settings->get(
'usr_settings_disable_mail_incoming_mail') !=
'1' 129 $incoming_type = (int) $this->
getInput(
'incoming_type');
131 $mail_address_option = $this->options->getMailAddressOption();
132 switch ($incoming_type) {
134 $mail_address_option = (int) $this->
getInput(
'mail_address_option');
138 $mail_address_option = (int) $this->
getInput(
'mail_address_option_both');
142 $incoming_type = $this->options->getIncomingType();
143 $mail_address_option = $this->options->getMailAddressOption();
146 $this->options->setLinebreak((
int) $this->
getInput(
'linebreak'));
147 $this->options->setSignature($this->
getInput(
'signature'));
148 $this->options->setCronjobNotification((
int) $this->
getInput(
'cronjob_notification'));
149 $this->options->setIncomingType($incoming_type);
150 $this->options->setMailAddressOption($mail_address_option);
152 $this->options->updateOptions();
163 'linebreak' => $this->options->getLinebreak(),
164 'signature' => $this->options->getSignature(),
165 'cronjob_notification' => $this->options->getCronjobNotification()
168 if ($this->
settings->get(
'usr_settings_hide_mail_incoming_mail') !=
'1') {
169 $data[
'incoming_type'] = $this->options->getIncomingType();
171 $mail_address_option = $this->options->getMailAddressOption();
173 $data[
'mail_address_option'] = $mail_address_option;
174 $data[
'mail_address_option_both'] = $mail_address_option;
Class ilMailOptions this class handles user mails.
setRows($a_rows)
Set Rows.
This class represents a text area property in a property form.