19 declare(strict_types=1);
68 return $this->dynamic_input_template;
99 $clone->generated_dynamic_inputs[] = $clone->getTemplateForDynamicInputs()->withValue(
$value);
103 foreach (
$value as $input_name => $input_value) {
104 $clone->generated_dynamic_inputs[$input_name] = $clone->getTemplateForDynamicInputs()->withValue($input_value);
112 $clone = parent::withDisabled($is_disabled);
113 $clone->dynamic_input_template = $clone->getTemplateForDynamicInputs()->withDisabled($is_disabled);
115 foreach ($clone->generated_dynamic_inputs as $key => $input) {
116 $clone->generated_dynamic_inputs[$key] = $input->withDisabled($is_disabled);
126 $clone->dynamic_input_template = $clone->getTemplateForDynamicInputs()->withNameFrom(
130 foreach ($clone->generated_dynamic_inputs as $key => $input) {
131 $clone->generated_dynamic_inputs[$key] = $input->withNameFrom(
142 throw new LogicException(static::class .
'::withNameFrom must be called first.');
145 $clone = clone $this;
146 $contains_error =
false;
150 $clone->generated_dynamic_inputs[$index] = $clone->getTemplateForDynamicInputs()->withInput($input_data);
151 if ($clone->generated_dynamic_inputs[$index]->getContent()->isOk()) {
152 $contents[] = $clone->generated_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());
175 $values[$key] = $input->getValue();
194 foreach (
$value as $input_value) {
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
__construct(Container $dic, ilPlugin $plugin)
language()
description: > Example for rendring a language glyph.