public function confirmDelete() { $conf = new ilConfirmationGUI(); $conf->setFormAction($this->ctrl->getFormAction($this)); $conf->setHeaderText($this->pl->txt('msg_confirm_delete')); $conf->setConfirm($this->pl->txt('check_delete'), self::CMD_DELETE); $conf->setCancel($this->pl->txt('check_cancel'), self::CMD_INDEX); $this->tpl->setContent($conf->getHTML()); }
protected function chooseRole() { $this->tabs_gui->setSubTabActive('shib_role_assignment'); include_once './Services/Search/classes/class.ilQueryParser.php'; $parser = new ilQueryParser($_SESSION['shib_role_ass']['search']); $parser->setMinWordLength(1, true); $parser->setCombination(QP_COMBINATION_AND); $parser->parse(); include_once 'Services/Search/classes/Like/class.ilLikeObjectSearch.php'; $object_search = new ilLikeObjectSearch($parser); $object_search->setFilter(array('role')); $res = $object_search->performSearch(); $entries = $res->getEntries(); include_once './Services/AccessControl/classes/class.ilRoleSelectionTableGUI.php'; $table = new ilRoleSelectionTableGUI($this, 'chooseRole'); $table->setTitle($this->lng->txt('shib_role_selection')); $table->addMultiCommand('saveRoleSelection', $this->lng->txt('shib_choose_role')); $table->addCommandButton('roleAssignment', $this->lng->txt('cancel')); $table->parse($entries); $this->tpl->setContent($table->getHTML()); return true; }