18declare(strict_types=1);
22use ILIAS\UI\Implementation\Component\ComponentHelper;
49 return array_map(fn (
$i) =>
$i->getValue(), $this->inputs);
59 public function withValue($value): LegacyInputInterface
61 $this->checkArg(
"value", $this->
isClientSideValueOk($value),
"Display value does not match input type.");
64 $clone->inputs[$k] =
$i->withValue($value[$k]);
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.
A result encapsulates a value or an error and simplifies the handling of those.
A constraint encodes some resrtictions on values.