/** * final test assignment * * @access protected * @param * @return */ protected function finalTestAssignment() { global $ilAccess, $ilErr, $tpl; if (!$ilAccess->checkAccess('write', '', $this->course_obj->getRefId())) { $ilErr->raiseError($this->lng->txt('permission_denied'), $ilErr->WARNING); } if (!$_GET['objective_id']) { ilUtil::sendFailure($this->lng->txt('crs_no_objective_selected'), true); $this->ctrl->redirect($this, 'listObjectives'); } $this->ctrl->saveParameter($this, 'objective_id'); $this->objective = new ilCourseObjective($this->course_obj, (int) $_GET['objective_id']); include_once './Modules/Course/classes/class.ilCourseObjectiveQuestionAssignmentTableGUI.php'; $table = new ilCourseObjectiveQuestionAssignmentTableGUI($this, $this->course_obj, (int) $_GET['objective_id'], ilCourseObjectiveQuestion::TYPE_FINAL_TEST); $table->setTitle($this->lng->txt('crs_objective_wiz_final'), 'icon_lobj.png', $this->lng->txt('crs_objective')); $table->parse(ilCourseObjectiveQuestion::_getAssignableTests($this->course_obj->getRefId())); $this->__initQuestionObject((int) $_GET['objective_id']); $w_tpl = $this->initWizard(5); $w_tpl->setVariable('WIZ_CONTENT', $table->getHTML()); $tpl->setContent($w_tpl->get()); }
/** * final test assignment * * @access protected * @param * @return */ protected function finalTestAssignment() { global $ilAccess, $ilErr, $tpl; if (!$ilAccess->checkAccess('write', '', $this->course_obj->getRefId())) { $ilErr->raiseError($this->lng->txt('permission_denied'), $ilErr->WARNING); } if (!$_GET['objective_id']) { ilUtil::sendFailure($this->lng->txt('crs_no_objective_selected'), true); $this->ctrl->redirect($this, 'listObjectives'); } $this->setSubTabs("final_test_assign"); $this->ctrl->saveParameter($this, 'objective_id'); $this->objective = new ilCourseObjective($this->course_obj, (int) $_GET['objective_id']); // begin-patch lok $this->ctrl->setParameter($this, 'tt', ilLOSettings::TYPE_TEST_QUALIFIED); $this->test_type = $_REQUEST['tt'] = ilLOSettings::TYPE_TEST_QUALIFIED; if ($this->isRandomTestType(ilLOSettings::TYPE_TEST_QUALIFIED)) { return $this->showRandomTestAssignment(); } // end-patch lok include_once './Modules/Course/classes/class.ilCourseObjectiveQuestionAssignmentTableGUI.php'; $table = new ilCourseObjectiveQuestionAssignmentTableGUI($this, $this->course_obj, (int) $_GET['objective_id'], ilCourseObjectiveQuestion::TYPE_FINAL_TEST); $table->setTitle($this->lng->txt('crs_objective_wiz_final'), '', $this->lng->txt('crs_objective')); $table->parse(ilCourseObjectiveQuestion::_getAssignableTests($this->course_obj->getRefId())); $this->__initQuestionObject((int) $_GET['objective_id']); $this->initWizard(5); $GLOBALS['tpl']->setContent($table->getHTML()); #$w_tpl->setVariable('WIZ_CONTENT',$table->getHTML()); #$tpl->setContent($w_tpl->get()); }