1 <?php declare(strict_types=1);
41 if (!method_exists(
$parentGui,
'executeCommand')) {
43 'Parameter $parentGui must be ilCtrl enabled by implementing executeCommand(), %s given.',
50 $this->ctrl = $DIC->ctrl();
52 $this->lng = $DIC->language();
53 $this->
user = $DIC->user();
65 protected function init() : void
67 $this->
setTitle($this->lng->txt(
'mail_settings'));
68 $this->
setFormAction($this->ctrl->getFormAction($this->parentGui, $this->positiveCmd));
70 if ($this->
settings->get(
'usr_settings_hide_mail_incoming_mail') !=
'1') {
72 $this->
addItem($incoming_mail_gui);
76 for (
$i = 50;
$i <= 80;
$i++) {
88 if ($this->
settings->get(
'mail_notification')) {
89 $cb =
new ilCheckboxInputGUI($this->lng->txt(
'cron_mail_notification'),
'cronjob_notification');
90 $cb->
setInfo($this->lng->txt(
'mail_cronjob_notification_info'));
108 $this->
settings->get(
'usr_settings_hide_mail_incoming_mail') !=
'1' &&
109 $this->
settings->get(
'usr_settings_disable_mail_incoming_mail') !=
'1' 111 $incoming_type = (int) $this->
getInput(
'incoming_type');
113 $mail_address_option = $this->options->getEmailAddressMode();
114 switch ($incoming_type) {
116 $mail_address_option = (int) $this->
getInput(
'mail_address_option');
120 $mail_address_option = (int) $this->
getInput(
'mail_address_option_both');
124 $incoming_type = $this->options->getIncomingType();
125 $mail_address_option = $this->options->getEmailAddressMode();
128 $this->options->setLinebreak((
int) $this->
getInput(
'linebreak'));
129 $this->options->setSignature((
string) $this->
getInput(
'signature'));
130 $this->options->setIsCronJobNotificationStatus((
bool) $this->
getInput(
'cronjob_notification'));
131 $this->options->setIncomingType((
int) $incoming_type);
132 $this->options->setEmailAddressMode((
int) $mail_address_option);
134 $this->options->updateOptions();
145 'linebreak' => $this->options->getLinebreak(),
146 'signature' => $this->options->getSignature(),
147 'cronjob_notification' => $this->options->isCronJobNotificationEnabled()
150 if ($this->
settings->get(
'usr_settings_hide_mail_incoming_mail') !=
'1') {
151 $data[
'incoming_type'] = $this->options->getIncomingType();
153 $mail_address_option = $this->options->getEmailAddressMode();
155 $data[
'mail_address_option'] = $mail_address_option;
156 $data[
'mail_address_option_both'] = $mail_address_option;
Class ilMailOptions this class handles user mails.
setRows($a_rows)
Set Rows.
__construct(Container $dic, ilPlugin $plugin)
This class represents a text area property in a property form.