18 declare(strict_types=1);
61 $this->checkArg(
"value", $this->
isClientSideValueOk($value),
"Display value does not match input type.");
63 foreach ($this->
getInputs() as $k => $i) {
64 $clone->inputs[$k] = $i->withValue($value[$k]);
87 foreach ($this->
getInputs() as $key => $in) {
88 $inputs[$key] = $in->withInput($input);
89 $content = $inputs[$key]->getContent();
90 if ($content->isError()) {
93 $contents[$key] = $content->value();
99 $clone->content = $clone->getDataFactory()->error($this->
getLanguage()->txt(
"ui_error_in_group"));
101 $clone->content = $clone->applyOperationsTo($contents);
104 if ($clone->content->isError()) {
105 $clone->setError(
"" . $clone->content->error());
117 foreach ($this->
getInputs() as $key => $input) {
118 $named_inputs[$key] = $input->withNameFrom($source, $parent_name);
121 return $named_inputs;
131 if (!is_array($value)) {
134 if (count($this->
getInputs()) !== count($value)) {
137 foreach ($this->
getInputs() as $key => $input) {
138 if (!array_key_exists($key, $value)) {
141 if (!$input->isClientSideValueOk($value[$key])) {
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...