/** * Delete tree settings */ protected function dConfirmDeleteTree() { $this->setSubTabs(self::TAB_DIRECTORY); $GLOBALS['ilTabs']->activateSubTab('dTrees'); $GLOBALS['ilTabs']->activateTab('ecs_dir_allocation'); include_once './Services/Utilities/classes/class.ilConfirmationGUI.php'; include_once './Services/WebServices/ECS/classes/Tree/class.ilECSCmsData.php'; $confirm = new ilConfirmationGUI(); $confirm->setFormAction($this->ctrl->getFormAction($this)); $confirm->setHeaderText($this->lng->txt('ecs_confirm_delete_tree')); $confirm->addItem('tid', (int) $_REQUEST['tid'], ilECSCmsData::lookupTitle($this->getServer()->getServerId(), $this->getMid(), (int) $_REQUEST['tid'])); $confirm->setConfirm($this->lng->txt('delete'), 'dDeleteTree'); $confirm->setCancel($this->lng->txt('cancel'), 'dTrees'); $GLOBALS['tpl']->setContent($confirm->getHTML()); }