19 declare(strict_types=1);
61 $this->dynamic_input_template = $template;
101 $clone = clone $this;
103 foreach ($value as $input_name => $input_value) {
104 $clone->dynamic_inputs[$input_name] = $clone->dynamic_input_template->withValue($input_value);
112 $clone = parent::withDisabled($is_disabled);
113 $clone->dynamic_input_template = $clone->dynamic_input_template->withDisabled($is_disabled);
115 foreach ($clone->dynamic_inputs as
$key => $input) {
116 $clone->dynamic_inputs[
$key] = $input->withDisabled($is_disabled);
126 $clone->dynamic_input_template = $clone->dynamic_input_template->withNameFrom(
130 foreach ($clone->dynamic_inputs as
$key => $input) {
131 $clone->dynamic_inputs[
$key] = $input->withNameFrom(
141 if (null === $this->getName()) {
142 throw new LogicException(static::class .
'::withNameFrom must be called first.');
145 $clone = clone $this;
146 $contains_error =
false;
150 $clone->dynamic_inputs[
$index] = $this->dynamic_input_template->withInput($input_data);
151 if ($clone->dynamic_inputs[$index]->getContent()->isOk()) {
152 $contents[] = $clone->dynamic_inputs[
$index]->getContent()->value();
154 $contains_error =
true;
158 if ($contains_error) {
159 $clone->content = $clone->data_factory->error($this->
language->txt(
"ui_error_in_group"));
161 $clone->content = $clone->applyOperationsTo($contents);
164 if ($clone->content->isError()) {
165 $clone = $clone->withError((
string) $clone->content->error());
179 $values[
$key] = $input->getValue();
194 if (!is_array($value)) {
195 return $this->dynamic_input_template->isClientSideValueOk($value);
202 foreach ($value as $input_value) {
203 if (!$this->dynamic_input_template->isClientSideValueOk($input_value)) {
__construct(Container $dic, ilPlugin $plugin)
Refinery Factory $refinery