39 $this->
ctrl = $DIC->ctrl();
40 $this->tpl = $DIC[
"tpl"];
41 $this->
user = $DIC->user();
42 $this->
lng = $DIC->language();
43 $this->
tabs = $DIC->tabs();
44 $this->survey = $a_survey;
45 $this->edit_request = $DIC->survey()
57 $next_class = $ilCtrl->getNextClass();
59 switch ($next_class) {
60 case 'ilsurveyskillthresholdsgui':
63 $ilCtrl->forwardCommand($gui);
67 if (in_array($cmd, array(
"listQuestionAssignment",
68 "assignSkillToQuestion",
"selectSkillForQuestion",
69 "removeSkillFromQuestion"))) {
86 "listQuestionAssignment",
103 "assignSkillToQuestion",
105 "selectSkillForQuestion",
108 if (!$sel->handleCommand()) {
119 $skill_id_parts = explode(
121 $this->edit_request->getSelectedSkill()
123 $skill_survey->addQuestionSkillAssignment(
124 $this->edit_request->getQuestionId(),
125 (
int) $skill_id_parts[0],
126 (
int) $skill_id_parts[1]
128 $this->tpl->setOnScreenMessage(
'success', $lng->
txt(
"msg_obj_modified"),
true);
130 $ilCtrl->redirect($this,
"listQuestionAssignment");
139 $skill_survey->removeQuestionSkillAssignment(
140 $this->edit_request->getQuestionId()
142 $this->tpl->setOnScreenMessage(
'success', $lng->
txt(
"msg_obj_modified"),
true);
144 $ilCtrl->redirect($this,
"listQuestionAssignment");
154 "survey_skill_assign",
155 $lng->
txt(
"survey_skill_assign"),
156 $ilCtrl->getLinkTargetByClass(
"ilsurveyskillgui",
"listQuestionAssignment")
161 $lng->
txt(
"survey_skill_thresholds"),
162 $ilCtrl->getLinkTargetByClass(
"ilsurveyskillthresholdsgui",
"listCompetences")
165 $ilTabs->activateSubTab($a_activate);
ILIAS Survey Editing EditingGUIRequest $edit_request
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
assignSkillToQuestion()
Assign skill to question.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
txt(string $a_topic, string $a_default_lang_fallback_mod="")
gets the text for a given topic if the topic is not in the list, the topic itself with "-" will be re...
getCmd(?string $fallback_command=null)
ilGlobalPageTemplate $tpl
listQuestionAssignment()
List question to skill assignment.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
TableGUI class for survey questions to skill assignment.
removeSkillFromQuestion()
Explorer class that works on tree objects (Services/Tree)
__construct(ilObjSurvey $a_survey)
saveParameter(object $a_gui_obj, $a_parameter)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
setSubTabs(string $a_activate)
setContent(string $a_html)
Sets content for standard template.