Skip to content

Commit

Permalink
TA, TestResults, cleaning
Browse files Browse the repository at this point in the history
  • Loading branch information
nhaagen committed Jul 13, 2023
1 parent d236477 commit 83056df
Showing 1 changed file with 0 additions and 66 deletions.
66 changes: 0 additions & 66 deletions Modules/Test/classes/class.ilTestEvaluationGUI.php
Original file line number Diff line number Diff line change
Expand Up @@ -937,72 +937,6 @@ public function outParticipantsPassDetails()
$template->parseCurrentBlock();
}



if (false) {// old table
$user_id = $this->object->_getUserIdFromActiveId($active_id);
$testResultHeaderLabelBuilder = new ilTestResultHeaderLabelBuilder($this->lng, $ilObjDataCache);

$objectivesList = null;

if ($this->getObjectiveOrientedContainer()->isObjectiveOrientedPresentationRequired()) {
$testSequence = $this->testSequenceFactory->getSequenceByActiveIdAndPass($active_id, $pass);
$testSequence->loadFromDb();
$testSequence->loadQuestions();

$objectivesAdapter = ilLOTestQuestionAdapter::getInstance($testSession);

$objectivesList = $this->buildQuestionRelatedObjectivesList($objectivesAdapter, $testSequence);
$objectivesList->loadObjectivesTitles();

$testResultHeaderLabelBuilder->setObjectiveOrientedContainerId($testSession->getObjectiveOrientedContainerId());
$testResultHeaderLabelBuilder->setUserId($testSession->getUserId());
$testResultHeaderLabelBuilder->setTestObjId($this->object->getId());
$testResultHeaderLabelBuilder->setTestRefId($this->object->getRefId());
$testResultHeaderLabelBuilder->initObjectiveOrientedMode();
}

$result_array = $this->getFilteredTestResult($active_id, $pass, false, !$this->getObjectiveOrientedContainer()->isObjectiveOrientedPresentationRequired());

$overviewTableGUI = $this->getPassDetailsOverviewTableGUI(
$result_array,
$active_id,
$pass,
$this,
"outParticipantsPassDetails",
'',
true,
$objectivesList
);
$overviewTableGUI->setTitle($testResultHeaderLabelBuilder->getPassDetailsHeaderLabel($pass + 1));
$user_data = $this->getAdditionalUsrDataHtmlAndPopulateWindowTitle($testSession, $active_id, false);

$list_of_answers = $this->getPassListOfAnswers($result_array, $active_id, $pass, ilSession::get('tst_results_show_best_solutions'), false, false, false, true, $objectivesList, $testResultHeaderLabelBuilder);
$template->setVariable("LIST_OF_ANSWERS", $list_of_answers);
$template->setVariable("PASS_DETAILS", $this->ctrl->getHTML($overviewTableGUI));

if (!$this->getObjectiveOrientedContainer()->isObjectiveOrientedPresentationRequired()) {
//$user_data = $this->getAdditionalUsrDataHtmlAndPopulateWindowTitle($testSession, $active_id, false);
$template->setVariable("USER_DATA", $user_data);

$uname = $this->object->userLookupFullName($user_id);
$template->setVariable("TEXT_HEADING", sprintf($this->lng->txt("tst_result_user_name_pass"), $pass + 1, $uname));

//$template->setVariable("TEXT_RESULTS", $testResultHeaderLabelBuilder->getPassDetailsHeaderLabel($pass + 1));
}

$template->setVariable("FORMACTION", $this->ctrl->getFormAction($this));
}

if (false) {// old table, total results
$data = $this->object->getCompleteEvaluationData();
$result = $data->getParticipant($active_id)->getReached() . " " . strtolower($this->lng->txt("of")) . " " . $data->getParticipant($active_id)->getMaxpoints() . " (" . sprintf("%2.2f", $data->getParticipant($active_id)->getReachedPointsInPercent()) . " %" . ")";
$template->setCurrentBlock('total_score');
$template->setVariable("TOTAL_RESULT_TEXT", $this->lng->txt('tst_stat_result_resultspoints'));
$template->setVariable("TOTAL_RESULT", $result);
$template->parseCurrentBlock();
}

$title = sprintf(
$this->lng->txt("tst_result_user_name_pass"),
$pass + 1,
Expand Down

0 comments on commit 83056df

Please sign in to comment.