5 include_once(
"./Services/Table/classes/class.ilTable2GUI.php");
24 $this->survey = $a_survey;
26 parent::__construct($a_parent_obj, $a_parent_cmd);
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();
TableGUI class for skill list in survey.
__construct($a_parent_obj, $a_parent_cmd, $a_survey)
Constructor.
fillRow($a_set)
Fill table row.
Skill/Competence handling in surveys.
setTitle($a_title, $a_icon=0, $a_icon_alt=0)
Set title and title icon.
Skill tresholds for 360 surveys.
setRowTemplate($a_template, $a_template_dir="")
Set row template.
Create styles array
The data for the language used.
static _lookupTitle($a_obj_id, $a_tref_id=0)
Lookup Title.
setFormAction($a_form_action, $a_multipart=false)
Set Form action parameter.
addColumn($a_text, $a_sort_field="", $a_width="", $a_is_checkbox_action_column=false, $a_class="", $a_tooltip="", $a_tooltip_with_html=false)
Add a column to the header.