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')
142 require_once
'Services/Link/classes/class.ilLink.php';
144 $this->tabs->setBack2Target($this->lng->txt(
'back_to_objective_container'), $courseLink);
148 protected function init($skillProfileEnabled)
150 require_once
'Modules/Test/classes/class.ilTestPassesSelector.php';
152 $this->testPassesSelector->setActiveId($this->testSession->getActiveId());
153 $this->testPassesSelector->setLastFinishedPass($this->testSession->getLastFinishedPass());
155 $assSettings =
new ilSetting(
'assessment');
156 require_once
'Modules/Test/classes/class.ilTestSkillEvaluation.php';
159 $this->testOBJ->getTestId(),
160 $this->testOBJ->getRefId()
164 $skillEvaluation->setActiveId($this->
getTestSession()->getActiveId());
166 $skillEvaluation->setNumRequiredBookingsForSkillTriggering($assSettings->get(
167 'ass_skl_trig_num_answ_barrier',
180 $evaluationPasses = $this->testPassesSelector->getExistingPasses();
184 foreach ($evaluationPasses as $evalPass) {
185 $testResults = $this->testOBJ->getTestResult($this->
getTestSession()->getActiveId(), $evalPass,
true);
187 $skillEvaluation->setPass($evalPass);
188 $skillEvaluation->evaluate($testResults);
190 if ($skillProfileEnabled && self::INVOLVE_SKILLS_BELOW_NUM_ANSWERS_BARRIER_FOR_GAP_ANALASYS) {
191 $skills = $skillEvaluation->getSkillsInvolvedByAssignment();
193 $skills = $skillEvaluation->getSkillsMatchingNumAnswersBarrier();
208 $this->
init($selectedSkillProfile);
214 $evaluationToolbarGUI->getSelectedEvaluationMode(),
218 $this->tpl->setContent(
219 $this->ctrl->getHTML($evaluationToolbarGUI) . $this->ctrl->getHTML($personalSkillsGUI)
233 $gui->setSelectedEvaluationMode($selectedSkillProfileId);
244 if (!$this->testOBJ->canShowTestResults($this->testSession)) {
248 if (!count($this->testPassesSelector->getReportablePasses())) {
260 $gui->setSelectedSkillProfile($selectedSkillProfileId);
262 $gui->setReachedSkillLevels($reachedSkillLevels);
263 $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="")