19declare(strict_types=1);
36 throw new InvalidArgumentException(
'Numbers less than 1 are not allowed');
40 throw new InvalidArgumentException(
'Numbers less than 1 are not allowed');
66 $clone->send_re_assigned_mail = $do_it;
73 if (!is_null($days) && 1 > $days) {
74 throw new InvalidArgumentException(
'Numbers less than 1 are not allowed');
78 $clone->reminder_not_restarted_by_user_days = $days;
85 if (!is_null($days) && 1 > $days) {
86 throw new InvalidArgumentException(
'Numbers less than 1 are not allowed');
89 $clone->processing_ends_not_successful_days = $days;
96 if (!is_null($this->getReminderNotRestartedByUserDays())) {
97 $reminder = [$this->getReminderNotRestartedByUserDays()];
100 $processing_end =
null;
101 if (!is_null($this->getProcessingEndsNotSuccessfulDays())) {
102 $processing_end = [$this->getProcessingEndsNotSuccessfulDays()];
105 return $input->section(
107 "send_re_assigned_mail" => $input->checkbox(
108 $ilLng->
txt(
"send_re_assigned_mail"),
109 $ilLng->
txt(
'send_re_assigned_mail_info')
111 ->withValue($this->getSendReAssignedMail()),
113 "prg_user_not_restarted_time_input" => $input->optionalGroup(
115 $ilLng->
txt(
'prg_user_not_restarted_time_input'),
116 $ilLng->
txt(
'prg_user_not_restarted_time_input_info')
117 )->withAdditionalTransformation(
$refinery->int()->isGreaterThanOrEqual(1))],
118 $ilLng->
txt(
"send_info_to_re_assign_mail"),
119 $ilLng->
txt(
"send_info_to_re_assign_mail_info")
121 ->withValue($reminder),
123 "processing_ends_not_success" => $input->optionalGroup(
125 $ilLng->
txt(
'prg_processing_ends_no_success'),
126 $ilLng->
txt(
'prg_processing_ends_no_success_info')
127 )->withAdditionalTransformation(
$refinery->int()->isGreaterThanOrEqual(1))],
128 $ilLng->
txt(
"send_risky_to_fail_mail"),
129 $ilLng->
txt(
"send_risky_to_fail_mail_info")
131 ->withValue($processing_end)
133 $ilLng->
txt(
"prg_cron_job_configuration")
137 $vals[
"send_re_assigned_mail"],
138 isset($vals[
"prg_user_not_restarted_time_input"]) ? (
int) $vals[
"prg_user_not_restarted_time_input"][0] :
null,
139 isset($vals[
"processing_ends_not_success"]) ? (
int) $vals[
"processing_ends_not_success"][0] :
null
static return function(ContainerConfigurator $containerConfigurator)
txt(string $a_topic, string $a_default_lang_fallback_mod="")
gets the text for a given topic if the topic is not in the list, the topic itself with "-" will be re...
getReminderNotRestartedByUserDays()
int $reminder_not_restarted_by_user_days
withSendReAssignedMail(bool $do_it)
toFormInput(Field\Factory $input, ilLanguage $ilLng, Refinery $refinery)
int $processing_ends_not_successful_days
withProcessingEndsNotSuccessfulDays(?int $days)
__construct(bool $send_re_assigned_mail, ?int $reminder_not_restarted_by_user_days, ?int $processing_ends_not_successful_days)
withReminderNotRestartedByUserDays(?int $days)
getProcessingEndsNotSuccessfulDays()
bool $send_re_assigned_mail
if(!file_exists(getcwd() . '/ilias.ini.php'))
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Refinery Factory $refinery
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Class ChatMainBarProvider \MainMenu\Provider.