public function browseForQuestionblocksObject()
 {
     $this->setBrowseForQuestionsSubtabs();
     include_once "./Modules/Survey/classes/tables/class.ilSurveyQuestionblockbrowserTableGUI.php";
     $table_gui = new ilSurveyQuestionblockbrowserTableGUI($this, 'browseForQuestionblocks', $this->object, true);
     $table_gui->setEditable(true);
     $this->tpl->setContent($table_gui->getHTML());
 }
 /**
  * list questions of question pool
  */
 public function browseForQuestionblocksObject($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.ilSurveyQuestionblockbrowserTableGUI.php";
     $table_gui = new ilSurveyQuestionblockbrowserTableGUI($this, 'browseForQuestionblocks', $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->getQuestionblocksTable($arrFilter);
     $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_QUESTIONBLOCKS", " selected=\"selected\"");
     $this->tpl->setVariable("TEXT_DATATYPE", $this->lng->txt("display_all_available"));
     $this->tpl->setVariable("BTN_CHANGE", $this->lng->txt("change"));
 }