4require_once
'Modules/Test/classes/toolbars/class.ilTestSkillEvaluationToolbarGUI.php';
5require_once
'Modules/Test/classes/class.ilTestPersonalSkillsGUI.php';
6require_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()
164 $skillEvaluation->setUserId($this->
getTestSession()->getUserId());
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(),
216 $this->getAvailableSkills()
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);
An exception for terminatinating execution or to throw for unit testing.
This class provides processing control methods.
const DEFAULT_SKL_TRIG_NUM_ANSWERS_BARRIER
special template class to simplify handling of ITX/PEAR
getAvailableSkillProfiles()
setTestSession($testSession)
buildEvaluationToolbarGUI($selectedSkillProfileId)
const INVOLVE_SKILLS_BELOW_NUM_ANSWERS_BARRIER_FOR_GAP_ANALASYS
__construct(ilCtrl $ctrl, ilTabsGUI $tabs, ilTemplate $tpl, ilLanguage $lng, ilDBInterface $db, ilObjTest $testOBJ)
setQuestionList($questionList)
init($skillProfileEnabled)
getObjectiveOrientedContainer()
setAvailableSkills($availableSkills)
setAvailableSkillProfiles($availableSkillProfiles)
isNoSkillProfileOptionEnabled()
setObjectiveOrientedContainer($objectiveOrientedContainer)
$objectiveOrientedContainer
buildPersonalSkillsGUI($usrId, $selectedSkillProfileId, $availableSkills)
$noSkillProfileOptionEnabled
setNoSkillProfileOptionEnabled($noSkillProfileOptionEnabled)