19 declare(strict_types=1);
50 ?
string $byline =
null 52 $this->checkArgListElements(
'inputs', $inputs, [
I\Group::class]);
61 if ($this->requirement_constraint !==
null) {
77 [$key, $group_value] =
$value;
78 if (!array_key_exists($key, $this->
getInputs())) {
81 return $this->inputs[$key]->isClientSideValueOk($group_value);
102 [$key, $group_value] =
$value;
105 $clone->setInputs($clone->getInputsWithOperationForKey($key, fn($i) => $i->withValue($group_value)));
120 if (
null === $input) {
124 return [$key, $input->getValue()];
133 throw new LogicException(
"Can only collect if input has a name.");
137 $clone = clone $this;
141 $clone->content = $clone->data_factory->error($this->
lng->txt(
"ui_error_switchable_group_required"));
142 return $clone->withError(
"" . $clone->content->error());
145 $clone->content = $clone->data_factory->ok([$key, []]);
150 $clone = $clone->withValue($key);
151 $clone->setInputs($clone->getInputsWithOperationForKey($key, fn($i) => $i->withInput($input)));
156 if (!array_key_exists($key,
$inputs)) {
157 $clone->content = $clone->data_factory->ok([$key, []]);
162 $clone->content = $clone->data_factory->error($this->
lng->txt(
"ui_error_in_group"));
168 $content = $group_input->getContent();
175 if ($clone->content->isError()) {
176 return $clone->withError(
"" . $clone->content->error());
190 if (!array_key_exists($key,
$inputs)) {
isOK()
Get to know if the result is ok.
value()
Get the encapsulated value.
Interface Observer Contains several chained tasks and infos about them.
trait JavaScriptBindable
Trait for components implementing JavaScriptBindable providing standard implementation.
A constraint encodes some resrtictions on values.
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)