19 declare(strict_types=1);
51 $refinery->string()->stripTags()
64 $this->
refinery->string()->hasMaxLength($max_limit)
88 $this->
refinery->string()->hasMinLength($min_limit)
116 if ($this->requirement_constraint !== null) {
120 if ($this->min_limit) {
121 return $this->
refinery->string()->hasMinLength($this->min_limit);
123 return $this->
refinery->string()->hasMinLength(1);
131 return $this->min_limit > 0 || $this->max_limit > 0;
139 return fn(
$id) =>
"$('#$id').on('input', function(event) { 140 il.UI.input.onFieldUpdate(event, '$id', $('#$id').val()); 142 il.UI.input.onFieldUpdate(event, '$id', $('#$id').val());";
__construct(DataFactory $data_factory, \ILIAS\Refinery\Factory $refinery, string $label, ?string $byline)
isClientSideValueOk($value)
Interface Observer Contains several chained tasks and infos about them.
This implements the textarea input.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
trait JavaScriptBindable
Trait for components implementing JavaScriptBindable providing standard implementation.
A constraint encodes some resrtictions on values.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
getConstraintForRequirement()
This describes Textarea inputs.
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
__construct(Container $dic, ilPlugin $plugin)
getMinLimit()
get minimum limit of characters
getMaxLimit()
get maximum limit of characters