22 $this->survey = $a_survey;
32 $cmd = $ilCtrl->getCmd();
33 $next_class = $ilCtrl->getNextClass();
37 case 'ilsurveyskillthresholdsgui':
39 include_once(
"./Modules/Survey/classes/class.ilSurveySkillThresholdsGUI.php");
41 $ilCtrl->forwardCommand($gui);
45 if (in_array(
$cmd, array(
"listQuestionAssignment",
46 "assignSkillToQuestion",
"selectSkillForQuestion",
47 "removeSkillFromQuestion")))
63 include_once(
"./Modules/Survey/classes/class.ilSurveySkillAssignmentTableGUI.php");
66 $tpl->setContent(
$tab->getHTML());
76 $ilCtrl->saveParameter($this,
"q_id");
79 include_once(
"./Services/Skill/classes/class.ilSkillSelectorGUI.php");
80 $sel =
new ilSkillSelectorGUI($this,
"assignSkillToQuestion", $this,
"selectSkillForQuestion");
81 if (!$sel->handleCommand())
83 $tpl->setContent($sel->getHTML());
127 include_once(
"./Modules/Survey/classes/class.ilSurveySkill.php");
129 $skill_id_parts = explode(
":",
$_GET[
"selected_skill"]);
130 $skill_survey->addQuestionSkillAssignment((
int)
$_GET[
"q_id"],
131 (
int) $skill_id_parts[0], (
int) $skill_id_parts[1]);
134 $ilCtrl->redirect($this,
"listQuestionAssignment");
144 include_once(
"./Modules/Survey/classes/class.ilSurveySkill.php");
146 $skill_survey->removeQuestionSkillAssignment((
int)
$_GET[
"q_id"]);
149 $ilCtrl->redirect($this,
"listQuestionAssignment");
161 $ilTabs->addSubtab(
"survey_skill_assign",
162 $lng->txt(
"survey_skill_assign"),
163 $ilCtrl->getLinkTargetByClass(
"ilsurveyskillgui",
"listQuestionAssignment"));
165 $ilTabs->addSubTab(
"skill_thresholds",
166 $lng->txt(
"survey_skill_thresholds"),
167 $ilCtrl->getLinkTargetByClass(
"ilsurveyskillthresholdsgui",
"listCompetences"));
169 $ilTabs->activateSubtab($a_activate);