19declare(strict_types=1);
42 DataFactory $data_factory,
65 if (is_null($value)) {
68 if (is_array($value)) {
69 foreach ($value as $v) {
70 if (!array_key_exists($v, $this->options)) {
84 if ($this->requirement_constraint !==
null) {
85 return $this->requirement_constraint;
88 return $this->
refinery->custom()->constraint(
89 fn($value) => is_array($value) && count($value) > 0,
99 return fn(
$id) =>
"(function() {
100 var checkedBoxes = function() {
102 $('#$id').find('li').each(function() {
103 if ($(this).find('input').prop('checked')) {
104 options.push($(this).find('span').text());
107 return options.join(', ');
109 $('#$id').on('input', function(event) {
110 il.UI.input.onFieldUpdate(event, '$id', checkedBoxes());
112 il.UI.input.onFieldUpdate(event, '$id', checkedBoxes());
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
A constraint encodes some resrtictions on values.
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc
Interface Observer \BackgroundTasks Contains several chained tasks and infos about them.