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()
172 $skillEvaluation->setUserId($this->
getTestSession()->getUserId());
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(),
224 $this->getAvailableSkills()
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);
Class ilCtrl provides processing control methods.
const DEFAULT_SKL_TRIG_NUM_ANSWERS_BARRIER
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
getAvailableSkillProfiles()
setTestSession($testSession)
buildEvaluationToolbarGUI($selectedSkillProfileId)
const INVOLVE_SKILLS_BELOW_NUM_ANSWERS_BARRIER_FOR_GAP_ANALASYS
setQuestionList($questionList)
init($skillProfileEnabled)
getObjectiveOrientedContainer()
__construct(ilCtrl $ctrl, ilTabsGUI $tabs, ilGlobalTemplateInterface $tpl, ilLanguage $lng, ilDBInterface $db, ilObjTest $testOBJ)
setAvailableSkills($availableSkills)
setAvailableSkillProfiles($availableSkillProfiles)
isNoSkillProfileOptionEnabled()
setObjectiveOrientedContainer($objectiveOrientedContainer)
$objectiveOrientedContainer
buildPersonalSkillsGUI($usrId, $selectedSkillProfileId, $availableSkills)
$noSkillProfileOptionEnabled
setNoSkillProfileOptionEnabled($noSkillProfileOptionEnabled)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...