19 declare(strict_types=1);
55 $this->
refinery->string()->hasMaxLength($max_length)
79 if ($this->max_length !==
null &&
80 strlen(
$value) > $this->max_length) {
92 if ($this->requirement_constraint !==
null) {
96 return $this->
refinery->string()->hasMinLength(1);
104 return fn(
$id) =>
"$('#$id').on('input', function(event) { 105 il.UI.input.onFieldUpdate(event, '$id', $('#$id').val()); 107 il.UI.input.onFieldUpdate(event, '$id', $('#$id').val());";
123 if ($this->strip_tags_from_input) {
124 yield $this->
refinery->custom()->transformation(fn($v) => strip_tags($v));
126 yield
from parent::getOperations();
134 $clone = clone $this;
135 $clone->strip_tags_from_input =
false;
bool $strip_tags_from_input
withMaxLength(int $max_length)
Interface Observer Contains several chained tasks and infos about them.
A constraint encodes some resrtictions on values.
This implements the text input.
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
isClientSideValueOk($value)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
__construct(Container $dic, ilPlugin $plugin)
__construct(DataFactory $data_factory, \ILIAS\Refinery\Factory $refinery, string $label, ?string $byline)
getConstraintForRequirement()