128 $cmd = $this->
ctrl->getCmd(self::CMD_SHOW) .
'Cmd';
142 #$this->tabs->clearTargets(); 144 # $this->tabs->setBackTarget( 145 # $this->lng->txt('tst_results_back_introduction'), 146 # $this->ctrl->getLinkTargetByClass('ilObjTestGUI', 'infoScreen') 149 # if( $this->getObjectiveOrientedContainer()->isObjectiveOrientedPresentationRequired() ) 151 # require_once 'Services/Link/classes/class.ilLink.php'; 152 # $courseLink = ilLink::_getLink($this->getObjectiveOrientedContainer()->getRefId()); 153 # $this->tabs->setBack2Target($this->lng->txt('back_to_objective_container'), $courseLink); 157 protected function init($skillProfileEnabled)
159 require_once
'Modules/Test/classes/class.ilTestPassesSelector.php';
161 $this->testPassesSelector->setActiveId($this->testSession->getActiveId());
162 $this->testPassesSelector->setLastFinishedPass($this->testSession->getLastFinishedPass());
164 $assSettings =
new ilSetting(
'assessment');
165 require_once
'Modules/Test/classes/class.ilTestSkillEvaluation.php';
168 $this->testOBJ->getTestId(),
169 $this->testOBJ->getRefId()
173 $skillEvaluation->setActiveId($this->
getTestSession()->getActiveId());
175 $skillEvaluation->setNumRequiredBookingsForSkillTriggering($assSettings->get(
176 'ass_skl_trig_num_answ_barrier',
189 $evaluationPasses = $this->testPassesSelector->getExistingPasses();
193 foreach ($evaluationPasses as $evalPass) {
194 $testResults = $this->testOBJ->getTestResult($this->
getTestSession()->getActiveId(), $evalPass,
true);
196 $skillEvaluation->setPass($evalPass);
197 $skillEvaluation->evaluate($testResults);
199 if ($skillProfileEnabled && self::INVOLVE_SKILLS_BELOW_NUM_ANSWERS_BARRIER_FOR_GAP_ANALASYS) {
200 $skills = $skillEvaluation->getSkillsInvolvedByAssignment();
202 $skills = $skillEvaluation->getSkillsMatchingNumAnswersBarrier();
217 $this->
init($selectedSkillProfile);
223 $evaluationToolbarGUI->getSelectedEvaluationMode(),
227 $this->tpl->setContent(
228 $this->
ctrl->getHTML($evaluationToolbarGUI) . $this->
ctrl->getHTML($personalSkillsGUI)
242 $gui->setSelectedEvaluationMode($selectedSkillProfileId);
254 $gui->setSelectedSkillProfile($selectedSkillProfileId);
257 $gui->setUsrId($usrId);
setAvailableSkills($availableSkills)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
$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()
__construct(ilCtrl $ctrl, ilTabsGUI $tabs, ilGlobalTemplateInterface $tpl, ilLanguage $lng, ilDBInterface $db, ilObjTest $testOBJ)
init($skillProfileEnabled)
buildPersonalSkillsGUI($usrId, $selectedSkillProfileId, $availableSkills)
setAvailableSkillProfiles($availableSkillProfiles)
setNoSkillProfileOptionEnabled($noSkillProfileOptionEnabled)
setTestSession($testSession)
$objectiveOrientedContainer
getAvailableSkillProfiles()