19 declare(strict_types=1);
35 private readonly
string $action,
36 private ?array $predefined_values,
37 private readonly \
ILIAS\
UI\Factory $ui_factory,
44 if (isset($this->events[$event])) {
45 return $this->events[$event];
56 return array_keys($this->events);
61 return $this->ui_factory->input()->container()->form()->standard(
74 foreach (array_keys($this->events) as $key) {
75 $checkbox = $this->ui_factory->input()->field()->checkbox($this->
lng->txt($key));
76 if ($this->predefined_values !==
null && isset($this->predefined_values[$key])) {
77 $checkbox = $checkbox->withValue($this->predefined_values[$key]);
80 $items[$key] = $checkbox;
83 $hidden = $this->ui_factory->input()->field()->hidden();
84 if ($this->predefined_values !==
null && isset($this->predefined_values[
'hidden_value'])) {
85 $hidden = $hidden->withValue((
string) $this->predefined_values[
'hidden_value']);
87 $items[
'hidden_value'] = $hidden;
Interface Observer Contains several chained tasks and infos about them.
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null