4 require_once
'Modules/Test/classes/toolbars/class.ilTestSkillEvaluationToolbarGUI.php';
5 require_once
'Modules/Test/classes/class.ilTestPersonalSkillsGUI.php';
6 require_once
'Modules/Test/classes/class.ilObjAssessmentFolder.php';
120 $cmd = $this->ctrl->getCmd(self::CMD_SHOW) .
'Cmd';
134 #$this->tabs->clearTargets(); 136 # $this->tabs->setBackTarget( 137 # $this->lng->txt('tst_results_back_introduction'), 138 # $this->ctrl->getLinkTargetByClass('ilObjTestGUI', 'infoScreen') 141 # if( $this->getObjectiveOrientedContainer()->isObjectiveOrientedPresentationRequired() ) 143 # require_once 'Services/Link/classes/class.ilLink.php'; 144 # $courseLink = ilLink::_getLink($this->getObjectiveOrientedContainer()->getRefId()); 145 # $this->tabs->setBack2Target($this->lng->txt('back_to_objective_container'), $courseLink); 149 protected function init($skillProfileEnabled)
151 require_once
'Modules/Test/classes/class.ilTestPassesSelector.php';
153 $this->testPassesSelector->setActiveId($this->testSession->getActiveId());
154 $this->testPassesSelector->setLastFinishedPass($this->testSession->getLastFinishedPass());
156 $assSettings =
new ilSetting(
'assessment');
157 require_once
'Modules/Test/classes/class.ilTestSkillEvaluation.php';
160 $this->testOBJ->getTestId(),
161 $this->testOBJ->getRefId()
165 $skillEvaluation->setActiveId($this->
getTestSession()->getActiveId());
167 $skillEvaluation->setNumRequiredBookingsForSkillTriggering($assSettings->get(
168 'ass_skl_trig_num_answ_barrier',
181 $evaluationPasses = $this->testPassesSelector->getExistingPasses();
185 foreach ($evaluationPasses as $evalPass) {
186 $testResults = $this->testOBJ->getTestResult($this->
getTestSession()->getActiveId(), $evalPass,
true);
188 $skillEvaluation->setPass($evalPass);
189 $skillEvaluation->evaluate($testResults);
191 if ($skillProfileEnabled && self::INVOLVE_SKILLS_BELOW_NUM_ANSWERS_BARRIER_FOR_GAP_ANALASYS) {
192 $skills = $skillEvaluation->getSkillsInvolvedByAssignment();
194 $skills = $skillEvaluation->getSkillsMatchingNumAnswersBarrier();
209 $this->
init($selectedSkillProfile);
215 $evaluationToolbarGUI->getSelectedEvaluationMode(),
219 $this->tpl->setContent(
220 $this->ctrl->getHTML($evaluationToolbarGUI) . $this->ctrl->getHTML($personalSkillsGUI)
234 $gui->setSelectedEvaluationMode($selectedSkillProfileId);
246 $gui->setSelectedSkillProfile($selectedSkillProfileId);
248 $gui->setReachedSkillLevels($reachedSkillLevels);
249 $gui->setUsrId($usrId);
This class provides processing control methods.
setAvailableSkills($availableSkills)
__construct(ilCtrl $ctrl, ilTabsGUI $tabs, ilTemplate $tpl, ilLanguage $lng, ilDBInterface $db, ilObjTest $testOBJ)
$noSkillProfileOptionEnabled
buildEvaluationToolbarGUI($selectedSkillProfileId)
const DEFAULT_SKL_TRIG_NUM_ANSWERS_BARRIER
isNoSkillProfileOptionEnabled()
setObjectiveOrientedContainer($objectiveOrientedContainer)
const INVOLVE_SKILLS_BELOW_NUM_ANSWERS_BARRIER_FOR_GAP_ANALASYS
setAvailableSkills($availableSkills)
setQuestionList($questionList)
getObjectiveOrientedContainer()
special template class to simplify handling of ITX/PEAR
init($skillProfileEnabled)
buildPersonalSkillsGUI($usrId, $selectedSkillProfileId, $availableSkills)
setAvailableSkillProfiles($availableSkillProfiles)
setNoSkillProfileOptionEnabled($noSkillProfileOptionEnabled)
setTestSession($testSession)
$objectiveOrientedContainer
getAvailableSkillProfiles()