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')
143 require_once
'Services/Link/classes/class.ilLink.php';
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';
159 $this->db, $this->testOBJ->getTestId(), $this->testOBJ->getRefId()
163 $skillEvaluation->setActiveId($this->
getTestSession()->getActiveId());
165 $skillEvaluation->setNumRequiredBookingsForSkillTriggering( $assSettings->get(
178 $evaluationPasses = $this->testPassesSelector->getExistingPasses();
182 foreach($evaluationPasses as $evalPass)
184 $testResults = $this->testOBJ->getTestResult($this->
getTestSession()->getActiveId(), $evalPass,
true);
186 $skillEvaluation->setPass($evalPass);
187 $skillEvaluation->evaluate($testResults);
189 if($skillProfileEnabled && self::INVOLVE_SKILLS_BELOW_NUM_ANSWERS_BARRIER_FOR_GAP_ANALASYS)
191 $skills = $skillEvaluation->getSkillsInvolvedByAssignment();
195 $skills = $skillEvaluation->getSkillsMatchingNumAnswersBarrier();
210 $this->
init($selectedSkillProfile);
218 $this->tpl->setContent(
219 $this->ctrl->getHTML($evaluationToolbarGUI) . $this->ctrl->getHTML($personalSkillsGUI)
234 $gui->setSelectedEvaluationMode($selectedSkillProfileId);
245 if( !$this->testOBJ->canShowTestResults($this->testSession) )
250 if( !count($this->testPassesSelector->getReportablePasses()) )
263 $gui->setSelectedSkillProfile($selectedSkillProfileId);
265 $gui->setReachedSkillLevels($reachedSkillLevels);
266 $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)
isTestResultButtonRequired()
setQuestionList($questionList)
getObjectiveOrientedContainer()
special template class to simplify handling of ITX/PEAR
init($skillProfileEnabled)
Create styles array
The data for the language used.
buildPersonalSkillsGUI($usrId, $selectedSkillProfileId, $availableSkills)
setAvailableSkillProfiles($availableSkillProfiles)
setNoSkillProfileOptionEnabled($noSkillProfileOptionEnabled)
setTestSession($testSession)
$objectiveOrientedContainer
getAvailableSkillProfiles()
static _getLink($a_ref_id, $a_type='', $a_params=array(), $append="")