19declare(strict_types=1);
39 DataFactory $data_factory,
54 if (is_null($value)) {
57 if (is_array($value)) {
58 foreach ($value as $v) {
59 if (!array_key_exists($v, $this->options)) {
73 if ($this->requirement_constraint !==
null) {
74 return $this->requirement_constraint;
77 return $this->
refinery->custom()->constraint(
78 fn($value) => is_array($value) && count($value) > 0,
88 return fn(
$id) =>
"(function() {
89 var checkedBoxes = function() {
91 $('#$id').find('li').each(function() {
92 if ($(this).find('input').prop('checked')) {
93 options.push($(this).find('span').text());
96 return options.join(', ');
98 $('#$id').on('input', function(event) {
99 il.UI.input.onFieldUpdate(event, '$id', checkedBoxes());
101 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.