protected function initTaxonomyForm(array $tax) { include_once "Services/Form/classes/class.ilPropertyFormGUI.php"; $form = new ilPropertyFormGUI(); $form->setFormAction($this->ctrl->getFormAction($this), "editTaxonomySettings"); $form->setTitle($this->lng->txt("cntr_taxonomy_sideblock_settings")); $block = new ilCheckboxGroupInputGUI($this->lng->txt("cntr_taxonomy_show_sideblock"), "sblock"); $form->addItem($block); $current = $this->getActiveBlocks(); foreach ($tax as $tax_id => $tax_item) { $option = new ilCheckboxOption($tax_item["title"], $tax_id); if ($tax_item["source"] != $this->object->getRefId()) { $loc = new ilLocatorGUI(); $loc->setTextOnly(true); $loc->addRepositoryItems($tax_item["source"]); $option->setInfo($loc->getHTML()); } $block->addOption($option); if (in_array($tax_id, $current)) { $value[] = $tax_id; } } $block->setValue($value); $form->addCommandButton("updateTaxonomySettings", $this->lng->txt("save")); return $form; }