53 $cmd = $this->ctrl->getCmd(
'show') .
'Cmd';
60 require_once
'Modules/Test/classes/class.ilTestSkillLevelThreshold.php';
62 if( is_array(
$_POST[
'threshold']) )
64 $threshold =
$_POST[
'threshold'];
66 $assignmentList->loadFromDb();
68 foreach($assignmentList->getUniqueAssignedSkills() as $data)
70 $skill = $data[
'skill'];
71 $skillKey = $data[
'skill_base_id'].
':'.$data[
'skill_tref_id'];
72 $levels = $skill->getLevelData();
74 foreach($levels as $level)
76 if( isset($threshold[$skillKey]) && isset($threshold[$skillKey][$level[
'id']]) )
80 $skillLevelThreshold->setTestId($this->testOBJ->getTestId());
81 $skillLevelThreshold->setSkillBaseId($data[
'skill_base_id']);
82 $skillLevelThreshold->setSkillTrefId($data[
'skill_tref_id']);
83 $skillLevelThreshold->setSkillLevelId($level[
'id']);
85 $skillLevelThreshold->setThreshold($threshold[$skillKey][$level[
'id']]);
87 $skillLevelThreshold->saveToDb();
94 $this->ctrl->redirect($this, self::CMD_SHOW_SKILL_THRESHOLDS);
102 $skillLevelThresholdList->loadFromDb();
103 $table->setSkillLevelThresholdList($skillLevelThresholdList);
106 $assignmentList->loadFromDb();
108 $table->setData($assignmentList->getUniqueAssignedSkills());
110 $this->tpl->setContent($this->ctrl->getHTML($table));
115 require_once
'Modules/Test/classes/tables/class.ilTestSkillLevelThresholdsTableGUI.php';
123 require_once
'Modules/Test/classes/class.ilTestSkillQuestionAssignmentList.php';
125 $assignmentList->setTestId($this->testOBJ->getTestId());
127 return $assignmentList;
132 require_once
'Modules/Test/classes/class.ilTestSkillLevelThresholdList.php';
134 $thresholdList->setTestId($this->testOBJ->getTestId());
136 return $thresholdList;