19 declare(strict_types=1);
62 if ($this->requirement_constraint !==
null) {
77 $clone->options[
$value] = $label;
78 if (!is_null($byline)) {
79 $clone->bylines[
$value] = $byline;
95 if (!array_key_exists($value, $this->bylines)) {
98 return $this->bylines[
$value];
107 throw new LogicException(
"Can only collect if input has a name.");
117 if ($clone->content->isError()) {
118 return $clone->withError(
"" . $clone->content->error());
123 if ($clone->getError()) {
124 $clone->content = $clone->data_factory->error($clone->getError());
135 return fn(
$id) =>
"$('#$id').on('input', function(event) { 136 il.UI.input.onFieldUpdate(event, '$id', $('#$id input:checked').val()); 138 il.UI.input.onFieldUpdate(event, '$id', $('#$id input:checked').val());";
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
withProblemBuilder(callable $builder)
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins