|
ILIAS
trunk Revision v13.0_alpha-62-g3b72d83f2e5
|
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 (int $active_id, bool $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 624 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 298 of file class.ilTestServiceGUI.php.
Referenced by ilTestEvaluationGUI\outUserResultsOverview().
Here is the caller graph for this function:
|
protected |
Definition at line 658 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 285 of file class.ilTestServiceGUI.php.
References ILIAS\Repository\ctrl().
Here is the call graph for this function:| ilTestServiceGUI::getAdditionalUsrDataHtmlAndPopulateWindowTitle | ( | int | $active_id, |
| bool | $overwrite_anonymity = false |
||
| ) |
Returns the user data for a test results output.
Definition at line 528 of file class.ilTestServiceGUI.php.
References $user_id, ilObjTest\_getUserIdFromActiveId(), 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 580 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 648 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 775 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 277 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 181 of file class.ilTestServiceGUI.php.
References $participantData.
|
protected |
Definition at line 450 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 323 of file class.ilTestServiceGUI.php.
References $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 190 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 508 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 108 of file class.ilTestServiceGUI.php.
References $contextResultPresentation.
|
protected |
Definition at line 631 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 679 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 674 of file class.ilTestServiceGUI.php.
|
protected |
Definition at line 669 of file class.ilTestServiceGUI.php.
Referenced by ilTestEvalObjectiveOrientedGUI\showVirtualPassCmd().
Here is the caller graph for this function:
|
protected |
Definition at line 764 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 751 of file class.ilTestServiceGUI.php.
References ILIAS\News\Common\Table\$tpl, ilDatePresentation\formatDate(), IL_CAL_UNIX, ILIAS\Repository\lng(), ilDatePresentation\setUseRelativeDates(), HTML_Template_IT\setVariable(), ILIAS\UICore\GlobalTemplate\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 113 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 269 of file class.ilTestServiceGUI.php.
| ilTestServiceGUI::setParticipantData | ( | ilTestParticipantData | $participantData | ) |
Definition at line 176 of file class.ilTestServiceGUI.php.
References $participantData.
|
protected |
Definition at line 72 of file class.ilTestServiceGUI.php.
|
protected |
Definition at line 79 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 106 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 93 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 91 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 82 of file class.ilTestServiceGUI.php.
|
protected |
Definition at line 77 of file class.ilTestServiceGUI.php.
|
private |
Definition at line 104 of file class.ilTestServiceGUI.php.
|
protected |
Definition at line 102 of file class.ilTestServiceGUI.php.
|
protected |
Definition at line 99 of file class.ilTestServiceGUI.php.
Referenced by getParticipantData(), and setParticipantData().
|
protected |
Definition at line 81 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 95 of file class.ilTestServiceGUI.php.
|
protected |
Definition at line 83 of file class.ilTestServiceGUI.php.
|
protected |
Definition at line 88 of file class.ilTestServiceGUI.php.
|
protected |
Definition at line 89 of file class.ilTestServiceGUI.php.
|
protected |
Definition at line 57 of file class.ilTestServiceGUI.php.
|
protected |
Definition at line 92 of file class.ilTestServiceGUI.php.
Referenced by ilTestEvaluationGUI\outUserPassDetails().
|
protected |
Definition at line 87 of file class.ilTestServiceGUI.php.
|
protected |
Definition at line 86 of file class.ilTestServiceGUI.php.
|
protected |
Definition at line 76 of file class.ilTestServiceGUI.php.
|
protected |
Definition at line 100 of file class.ilTestServiceGUI.php.
|
protected |
Definition at line 98 of file class.ilTestServiceGUI.php.
Referenced by ilTestPlayerAbstractGUI\executeCommand().
|
protected |
Definition at line 97 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 94 of file class.ilTestServiceGUI.php.
|
protected |
Definition at line 84 of file class.ilTestServiceGUI.php.
|
protected |
Definition at line 85 of file class.ilTestServiceGUI.php.
|
protected |
Definition at line 80 of file class.ilTestServiceGUI.php.