19 declare(strict_types=1);
63 $this->checkArg(
"value", $this->
isClientSideValueOk($value),
"Display value does not match input type.");
65 foreach ($this->
getInputs() as $k => $i) {
66 $clone->inputs[$k] = $i->withValue($value[$k]);
89 foreach ($this->
getInputs() as $key => $in) {
90 $inputs[$key] = $in->withInput($input);
91 $content = $inputs[$key]->getContent();
92 if ($content->isError()) {
95 $contents[$key] = $content->value();
101 $clone->content = $clone->getDataFactory()->error($this->
getLanguage()->txt(
"ui_error_in_group"));
103 $clone->content = $clone->applyOperationsTo($contents);
106 if ($clone->content->isError()) {
107 $clone->setError(
"" . $clone->content->error());
119 foreach ($this->
getInputs() as $key => $input) {
120 $named_inputs[$key] = $input->withNameFrom($source, $parent_name);
123 return $named_inputs;
133 if (!is_array($value)) {
136 if (count($this->
getInputs()) !== count($value)) {
139 foreach ($this->
getInputs() as $key => $input) {
140 if (!array_key_exists($key, $value)) {
143 if (!$input->isClientSideValueOk($value[$key])) {
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...