|
ILIAS
trunk Revision v12.0_alpha-377-g3641b37b9db
|
Service GUI class for tests. More...
Inheritance diagram for ilTestServiceGUI:
Collaboration diagram for ilTestServiceGUI: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.
@ilCtrl_IsCalledBy ilTestServiceGUI: ilObjTestGUI
\
Definition at line 52 of file class.ilTestServiceGUI.php.
|
protected |
Definition at line 632 of file class.ilTestServiceGUI.php.
Referenced by ilTestEvalObjectiveOrientedGUI\showVirtualPassResetTableFilterCmd(), and ilTestEvalObjectiveOrientedGUI\showVirtualPassSetTableFilterCmd().
Here is the caller graph for this function:| ilTestServiceGUI::buildPassOverviewTableGUI | ( | ilTestEvaluationGUI | $target_gui | ) |
Definition at line 296 of file class.ilTestServiceGUI.php.
Referenced by ilTestEvaluationGUI\outUserResultsOverview().
Here is the caller graph for this function:
|
protected |
Definition at line 666 of file class.ilTestServiceGUI.php.
Referenced by ilTestSubmissionReviewGUI\buildUserReviewOutput(), ilTestEvaluationGUI\outUserListOfAnswerPasses(), ilTestEvaluationGUI\outUserPassDetails(), and ilTestEvalObjectiveOrientedGUI\showVirtualPassCmd().
Here is the caller graph for this function:| ilTestServiceGUI::executeCommand | ( | ) |
execute command
Reimplemented in ilTestEvalObjectiveOrientedGUI, ilTestEvaluationGUI, ilTestPlayerAbstractGUI, and ilTestSubmissionReviewGUI.
Definition at line 283 of file class.ilTestServiceGUI.php.
References ILIAS\Repository\ctrl().
Here is the call graph for this function:| 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 532 of file class.ilTestServiceGUI.php.
References $user_id, ilObjUser\_lookupLogin(), ILIAS\Repository\lng(), and ILIAS\Repository\object().
Referenced by ilTestEvaluationGUI\outUserListOfAnswerPasses(), and ilTestEvaluationGUI\outUserResultsOverview().
Here is the call graph for this function:
Here is the caller graph for this function:| 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 588 of file class.ilTestServiceGUI.php.
References $objectives, ILIAS\Repository\ctrl(), ILIAS\Repository\lng(), and ILIAS\Repository\object().
Here is the call graph for this function:
|
protected |
Definition at line 656 of file class.ilTestServiceGUI.php.
References ILIAS\Repository\lng().
Referenced by ilTestEvaluationGUI\outUserPassDetails(), and ilTestEvaluationGUI\outUserResultsOverview().
Here is the call graph for this function:
Here is the caller graph for this function:| ilTestServiceGUI::getObject | ( | ) |
Definition at line 783 of file class.ilTestServiceGUI.php.
Referenced by ilTestPassOverviewTableGUI\__construct(), and ilTestSubmissionReviewGUI\show().
Here is the caller graph for this function:| ilTestServiceGUI::getObjectiveOrientedContainer | ( | ) |
Definition at line 275 of file class.ilTestServiceGUI.php.
Referenced by ilTestSubmissionReviewGUI\buildUserReviewOutput(), ilTestPlayerAbstractGUI\executeCommand(), ilTestEvaluationGUI\outUserListOfAnswerPasses(), ilTestEvaluationGUI\outUserPassDetails(), ilTestEvaluationGUI\outUserResultsOverview(), and ilTestEvalObjectiveOrientedGUI\showVirtualPassCmd().
Here is the caller graph for this function:| ilTestServiceGUI::getParticipantData | ( | ) |
Definition at line 179 of file class.ilTestServiceGUI.php.
References $participantData.
|
protected |
Definition at line 448 of file class.ilTestServiceGUI.php.
Referenced by ilTestEvalObjectiveOrientedGUI\showVirtualPassCmd().
Here is the caller graph for this function:| 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 321 of file class.ilTestServiceGUI.php.
References $counter, $objectives, ILIAS\Repository\lng(), and ILIAS\Repository\object().
Referenced by ilTestEvaluationGUI\outUserListOfAnswerPasses().
Here is the call graph for this function:
Here is the caller graph for this function:| 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 ilLOTestQuestionAdapter\getInstance().
Referenced by ilTestEvaluationGUI\outUserResultsOverview().
Here is the call graph for this function:
Here is the caller graph for this function:| ilTestServiceGUI::getResultsSignature | ( | ) |
Returns HTML code for a signature field.
Definition at line 506 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(), and ilTestEvaluationGUI\outUserPassDetails().
Here is the call graph for this function:
Here is the caller graph for this function:| ilTestServiceGUI::isContextResultPresentation | ( | ) |
Definition at line 107 of file class.ilTestServiceGUI.php.
References $contextResultPresentation.
|
protected |
Definition at line 639 of file class.ilTestServiceGUI.php.
References ILIAS\Repository\object(), and ilObjTest\SCORE_LAST_PASS.
Referenced by ilTestEvaluationGUI\outUserPassDetails(), and ilTestEvaluationGUI\outUserResultsOverview().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Reimplemented in ilTestPlayerAbstractGUI.
Definition at line 687 of file class.ilTestServiceGUI.php.
References ILIAS\Repository\ctrl(), ilObjStyleSheet\getContentStylePath(), ilLOTestQuestionAdapter\getInstance(), ilUtil\getStyleSheetLocation(), ilObjStyleSheet\getSyntaxStylePath(), ILIAS\Repository\int(), ILIAS\Repository\lng(), and ILIAS\Repository\object().
Here is the call graph for this function:
|
protected |
Definition at line 682 of file class.ilTestServiceGUI.php.
|
protected |
Definition at line 677 of file class.ilTestServiceGUI.php.
Referenced by ilTestEvalObjectiveOrientedGUI\showVirtualPassCmd().
Here is the caller graph for this function:
|
protected |
Definition at line 772 of file class.ilTestServiceGUI.php.
References ILIAS\Repository\lng(), ilObjTest\lookupExamId(), ILIAS\Repository\object(), and HTML_Template_IT\setVariable().
Referenced by ilTestEvaluationGUI\outUserPassDetails().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 759 of file class.ilTestServiceGUI.php.
References ilDatePresentation\formatDate(), IL_CAL_UNIX, ILIAS\Repository\lng(), ilDatePresentation\setUseRelativeDates(), HTML_Template_IT\setVariable(), and ilDatePresentation\useRelativeDates().
Referenced by ilTestEvaluationGUI\outUserPassDetails().
Here is the call graph for this function:
Here is the caller graph for this function:| ilTestServiceGUI::setContextResultPresentation | ( | bool | $contextResultPresentation | ) |
Definition at line 112 of file class.ilTestServiceGUI.php.
References $contextResultPresentation.
Referenced by ilTestEvaluationGUI\outUserListOfAnswerPasses().
Here is the caller graph for this function:| ilTestServiceGUI::setObjectiveOrientedContainer | ( | ilTestObjectiveOrientedContainer | $objective_oriented_container | ) |
| ilTestObjectiveOrientedContainer | $objective_oriented_container |
Definition at line 267 of file class.ilTestServiceGUI.php.
| 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.
|
protected |
Definition at line 101 of file class.ilTestServiceGUI.php.
|
protected |
Definition at line 98 of file class.ilTestServiceGUI.php.
Referenced by getParticipantData(), 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\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.
|
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 ilTestEvaluationGUI\outUserPassDetails(), 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.