5 include_once(
"./Services/Table/classes/class.ilTable2GUI.php");
29 $this->ctrl = $DIC->ctrl();
30 $this->lng = $DIC->language();
32 $lng = $DIC->language();
34 $this->
object = $a_survey;
35 $this->base_skill_id = $a_base_skill_id;
36 $this->tref_id = $a_tref_id;
42 $lng->txt(
"survey_skill_nr_q") .
": " . count($this->question_ids) .
43 ", " .
$lng->txt(
"survey_skill_max_scale_points") .
": " . $this->scale_sum
46 include_once(
"./Modules/Survey/classes/class.ilSurveySkillThresholds.php");
48 $this->thresholds = $this->skill_thres->getThresholds();
50 parent::__construct($a_parent_obj, $a_parent_cmd);
52 include_once(
"./Modules/Survey/classes/class.ilSurveySkill.php");
57 $this->
addColumn($this->lng->txt(
"survey_skill_level"));
58 $this->
addColumn($this->lng->txt(
"survey_up_to_x_points"));
60 $this->
setRowTemplate(
"tpl.svy_skill_threshold_row.html",
"Modules/Survey");
75 include_once(
"./Modules/SurveyQuestionPool/classes/class.SurveyQuestion.php");
76 include_once(
"./Modules/Survey/classes/class.ilSurveySkill.php");
78 $this->question_ids = $ssk->getQuestionsForSkill(
82 $this->scale_sum = $ssk->determineMaxScale(
97 include_once(
"./Services/Skill/classes/class.ilBasicSkill.php");
99 return $bs->getLevelData();
111 $this->tpl->setVariable(
"LEVEL", $a_set[
"title"]);
112 $this->tpl->setVariable(
"LEVEL_ID", $a_set[
"id"]);
114 $tr = $this->thresholds[$a_set[
"id"]][$this->tref_id];
115 if ((
int) $tr != 0) {
116 $this->tpl->setVariable(
"THRESHOLD", (
int) $tr);
118 $this->tpl->setVariable(
"THRESHOLD",
"");
addCommandButton($a_cmd, $a_text, $a_onclick='', $a_id="", $a_class=null)
Add Command button.
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.
static sendInfo($a_info="", $a_keep=false)
Send Info Message to Screen.
Skill tresholds for 360 surveys.
determineMaxScalesAndQuestions()
Determine max scales and questions.
setRowTemplate($a_template, $a_template_dir="")
Set row template.
static _lookupTitle($a_obj_id, $a_tref_id=0)
Lookup Title.
setFormAction($a_form_action, $a_multipart=false)
Set Form action parameter.
TableGUI class for competence thresholds.
__construct( $a_parent_obj, $a_parent_cmd, $a_survey, $a_base_skill_id, $a_tref_id)
Constructor.
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.