19 declare(strict_types=1);
33 $this->option_infos = $a_info;
38 $this->auto_sort = $a_value;
43 $def = $this->
getADT()->getCopyOfDefinition();
44 $options = $def->getOptions();
46 if ($this->auto_sort) {
52 foreach ($options as $value => $caption) {
54 if (is_array($this->option_infos) && array_key_exists($value, $this->option_infos)) {
55 $option->setInfo($this->option_infos[$value]);
57 $cbox->addOption($option);
62 $cbox->setValue($this->
getADT()->getSelections());
81 $field->setValue($this->
getADT()->getSelections());
86 $current = $this->
getADT()->getSelections();
87 return (is_array($current) && in_array($a_parent_option, $current));
This class represents an option in a checkbox group.
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null