protected function initTagsForm($a_id, $a_cmd, $a_title) { global $ilAccess; include_once "Services/Form/classes/class.ilPropertyFormGUI.php"; $form = new ilPropertyFormGUI(); $form->setFormAction($this->ctrl->getFormAction($this, $a_cmd)); $form->setTitle($this->lng->txt($a_title)); $alltags = $this->object->getHTMLTags(); $alltags = array_combine($alltags, $alltags); include_once "Services/Form/classes/class.ilMultiSelectInputGUI.php"; $tags = new ilMultiSelectInputGUI($this->lng->txt("advanced_editing_allow_html_tags"), "html_tags"); $tags->setHeight(400); $tags->enableSelectAll(true); $tags->enableSelectedFirst(true); $tags->setOptions($alltags); $tags->setValue($this->object->_getUsedHTMLTags($a_id)); $form->addItem($tags); if ($ilAccess->checkAccess("write", "", $this->object->getRefId())) { $form->addCommandButton($a_cmd, $this->lng->txt("save")); } return $form; }