/** * List items * * @param * @return */ function listNodes() { global $tpl, $ilToolbar, $lng, $ilCtrl; $tax = $this->getCurrentTaxonomy(); $this->setTabs("list_items"); // show toolbar $ilToolbar->setFormAction($ilCtrl->getFormAction($this)); $ilToolbar->addFormButton($lng->txt("tax_create_node"), "createTaxNode"); $ilToolbar->setCloseFormTag(false); // show tree $this->showTree(); // show subitems include_once "./Services/Taxonomy/classes/class.ilTaxonomyTableGUI.php"; $table = new ilTaxonomyTableGUI($this, "listNodes", $tax->getTree(), (int) $_GET["tax_node"], $this->getCurrentTaxonomy()); $table->setOpenFormTag(false); $tpl->setContent($table->getHTML()); }
/** * List items * * @param * @return */ function listItems() { global $tpl, $ilToolbar, $lng, $ilCtrl; $tax = $this->determineAOCurrentTaxonomy(); // show toolbar $ilToolbar->setFormAction($ilCtrl->getFormAction($this)); $ilToolbar->addFormButton($lng->txt("tax_create_node"), "createTaxNode"); // settings $ilToolbar->addSeparator(); include_once "./Services/Form/classes/class.ilSelectInputGUI.php"; $options = array(ilObjTaxonomy::SORT_ALPHABETICAL => $lng->txt("tax_alphabetical"), ilObjTaxonomy::SORT_MANUAL => $lng->txt("tax_manual")); $si = new ilSelectInputGUI($lng->txt("tax_sorting"), "sorting"); $si->setValue($this->determineAOCurrentTaxonomy()->getSortingMode()); $si->setOptions($options); $ilToolbar->addInputItem($si, true); $ilToolbar->addFormButton($lng->txt("save"), "saveSettingsAndSorting"); $ilToolbar->addSeparator(); $ilToolbar->addFormButton($lng->txt("tax_delete_taxonomy"), "confirmDeleteTaxonomy"); $ilToolbar->setCloseFormTag(false); // show tree $this->showTree($tax->getTree()); // show subitems include_once "./Services/Taxonomy/classes/class.ilTaxonomyTableGUI.php"; $table = new ilTaxonomyTableGUI($this, "listItems", $tax->getTree(), (int) $_GET["tax_node"], $this->determineAOCurrentTaxonomy()); $table->setOpenFormTag(false); $tpl->setContent($table->getHTML()); }