ILIAS
trunk Revision v11.0_alpha-1715-g7fc467680fb
|
Service GUI class for tests. More...
Public Member Functions | |
isContextResultPresentation () | |
setContextResultPresentation (bool $contextResultPresentation) | |
setParticipantData (ilTestParticipantData $participantData) | |
getParticipantData () | |
getPassOverviewTableData (ilTestSession $test_session, array $passes, bool $with_results) | |
setObjectiveOrientedContainer (ilTestObjectiveOrientedContainer $objective_oriented_container) | |
getObjectiveOrientedContainer () | |
executeCommand () | |
execute command More... | |
buildPassOverviewTableGUI (ilTestEvaluationGUI $target_gui) | |
getPassListOfAnswers (&$result_array, $active_id, $pass, $show_solutions=false, $only_answered_questions=false, $show_question_only=false, $show_reached_points=false, $anchorNav=false, ?ilTestQuestionRelatedObjectivesList $objectives_list=null, ?ResultsTitlesBuilder $testResultHeaderLabelBuilder=null) | |
Returns the list of answers of a users test pass. More... | |
getResultsSignature () | |
Returns HTML code for a signature field. More... | |
getAdditionalUsrDataHtmlAndPopulateWindowTitle ($testSession, $active_id, $overwrite_anonymity=false) | |
Returns the user data for a test results output. More... | |
getCorrectSolutionOutput ($question_id, $active_id, $pass, ?ilTestQuestionRelatedObjectivesList $objectives_list=null) | |
Returns an output of the solution to an answer compared to the correct solution. More... | |
getObject () | |
Protected Member Functions | |
getPassDetailsOverviewTableGUI (array $result_array, int $active_id, int $pass, ilTestServiceGUI $target_gui, string $target_cmd, ?ilTestQuestionRelatedObjectivesList $objectives_list=null, bool $multiple_objectives_involved=true) | |
buildPassDetailsOverviewTableGUI (ilTestServiceGUI $target_gui, string $target_cmd) | |
isGradingMessageRequired () | |
getGradingMessageBuilder (int $active_id) | |
buildQuestionRelatedObjectivesList (ilLOTestQuestionAdapter $objectives_adapter, ilTestQuestionSequence $test_sequence) | |
populateContent (string $content) | |
outCorrectSolutionCmd () | |
outCorrectSolution () | |
populatePassFinishDate (ilTemplate $tpl, ?int $pass_finish_date) | |
populateExamId (ilTemplate $tpl, int $active_id, int $pass) | |
Private Attributes | |
ilTestObjectiveOrientedContainer | $objective_oriented_container |
bool | $contextResultPresentation = true |
Service GUI class for tests.
This class is the parent class for all service classes which are called from ilObjTestGUI. This is mainly done to reduce the size of ilObjTestGUI to put command service functions into classes that could be called by ilCtrl.
ilTestServiceGUI: ilObjTestGUI
\
Definition at line 52 of file class.ilTestServiceGUI.php.
|
protected |
Definition at line 649 of file class.ilTestServiceGUI.php.
References ILIAS\Repository\ctrl().
Referenced by getPassDetailsOverviewTableGUI(), ilTestEvalObjectiveOrientedGUI\showVirtualPassResetTableFilterCmd(), and ilTestEvalObjectiveOrientedGUI\showVirtualPassSetTableFilterCmd().
ilTestServiceGUI::buildPassOverviewTableGUI | ( | ilTestEvaluationGUI | $target_gui | ) |
Definition at line 323 of file class.ilTestServiceGUI.php.
References getObjectiveOrientedContainer().
Referenced by ilTestEvaluationGUI\outUserResultsOverview().
|
protected |
Definition at line 682 of file class.ilTestServiceGUI.php.
References ilLOTestQuestionAdapter\buildQuestionRelatedObjectiveList().
Referenced by ilTestSubmissionReviewGUI\buildUserReviewOutput(), getPassOverviewTableData(), outCorrectSolution(), ilTestEvaluationGUI\outUserListOfAnswerPasses(), ilTestEvaluationGUI\outUserPassDetails(), and ilTestEvalObjectiveOrientedGUI\showVirtualPassCmd().
ilTestServiceGUI::executeCommand | ( | ) |
execute command
Definition at line 310 of file class.ilTestServiceGUI.php.
References ILIAS\Repository\ctrl().
ilTestServiceGUI::getAdditionalUsrDataHtmlAndPopulateWindowTitle | ( | $testSession, | |
$active_id, | |||
$overwrite_anonymity = false |
|||
) |
Returns the user data for a test results output.
ilTestSession | ||
integer | $user_id | The user ID of the user |
boolean | $overwrite_anonymity | TRUE if the anonymity status should be overwritten, FALSE otherwise |
Definition at line 549 of file class.ilTestServiceGUI.php.
References $user_id, ilObjUser\_lookupLogin(), getObjectiveOrientedContainer(), ILIAS\Repository\lng(), and ILIAS\Repository\object().
Referenced by ilTestEvaluationGUI\outUserListOfAnswerPasses(), ilTestEvaluationGUI\outUserResultsOverview(), and ilTestPlayerAbstractGUI\showListOfAnswers().
ilTestServiceGUI::getCorrectSolutionOutput | ( | $question_id, | |
$active_id, | |||
$pass, | |||
?ilTestQuestionRelatedObjectivesList | $objectives_list = null |
||
) |
Returns an output of the solution to an answer compared to the correct solution.
integer | $question_id | Database ID of the question |
integer | $active_id | Active ID of the active user |
integer | $pass | Test pass |
Definition at line 605 of file class.ilTestServiceGUI.php.
References $objectives, $user, ILIAS\Repository\ctrl(), ILIAS\Repository\lng(), null, and ILIAS\Repository\object().
Referenced by outCorrectSolution(), and ilTestPlayerAbstractGUI\outCorrectSolution().
|
protected |
Definition at line 673 of file class.ilTestServiceGUI.php.
References ILIAS\Repository\lng().
Referenced by ilTestEvaluationGUI\outUserPassDetails(), and ilTestEvaluationGUI\outUserResultsOverview().
ilTestServiceGUI::getObject | ( | ) |
Definition at line 799 of file class.ilTestServiceGUI.php.
Referenced by ilTestPassOverviewTableGUI\__construct(), ilTestPlayerAbstractGUI\discardSolutionCmd(), ilTestPlayerAbstractGUI\finishTestCmd(), ilTestPlayerAbstractGUI\nextQuestionCmd(), ilTestPlayerAbstractGUI\outQuestionSummaryCmd(), ilTestPlayerAbstractGUI\save(), ILIAS\Test\Scoring\Manual\TestScoringByQuestionGUI\saveManScoringByQuestion(), ILIAS\Test\Scoring\Manual\TestScoringByParticipantGUI\saveManScoringParticipantScreen(), ilTestPlayerAbstractGUI\showQuestionCmd(), ilTestPlayerAbstractGUI\skipQuestionCmd(), and ilTestPlayerAbstractGUI\startTestCmd().
ilTestServiceGUI::getObjectiveOrientedContainer | ( | ) |
Definition at line 302 of file class.ilTestServiceGUI.php.
References $objective_oriented_container.
Referenced by buildPassOverviewTableGUI(), ilTestSubmissionReviewGUI\buildUserReviewOutput(), ilTestPlayerAbstractGUI\executeCommand(), getAdditionalUsrDataHtmlAndPopulateWindowTitle(), getPassOverviewTableData(), isGradingMessageRequired(), outCorrectSolution(), ilTestEvaluationGUI\outUserListOfAnswerPasses(), ilTestEvaluationGUI\outUserPassDetails(), ilTestEvaluationGUI\outUserResultsOverview(), ilTestPlayerAbstractGUI\redirectBackCmd(), ilTestPlayerAbstractGUI\showListOfAnswers(), ilTestEvalObjectiveOrientedGUI\showVirtualPassCmd(), and ilTestPlayerAbstractGUI\startTestCmd().
ilTestServiceGUI::getParticipantData | ( | ) |
Definition at line 179 of file class.ilTestServiceGUI.php.
References $participantData.
|
protected |
Definition at line 464 of file class.ilTestServiceGUI.php.
References buildPassDetailsOverviewTableGUI(), ILIAS\Repository\ctrl(), null, and ILIAS\Repository\object().
Referenced by ilTestEvalObjectiveOrientedGUI\showVirtualPassCmd().
ilTestServiceGUI::getPassListOfAnswers | ( | & | $result_array, |
$active_id, | |||
$pass, | |||
$show_solutions = false , |
|||
$only_answered_questions = false , |
|||
$show_question_only = false , |
|||
$show_reached_points = false , |
|||
$anchorNav = false , |
|||
?ilTestQuestionRelatedObjectivesList | $objectives_list = null , |
||
?ResultsTitlesBuilder | $testResultHeaderLabelBuilder = null |
||
) |
Returns the list of answers of a users test pass.
array | $result_array | An array containing the results of the users test pass (generated by ilObjTest::getTestResult) |
integer | $active_id | Active ID of the active user |
integer | $pass | Test pass |
boolean | $show_solutions | TRUE, if the solution output should be shown in the answers, FALSE otherwise |
Definition at line 348 of file class.ilTestServiceGUI.php.
References $objectives, isContextResultPresentation(), ILIAS\Repository\lng(), null, and ILIAS\Repository\object().
Referenced by ilTestEvaluationGUI\outUserListOfAnswerPasses().
ilTestServiceGUI::getPassOverviewTableData | ( | ilTestSession | $test_session, |
array | $passes, | ||
bool | $with_results | ||
) |
array<int> | $passes An integer array of test runs |
Definition at line 188 of file class.ilTestServiceGUI.php.
References $data, ilObjTest\_getResultPass(), buildQuestionRelatedObjectivesList(), ilTestSession\getActiveId(), ilLOTestQuestionAdapter\getInstance(), getObjectiveOrientedContainer(), ilAssQuestionHintTracking\getRequestRequestStatisticDataRegisterByActiveId(), null, and ILIAS\Repository\object().
Referenced by ilTestEvaluationGUI\outUserResultsOverview().
ilTestServiceGUI::getResultsSignature | ( | ) |
Returns HTML code for a signature field.
Definition at line 523 of file class.ilTestServiceGUI.php.
References ilDatePresentation\formatDate(), ilUtil\getImagePath(), IL_CAL_UNIX, ILIAS\Repository\lng(), ILIAS\Repository\object(), ilDatePresentation\setUseRelativeDates(), and ilDatePresentation\useRelativeDates().
Referenced by ilTestEvaluationGUI\outUserListOfAnswerPasses(), ilTestEvaluationGUI\outUserPassDetails(), and ilTestPlayerAbstractGUI\showListOfAnswers().
ilTestServiceGUI::isContextResultPresentation | ( | ) |
Definition at line 107 of file class.ilTestServiceGUI.php.
References $contextResultPresentation.
Referenced by getPassListOfAnswers().
|
protected |
Definition at line 656 of file class.ilTestServiceGUI.php.
References getObjectiveOrientedContainer(), ILIAS\Repository\object(), and ilObjTest\SCORE_LAST_PASS.
Referenced by ilTestEvaluationGUI\outUserPassDetails(), and ilTestEvaluationGUI\outUserResultsOverview().
|
protected |
Definition at line 703 of file class.ilTestServiceGUI.php.
References $tabs, buildQuestionRelatedObjectivesList(), ILIAS\Repository\ctrl(), ilObjStyleSheet\getContentStylePath(), getCorrectSolutionOutput(), ilLOTestQuestionAdapter\getInstance(), getObjectiveOrientedContainer(), ilUtil\getStyleSheetLocation(), ilObjStyleSheet\getSyntaxStylePath(), ILIAS\Repository\int(), ILIAS\Repository\lng(), null, ILIAS\Repository\object(), and ilTabsGUI\setBackTarget().
Referenced by outCorrectSolutionCmd().
|
protected |
Definition at line 698 of file class.ilTestServiceGUI.php.
References outCorrectSolution().
|
protected |
Definition at line 693 of file class.ilTestServiceGUI.php.
Referenced by ilTestEvalObjectiveOrientedGUI\showVirtualPassCmd().
|
protected |
Definition at line 788 of file class.ilTestServiceGUI.php.
References ILIAS\Repository\lng(), ilObjTest\lookupExamId(), ILIAS\Repository\object(), and HTML_Template_IT\setVariable().
Referenced by ilTestEvaluationGUI\outUserPassDetails().
|
protected |
Definition at line 775 of file class.ilTestServiceGUI.php.
References ilDatePresentation\formatDate(), IL_CAL_UNIX, ILIAS\Repository\lng(), null, ilDatePresentation\setUseRelativeDates(), HTML_Template_IT\setVariable(), and ilDatePresentation\useRelativeDates().
Referenced by ilTestEvaluationGUI\outUserPassDetails().
ilTestServiceGUI::setContextResultPresentation | ( | bool | $contextResultPresentation | ) |
Definition at line 112 of file class.ilTestServiceGUI.php.
References $contextResultPresentation, $DIC, ILIAS\GlobalScreen\Provider\__construct(), ILIAS\Repository\access(), ILIAS\Repository\ctrl(), ilObjTest\getLocalDIC(), ILIAS\Repository\help(), ILIAS\FileDelivery\http(), ILIAS\Repository\lng(), ILIAS\Repository\logger(), null, ILIAS\Repository\refinery(), ILIAS\Repository\settings(), ILIAS\Repository\tabs(), ILIAS\Repository\toolbar(), and ILIAS\Repository\user().
Referenced by ilTestEvaluationGUI\outUserListOfAnswerPasses().
ilTestServiceGUI::setObjectiveOrientedContainer | ( | ilTestObjectiveOrientedContainer | $objective_oriented_container | ) |
ilTestObjectiveOrientedContainer | $objective_oriented_container |
Definition at line 294 of file class.ilTestServiceGUI.php.
References $objective_oriented_container.
ilTestServiceGUI::setParticipantData | ( | ilTestParticipantData | $participantData | ) |
Definition at line 174 of file class.ilTestServiceGUI.php.
References $participantData.
|
protected |
Definition at line 72 of file class.ilTestServiceGUI.php.
|
protected |
Definition at line 78 of file class.ilTestServiceGUI.php.
|
protected |
Definition at line 70 of file class.ilTestServiceGUI.php.
|
private |
Definition at line 105 of file class.ilTestServiceGUI.php.
Referenced by isContextResultPresentation(), and setContextResultPresentation().
|
protected |
Definition at line 74 of file class.ilTestServiceGUI.php.
|
protected |
Definition at line 58 of file class.ilTestServiceGUI.php.
Referenced by ilTestPlayerAbstractGUI\initProcessLocker(), and ilTestEvaluationGUI\performDeletePass().
|
protected |
Definition at line 71 of file class.ilTestServiceGUI.php.
|
protected |
Definition at line 92 of file class.ilTestServiceGUI.php.
|
protected |
Definition at line 61 of file class.ilTestServiceGUI.php.
|
protected |
Definition at line 73 of file class.ilTestServiceGUI.php.
|
protected |
Definition at line 90 of file class.ilTestServiceGUI.php.
|
protected |
Definition at line 59 of file class.ilTestServiceGUI.php.
|
protected |
Definition at line 60 of file class.ilTestServiceGUI.php.
|
protected |
Definition at line 81 of file class.ilTestServiceGUI.php.
|
protected |
Definition at line 77 of file class.ilTestServiceGUI.php.
|
private |
Definition at line 103 of file class.ilTestServiceGUI.php.
Referenced by getObjectiveOrientedContainer(), and setObjectiveOrientedContainer().
|
protected |
Definition at line 101 of file class.ilTestServiceGUI.php.
|
protected |
Definition at line 98 of file class.ilTestServiceGUI.php.
Referenced by getParticipantData(), ILIAS\Test\Scoring\Manual\TestScoringByParticipantGUI\saveNextManScoringParticipantScreen(), and setParticipantData().
|
protected |
Definition at line 80 of file class.ilTestServiceGUI.php.
|
protected |
Definition at line 55 of file class.ilTestServiceGUI.php.
|
protected |
Definition at line 62 of file class.ilTestServiceGUI.php.
|
protected |
Definition at line 94 of file class.ilTestServiceGUI.php.
|
protected |
Definition at line 82 of file class.ilTestServiceGUI.php.
|
protected |
Definition at line 87 of file class.ilTestServiceGUI.php.
|
protected |
Definition at line 88 of file class.ilTestServiceGUI.php.
|
protected |
Definition at line 57 of file class.ilTestServiceGUI.php.
|
protected |
Definition at line 91 of file class.ilTestServiceGUI.php.
Referenced by ilTestEvaluationGUI\buildAttemptComponents(), and ilTestEvaluationGUI\outUserPassDetails().
|
protected |
Definition at line 86 of file class.ilTestServiceGUI.php.
|
protected |
Definition at line 85 of file class.ilTestServiceGUI.php.
|
protected |
Definition at line 76 of file class.ilTestServiceGUI.php.
Referenced by outCorrectSolution().
|
protected |
Definition at line 99 of file class.ilTestServiceGUI.php.
|
protected |
Definition at line 97 of file class.ilTestServiceGUI.php.
Referenced by ilTestPlayerAbstractGUI\executeCommand().
|
protected |
Definition at line 96 of file class.ilTestServiceGUI.php.
|
protected |
Definition at line 56 of file class.ilTestServiceGUI.php.
|
protected |
Definition at line 54 of file class.ilTestServiceGUI.php.
|
protected |
Definition at line 75 of file class.ilTestServiceGUI.php.
Referenced by ilTestSubmissionReviewGUI\buildToolbar().
|
protected |
sk 2023-08-01: We need this union type, even if it is wrong! To change this
ilTestPlayerAbstractGUI::populateIntantResponseModal()
.Definition at line 69 of file class.ilTestServiceGUI.php.
Referenced by ilTestPlayerAbstractGUI\getQuestionGuiInstance(), ilTestEvaluationGUI\outUserPassDetails(), ilTestPlayerAbstractGUI\populateInstantResponseModal(), and ilTestEvalObjectiveOrientedGUI\showVirtualPassCmd().
|
protected |
Definition at line 93 of file class.ilTestServiceGUI.php.
|
protected |
Definition at line 83 of file class.ilTestServiceGUI.php.
|
protected |
Definition at line 84 of file class.ilTestServiceGUI.php.
|
protected |
Definition at line 79 of file class.ilTestServiceGUI.php.
Referenced by getCorrectSolutionOutput().