public function resetfilterQuestionBrowserObject() { include_once "./Modules/Survey/classes/tables/class.ilSurveyQuestionbrowserTableGUI.php"; $table_gui = new ilSurveyQuestionbrowserTableGUI($this, 'browseForQuestions', $this->object); $table_gui->resetFilter(); $this->ctrl->redirect($this, 'browseForQuestions'); }
/** * list questions of question pool */ public function browseForQuestionsObject($arrFilter = null) { global $rbacsystem; global $ilUser; $this->ctrl->setParameter($this, "pgov", $_REQUEST["pgov"]); $this->ctrl->setParameter($this, "pgov_pos", $_REQUEST["pgov_pos"]); $this->setBrowseForQuestionsSubtabs(); $this->tpl->addBlockFile("ADM_CONTENT", "adm_content", "tpl.il_svy_svy_questionbrowser.html", "Modules/Survey"); include_once "./Modules/Survey/classes/tables/class.ilSurveyQuestionbrowserTableGUI.php"; $table_gui = new ilSurveyQuestionbrowserTableGUI($this, 'browseForQuestions', $rbacsystem->checkAccess('write', $_GET['ref_id']) ? true : false); $table_gui->setEditable($rbacsystem->checkAccess('write', $_GET['ref_id'])); $arrFilter = array(); foreach ($table_gui->getFilterItems() as $item) { if ($item->getValue() !== false) { $arrFilter[$item->getPostVar()] = $item->getValue(); } } $data = $this->object->getQuestionsTable($arrFilter); // translate pools for proper sorting if (sizeof($data)) { $pools = $table_gui->getQuestionPools(); foreach ($data as $idx => $row) { $data[$idx]["spl"] = $pools[$row["obj_fi"]]; } } $table_gui->setData($data); $this->tpl->setVariable('TABLE', $table_gui->getHTML()); $this->tpl->setVariable("FORMACTION", $this->ctrl->getFormAction($this, 'changeDatatype')); $this->tpl->setVariable("OPTION_QUESTIONS", $this->lng->txt("questions")); $this->tpl->setVariable("OPTION_QUESTIONBLOCKS", $this->lng->txt("questionblocks")); $this->tpl->setVariable("SELECTED_QUESTIONS", " selected=\"selected\""); $this->tpl->setVariable("TEXT_DATATYPE", $this->lng->txt("display_all_available")); $this->tpl->setVariable("BTN_CHANGE", $this->lng->txt("change")); }