18 declare(strict_types=1);
61 $this->checkArg(
"value", $this->
isClientSideValueOk($value),
"Display value does not match input type.");
64 $clone->inputs[$k] =
$i->withValue($value[$k]);
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());
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)) {
138 if (!array_key_exists(
$key, $value)) {
141 if (!$input->isClientSideValueOk($value[
$key])) {
A result encapsulates a value or an error and simplifies the handling of those.