4 require_once
'Services/Table/classes/class.ilTable2GUI.php';
33 $this->
setStyle(
'table',
'fullwidth');
35 $this->
setRowTemplate(
"tpl.tst_skl_thresholds_row.html",
"Modules/Test");
52 $this->
addColumn($this->lng->txt(
'tst_competence'),
'conpetence',
'50%');
53 $this->
addColumn($this->lng->txt(
'tst_num_questions'),
'num_questions',
'10%');
54 $this->
addColumn($this->lng->txt(
'tst_max_comp_points'),
'max_comp_points',
'10%');
55 $this->
addColumn($this->lng->txt(
'tst_level'),
'level',
'10%');
56 $this->
addColumn($this->lng->txt(
'tst_threshold'),
'threshold',
'');
61 $skill =
$data[
'skill'];
62 $levels = $skill->getLevelData();
64 $this->tpl->setCurrentBlock(
'competence');
65 $this->tpl->setVariable(
'ROWSPAN', $this->
getRowspan(count($levels)));
66 include_once(
"./Services/Skill/classes/class.ilBasicSkill.php");
68 $this->tpl->setVariable(
'NUM_QUESTIONS',
$data[
'num_assigns']);
69 $this->tpl->setVariable(
'MAX_COMP_POINTS',
$data[
'max_points']);
70 $this->tpl->parseCurrentBlock();
72 $this->tpl->setCurrentBlock(
'tbl_content');
74 for($i = 0, $max = count($levels); $i < $max; $i++)
78 $this->tpl->setVariable(
'LEVEL', $level[
'title']);
81 $data[
'skill_base_id'],
$data[
'skill_tref_id'], $level[
'id']
86 $this->tpl->parseCurrentBlock();
87 $this->tpl->setVariable(
"CSS_ROW", $this->css_row);
88 $this->tpl->setVariable(
"CSS_NO_BORDER",
'ilBorderlessRow');
105 $threshold = $this->skillLevelThresholdList->getThreshold($skillBaseId, $skillTrefId, $skillLevelId);
109 $thresholdValue = $threshold->getThreshold();
113 $thresholdValue =
'';
116 $skillKey = $skillBaseId.
':'.$skillTrefId;
118 return "<input type\"text\" size=\"2\" name=\"threshold[{$skillKey}][$skillLevelId]\" value=\"{$thresholdValue}\" />";