Пример #1
0
 /**
  * Update tax node
  */
 function updateTaxNode()
 {
     global $lng, $ilCtrl, $tpl;
     $this->initTaxNodeForm("edit");
     if ($this->form->checkInput()) {
         // create node
         $node = new ilTaxonomyNode($_GET["tax_node"]);
         $node->setTitle($this->form->getInput("title"));
         $tax = $this->getCurrentTaxonomy();
         if ($tax->getSortingMode() == ilObjTaxonomy::SORT_MANUAL) {
             $node->setOrderNr($this->form->getInput("order_nr"));
         }
         $node->update();
         ilUtil::sendInfo($lng->txt("msg_obj_modified"), true);
         $ilCtrl->redirect($this, "");
     } else {
         $this->form->setValuesByPost();
         $tpl->setContent($this->form->getHtml());
     }
 }