49 $this->ctrl = $DIC->ctrl();
50 $this->tpl = $DIC[
"tpl"];
51 $this->
user = $DIC->user();
52 $this->lng = $DIC->language();
53 $this->tabs = $DIC->tabs();
54 $this->survey = $a_survey;
65 $next_class =
$ilCtrl->getNextClass();
67 switch ($next_class) {
68 case 'ilsurveyskillthresholdsgui':
70 include_once(
"./Modules/Survey/classes/class.ilSurveySkillThresholdsGUI.php");
76 if (in_array($cmd, array(
"listQuestionAssignment",
77 "assignSkillToQuestion",
"selectSkillForQuestion",
78 "removeSkillFromQuestion"))) {
93 include_once(
"./Modules/Survey/classes/class.ilSurveySkillAssignmentTableGUI.php");
96 "listQuestionAssignment",
113 $ilCtrl->saveParameter($this,
"q_id");
116 include_once(
"./Services/Skill/classes/class.ilSkillSelectorGUI.php");
117 $sel =
new ilSkillSelectorGUI($this,
"assignSkillToQuestion", $this,
"selectSkillForQuestion");
118 if (!$sel->handleCommand()) {
119 $tpl->setContent($sel->getHTML());
164 include_once(
"./Modules/Survey/classes/class.ilSurveySkill.php");
166 $skill_id_parts = explode(
":",
$_GET[
"selected_skill"]);
167 $skill_survey->addQuestionSkillAssignment(
169 (
int) $skill_id_parts[0],
170 (
int) $skill_id_parts[1]
172 ilUtil::sendSuccess(
$lng->txt(
"msg_obj_modified"),
true);
174 $ilCtrl->redirect($this,
"listQuestionAssignment");
185 include_once(
"./Modules/Survey/classes/class.ilSurveySkill.php");
187 $skill_survey->removeQuestionSkillAssignment((
int)
$_GET[
"q_id"]);
188 ilUtil::sendSuccess(
$lng->txt(
"msg_obj_modified"),
true);
190 $ilCtrl->redirect($this,
"listQuestionAssignment");
205 "survey_skill_assign",
206 $lng->txt(
"survey_skill_assign"),
207 $ilCtrl->getLinkTargetByClass(
"ilsurveyskillgui",
"listQuestionAssignment")
212 $lng->txt(
"survey_skill_thresholds"),
213 $ilCtrl->getLinkTargetByClass(
"ilsurveyskillthresholdsgui",
"listCompetences")
216 $ilTabs->activateSubtab($a_activate);
setSubTabs($a_activate)
Set subtabs.
Survey skill service GUI class.
assignSkillToQuestion()
Assign skill to question.
listQuestionAssignment()
List question to skill assignment.
Skill/Competence handling in surveys.
TableGUI class for survey questions to skill assignment.
removeSkillFromQuestion()
Remove skill from question.
Explorer class that works on tree objects (Services/Tree)
__construct(ilObjSurvey $a_survey)
Constructor.
Survey skill thresholds GUI class.
selectSkillForQuestion()
Select skill for question.
executeCommand()
Execute command.