4 require_once
'Services/Table/classes/class.ilTable2GUI.php';
28 parent::__construct($parentOBJ, $parentCmd);
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}\" />";
addCommandButton($a_cmd, $a_text, $a_onclick='', $a_id="", $a_class=null)
Add Command button.
This class provides processing control methods.
buildThresholdInput($skillBaseId, $skillTrefId, $skillLevelId)
setStyle($a_element, $a_style)
getSkillLevelThresholdList()
addColumn($a_text, $a_sort_field="", $a_width="", $a_is_checkbox_action_column=false, $a_class="", $a_tooltip="")
Add a column to the header.
enable($a_module_name)
enables particular modules of table
setRowTemplate($a_template, $a_template_dir="")
Set row template.
getFormAction(&$a_gui_obj, $a_fallback_cmd="", $a_anchor="", $a_asynch=false, $xml_style=true)
Get form action url for gui class object.
static _lookupTitle($a_obj_id, $a_tref_id=0)
Lookup Title.
setFormAction($a_form_action, $a_multipart=false)
Set Form action parameter.
disable($a_module_name)
diesables particular modules of table
setSkillLevelThresholdList(ilTestSkillLevelThresholdList $skillLevelThresholdList)
__construct($parentOBJ, $parentCmd, ilCtrl $ctrl, ilLanguage $lng)
const CMD_SAVE_SKILL_THRESHOLDS