5 include_once(
"./Services/Table/classes/class.ilTable2GUI.php");
24 $this->survey = $a_survey;
28 $this->
setTitle($lng->txt(
"survey_competences"));
30 include_once(
"./Services/Skill/classes/class.ilSkillTree.php");
33 include_once(
"./Modules/Survey/classes/class.ilSurveySkillThresholds.php");
35 $this->thresholds = $this->skill_thres->getThresholds();
37 $this->
addColumn($this->lng->txt(
"survey_skill"));
38 $this->
addColumn($this->lng->txt(
"survey_skill_nr_q"));
39 $this->
addColumn($this->lng->txt(
"survey_skill_max_scale_points"));
40 $this->
addColumn($this->lng->txt(
"survey_up_to_x_points"));
41 $this->
addColumn($this->lng->txt(
"actions"));
58 include_once(
"./Modules/Survey/classes/class.ilSurveySkill.php");
60 $opts = $sskill->getAllAssignedSkillsAsOptions();
62 foreach ($opts as $k => $o)
64 $v = explode(
":", $k);
66 $question_ids = $sskill->getQuestionsForSkill($v[0], $v[1]);
67 $scale_sum = $sskill->determineMaxScale($v[0], $v[1]);
70 "base_skill" => $v[0],
72 "nr_of_q" => count($question_ids),
73 "scale_sum" => $scale_sum
88 $ilCtrl->setParameter($this->parent_obj,
"sk_id", $a_set[
"base_skill"]);
89 $ilCtrl->setParameter($this->parent_obj,
"tref_id", $a_set[
"tref_id"]);
91 $this->tpl->setVariable(
"COMPETENCE",
93 $path = $this->skill_tree->getSkillTreePath($a_set[
"base_skill"], $a_set[
"tref_id"]);
94 $path_nodes = array();
97 if ($p[
"child"] > 1 && $p[
"skill_id"] != $a_set[
"base_skill"])
102 $this->tpl->setVariable(
"PATH", implode($path_nodes,
" > "));
106 $this->tpl->setVariable(
"NR_OF_QUESTIONS", $a_set[
"nr_of_q"]);
107 $this->tpl->setVariable(
"MAX_SCALE_POINTS", $a_set[
"scale_sum"]);
108 $this->tpl->setVariable(
"CMD", $ilCtrl->getLinkTarget($this->parent_obj,
"listSkillThresholds"));
109 $this->tpl->setVariable(
"ACTION", $lng->txt(
"edit"));
111 include_once(
"./Services/Skill/classes/class.ilBasicSkill.php");
113 $ld = $bs->getLevelData();
116 $this->tpl->setCurrentBlock(
"points");
117 $this->tpl->setVariable(
"LEV", $l[
"title"]);
119 $tr = $this->thresholds[$l[
"id"]][$a_set[
"tref_id"]];
122 $this->tpl->setVariable(
"THRESHOLD", (
int) $tr);
126 $this->tpl->setVariable(
"THRESHOLD",
"");
128 $this->tpl->parseCurrentBlock();