19 declare(strict_types=1);
35 class Checkbox extends FormInput implements C\Input\Field\Checkbox, C\Changeable, C\Onloadable
44 if ($this->requirement_constraint !==
null) {
73 "Unknown value type for checkbox: " . gettype(
$value)
98 if ($clone->content->isError()) {
100 return $clone->withError(
"" . $clone->content->error());
143 return fn(
$id) =>
"$('#$id').on('input', function(event) { 144 il.UI.input.onFieldUpdate(event, '$id', $('#$id').prop('checked').toString()); 146 il.UI.input.onFieldUpdate(event, '$id', $('#$id').prop('checked').toString());";
appendTriggeredSignal(C\Signal $signal, string $event)
Append a triggered signal to other signals of the same event.
withTriggeredSignal(C\Signal $signal, string $event)
Add a triggered signal, replacing any other signals registered on the same event. ...
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
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins