ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
|
Service GUI class for tests. More...
Public Member Functions | |
isContextResultPresentation () | |
setContextResultPresentation ($contextResultPresentation) | |
__construct (ilObjTest $a_object) | |
The constructor takes the test object reference as parameter. More... | |
setParticipantData ($participantData) | |
getParticipantData () | |
getPassOverviewTableData (ilTestSession $testSession, $passes, $withResults) | |
setObjectiveOrientedContainer (ilTestObjectiveOrientedContainer $objectiveOrientedContainer) | |
getObjectiveOrientedContainer () | |
executeCommand () | |
execute command More... | |
getCommand ($cmd) | |
Retrieves the ilCtrl command. More... | |
buildPassOverviewTableGUI ($targetGUI, $targetCmd='') | |
getPassListOfAnswers (&$result_array, $active_id, $pass, $show_solutions=FALSE, $only_answered_questions=FALSE, $show_question_only=FALSE, $show_reached_points=FALSE, $anchorNav=false, ilTestQuestionRelatedObjectivesList $objectivesList=null, ilTestResultHeaderLabelBuilder $testResultHeaderLabelBuilder=null) | |
Returns the list of answers of a users test pass. More... | |
getPassListOfAnswersWithScoring (&$result_array, $active_id, $pass, $show_solutions=FALSE) | |
Returns the list of answers of a users test pass and offers a scoring option. 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 $objectivesList=null) | |
Returns an output of the solution to an answer compared to the correct solution. More... | |
getResultsOfUserOutput ($testSession, $active_id, $pass, $targetGUI, $show_pass_details=TRUE, $show_answers=TRUE, $show_question_only=FALSE, $show_reached_points=FALSE) | |
Output of the pass overview for a test called by a test participant. More... | |
getResultsHeadUserAndPass ($active_id, $pass) | |
Returns the user and pass data for a test results output. More... | |
getQuestionResultForTestUsers ($question_id, $test_id) | |
Creates a HTML representation for the results of a given question in a test. More... | |
populatePassFinishDate ($tpl, $passFinishDate) | |
Data Fields | |
$object = null | |
$service = null | |
$lng | |
$tpl | |
$ctrl | |
$ilias | |
$tree | |
$ref_id | |
Protected Member Functions | |
handleTabs ($activeTabId) | |
isPdfDeliveryRequest () | |
getPassDetailsOverviewTableGUI ($result_array, $active_id, $pass, $targetGUI, $targetCMD, $questionDetailsCMD, $questionAnchorNav, ilTestQuestionRelatedObjectivesList $objectivesList=null, $multipleObjectivesInvolved=true) | |
buildPassDetailsOverviewTableGUI ($targetGUI, $targetCMD) | |
isGradingMessageRequired () | |
getGradingMessageBuilder ($activeId) | |
buildQuestionRelatedObjectivesList (ilLOTestQuestionAdapter $objectivesAdapter, ilTestQuestionSequence $testSequence) | |
getFilteredTestResult ($active_id, $pass, $considerHiddenQuestions, $considerOptionalQuestions) | |
populateContent ($content) | |
buildUserTestResultsToolbarGUI () | |
outCorrectSolutionCmd () | |
outCorrectSolution () | |
Creates an output of the solution of an answer compared to the correct solution. More... | |
Protected Attributes | |
$db | |
$tabs | |
$objCache | |
$testSessionFactory = null | |
$testSequenceFactory = null | |
$participantData | |
Private Attributes | |
$objectiveOrientedContainer | |
$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 21 of file class.ilTestServiceGUI.php.
ilTestServiceGUI::__construct | ( | ilObjTest | $a_object | ) |
The constructor takes the test object reference as parameter.
object | $a_object | Associated ilObjTest class public |
Definition at line 108 of file class.ilTestServiceGUI.php.
References $ilCtrl, $ilDB, $ilias, $lng, $tpl, and $tree.
|
protected |
Definition at line 1034 of file class.ilTestServiceGUI.php.
References isPdfDeliveryRequest().
Referenced by getFilteredTestResult(), ilTestEvaluationGUI\getFilteredTestResult(), getPassDetailsOverviewTableGUI(), ilTestEvaluationGUI\outUserPassDetailsResetTableFilter(), ilTestEvaluationGUI\outUserPassDetailsSetTableFilter(), ilTestEvalObjectiveOrientedGUI\showVirtualPassResetTableFilterCmd(), and ilTestEvalObjectiveOrientedGUI\showVirtualPassSetTableFilterCmd().
ilTestServiceGUI::buildPassOverviewTableGUI | ( | $targetGUI, | |
$targetCmd = '' |
|||
) |
Definition at line 354 of file class.ilTestServiceGUI.php.
References $_GET, and getObjectiveOrientedContainer().
Referenced by ilTestEvaluationGUI\outParticipantsResultsOverview(), ilTestEvaluationGUI\outUserListOfAnswerPasses(), and ilTestEvaluationGUI\outUserResultsOverview().
|
protected |
Definition at line 1081 of file class.ilTestServiceGUI.php.
References ilLOTestQuestionAdapter\buildQuestionRelatedObjectiveList().
Referenced by ilTestPlayerAbstractGUI\archiveParticipantSubmission(), ilTestSubmissionReviewGUI\buildUserReviewOutput(), getPassOverviewTableData(), getResultsOfUserOutput(), outCorrectSolution(), ilTestEvaluationGUI\outParticipantsPassDetails(), ilTestEvaluationGUI\outUserListOfAnswerPasses(), ilTestEvaluationGUI\outUserPassDetails(), and ilTestEvalObjectiveOrientedGUI\showVirtualPassCmd().
|
protected |
Definition at line 1170 of file class.ilTestServiceGUI.php.
References object.
Referenced by ilTestEvaluationGUI\outParticipantsPassDetails(), ilTestEvaluationGUI\outParticipantsResultsOverview(), ilTestEvaluationGUI\outUserPassDetails(), ilTestEvaluationGUI\outUserResultsOverview(), and ilTestEvalObjectiveOrientedGUI\showVirtualPassCmd().
ilTestServiceGUI::executeCommand | ( | ) |
execute command
Definition at line 286 of file class.ilTestServiceGUI.php.
References $cmd, $ret, and getCommand().
ilTestServiceGUI::getAdditionalUsrDataHtmlAndPopulateWindowTitle | ( | $testSession, | |
$active_id, | |||
$overwrite_anonymity = FALSE |
|||
) |
Returns the user data for a test results output.
ilTestSession|ilTestSessionDynamicQuestionSet | ||
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 670 of file class.ilTestServiceGUI.php.
References $t, ilObjUser\_lookupLogin(), getObjectiveOrientedContainer(), and object.
Referenced by getResultsOfUserOutput(), ilTestEvaluationGUI\outParticipantsPassDetails(), ilTestEvaluationGUI\outParticipantsResultsOverview(), ilTestEvaluationGUI\outUserListOfAnswerPasses(), ilTestEvaluationGUI\outUserPassDetails(), ilTestEvaluationGUI\outUserResultsOverview(), and ilTestPlayerAbstractGUI\showListOfAnswers().
ilTestServiceGUI::getCommand | ( | $cmd | ) |
Retrieves the ilCtrl command.
public
Definition at line 306 of file class.ilTestServiceGUI.php.
References $cmd.
Referenced by ilTestScoringByQuestionsGUI\__construct(), ilTestOutputGUI\executeCommand(), ilTestEvaluationGUI\executeCommand(), ilTestScoringGUI\executeCommand(), and executeCommand().
ilTestServiceGUI::getCorrectSolutionOutput | ( | $question_id, | |
$active_id, | |||
$pass, | |||
ilTestQuestionRelatedObjectivesList | $objectivesList = 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 739 of file class.ilTestServiceGUI.php.
References $_GET, $ilUser, $pass, isPdfDeliveryRequest(), object, and assQuestionGUI\RENDER_PURPOSE_PRINT_PDF.
Referenced by outCorrectSolution(), and ilTestPlayerAbstractGUI\outCorrectSolution().
|
protected |
Definition at line 1091 of file class.ilTestServiceGUI.php.
References $ilDB, $pass, array, buildPassDetailsOverviewTableGUI(), object, and ilAssQuestionList\QUESTION_INSTANCE_TYPE_DUPLICATES.
|
protected |
integer | $activeId |
Definition at line 1071 of file class.ilTestServiceGUI.php.
Referenced by getResultsOfUserOutput(), ilTestEvaluationGUI\outParticipantsPassDetails(), ilTestEvaluationGUI\outParticipantsResultsOverview(), ilTestEvaluationGUI\outUserPassDetails(), and ilTestEvaluationGUI\outUserResultsOverview().
ilTestServiceGUI::getObjectiveOrientedContainer | ( | ) |
Definition at line 278 of file class.ilTestServiceGUI.php.
References $objectiveOrientedContainer.
Referenced by ilTestPlayerAbstractGUI\archiveParticipantSubmission(), buildPassOverviewTableGUI(), ilTestSubmissionReviewGUI\buildUserReviewOutput(), ilTestOutputGUI\executeCommand(), getAdditionalUsrDataHtmlAndPopulateWindowTitle(), getPassOverviewTableData(), getResultsOfUserOutput(), handleTabs(), isGradingMessageRequired(), outCorrectSolution(), ilTestEvaluationGUI\outParticipantsPassDetails(), ilTestEvaluationGUI\outParticipantsResultsOverview(), ilTestEvaluationGUI\outUserListOfAnswerPasses(), ilTestEvaluationGUI\outUserPassDetails(), ilTestEvaluationGUI\outUserResultsOverview(), ilTestPlayerAbstractGUI\showListOfAnswers(), ilTestEvalObjectiveOrientedGUI\showVirtualPassCmd(), and ilTestOutputGUI\startTestCmd().
ilTestServiceGUI::getParticipantData | ( | ) |
|
protected |
Definition at line 581 of file class.ilTestServiceGUI.php.
References $pass, array, buildPassDetailsOverviewTableGUI(), and object.
Referenced by getResultsOfUserOutput(), ilTestEvaluationGUI\outParticipantsPassDetails(), ilTestEvaluationGUI\outUserPassDetails(), and 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 | $objectivesList = null , |
||
ilTestResultHeaderLabelBuilder | $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 381 of file class.ilTestServiceGUI.php.
References $counter, $pass, isContextResultPresentation(), isPdfDeliveryRequest(), object, and assQuestionGUI\RENDER_PURPOSE_PRINT_PDF.
Referenced by getResultsOfUserOutput(), ilTestEvaluationGUI\outParticipantsPassDetails(), ilTestEvaluationGUI\outUserListOfAnswerPasses(), ilTestEvaluationGUI\outUserPassDetails(), and ilTestEvalObjectiveOrientedGUI\showVirtualPassCmd().
ilTestServiceGUI::getPassListOfAnswersWithScoring | ( | & | $result_array, |
$active_id, | |||
$pass, | |||
$show_solutions = FALSE |
|||
) |
Returns the list of answers of a users test pass and offers a scoring option.
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 498 of file class.ilTestServiceGUI.php.
References $counter, $pass, ilObjAssessmentFolder\_getManualScoring(), assQuestion\_getReachedPoints(), ilYuiUtil\initDomEvent(), object, and ilUtil\prepareFormOutput().
ilTestServiceGUI::getPassOverviewTableData | ( | ilTestSession | $testSession, |
$passes, | |||
$withResults | |||
) |
ilTestSession | $testSession | |
$short |
Definition at line 155 of file class.ilTestServiceGUI.php.
References $data, $pass, $row, array, buildQuestionRelatedObjectivesList(), ilTestSession\getActiveId(), ilLOTestQuestionAdapter\getInstance(), getObjectiveOrientedContainer(), ilAssQuestionHintTracking\getRequestRequestStatisticDataRegisterByActiveId(), and object.
Referenced by ilTestEvaluationGUI\outParticipantsResultsOverview(), ilTestEvaluationGUI\outUserListOfAnswerPasses(), and ilTestEvaluationGUI\outUserResultsOverview().
ilTestServiceGUI::getQuestionResultForTestUsers | ( | $question_id, | |
$test_id | |||
) |
Creates a HTML representation for the results of a given question in a test.
integer | $question_id | The original id of the question |
integer | $test_id | The test id |
Definition at line 988 of file class.ilTestServiceGUI.php.
References $output, ilTestPDFGenerator\generatePDF(), getResultsHeadUserAndPass(), ilTestPDFGenerator\PDF_OUTPUT_DOWNLOAD, ilPDFGeneration\prepareGeneration(), and assQuestionGUI\RENDER_PURPOSE_PRINT_PDF.
Referenced by ilTestEvaluationGUI\exportQuestionForAllParticipants().
ilTestServiceGUI::getResultsHeadUserAndPass | ( | $active_id, | |
$pass | |||
) |
Returns the user and pass data for a test results output.
integer | $active_id | The active ID of the user |
Definition at line 933 of file class.ilTestServiceGUI.php.
References $pass, ilObjUser\_lookupLogin(), and object.
Referenced by getQuestionResultForTestUsers().
ilTestServiceGUI::getResultsOfUserOutput | ( | $testSession, | |
$active_id, | |||
$pass, | |||
$targetGUI, | |||
$show_pass_details = TRUE , |
|||
$show_answers = TRUE , |
|||
$show_question_only = FALSE , |
|||
$show_reached_points = FALSE |
|||
) |
Output of the pass overview for a test called by a test participant.
ilTestSession | ilTestSessionDynamicQuestionSet | $testSession | |
integer | $active_id | |
integer | $pass | |
boolean | $show_pass_details | |
boolean | $show_answers | |
boolean | $show_question_only | |
boolean | $show_reached_points | public |
Definition at line 807 of file class.ilTestServiceGUI.php.
References $_GET, $_SESSION, $pass, buildQuestionRelatedObjectivesList(), getAdditionalUsrDataHtmlAndPopulateWindowTitle(), getGradingMessageBuilder(), ilLOTestQuestionAdapter\getInstance(), getObjectiveOrientedContainer(), getPassDetailsOverviewTableGUI(), getPassListOfAnswers(), getResultsSignature(), isGradingMessageRequired(), ilObjTest\lookupExamId(), object, and populatePassFinishDate().
ilTestServiceGUI::getResultsSignature | ( | ) |
Returns HTML code for a signature field.
Definition at line 641 of file class.ilTestServiceGUI.php.
References ilDatePresentation\formatDate(), ilUtil\getImagePath(), IL_CAL_UNIX, object, ilDatePresentation\setUseRelativeDates(), time, and ilDatePresentation\useRelativeDates().
Referenced by getResultsOfUserOutput(), ilTestEvaluationGUI\outUserListOfAnswerPasses(), ilTestEvaluationGUI\outUserPassDetails(), and ilTestPlayerAbstractGUI\showListOfAnswers().
|
protected |
Definition at line 311 of file class.ilTestServiceGUI.php.
References ilLink\_getLink(), and getObjectiveOrientedContainer().
Referenced by ilTestEvalObjectiveOrientedGUI\executeCommand(), ilTestEvaluationGUI\outUserPassDetails(), and ilTestEvaluationGUI\outUserResultsOverview().
ilTestServiceGUI::isContextResultPresentation | ( | ) |
Definition at line 89 of file class.ilTestServiceGUI.php.
References $contextResultPresentation.
Referenced by getPassListOfAnswers().
|
protected |
Definition at line 1042 of file class.ilTestServiceGUI.php.
References getObjectiveOrientedContainer(), and object.
Referenced by getResultsOfUserOutput(), ilTestEvaluationGUI\outParticipantsPassDetails(), ilTestEvaluationGUI\outParticipantsResultsOverview(), ilTestEvaluationGUI\outUserPassDetails(), and ilTestEvaluationGUI\outUserResultsOverview().
|
protected |
Definition at line 336 of file class.ilTestServiceGUI.php.
References $_GET.
Referenced by buildPassDetailsOverviewTableGUI(), ilTestEvaluationGUI\executeCommand(), getCorrectSolutionOutput(), getPassListOfAnswers(), ilTestEvaluationGUI\outParticipantsPassDetails(), ilTestEvaluationGUI\outParticipantsResultsOverview(), ilTestEvaluationGUI\outUserPassDetails(), ilTestEvaluationGUI\outUserResultsOverview(), populateContent(), and ilTestEvalObjectiveOrientedGUI\showVirtualPassCmd().
|
protected |
Creates an output of the solution of an answer compared to the correct solution.
public
Definition at line 1190 of file class.ilTestServiceGUI.php.
References $_GET, $pass, ilObjTestGUI\accessViolationRedirect(), buildQuestionRelatedObjectivesList(), ilObjStyleSheet\getContentStylePath(), getCorrectSolutionOutput(), ilLOTestQuestionAdapter\getInstance(), getObjectiveOrientedContainer(), ilUtil\getStyleSheetLocation(), ilObjStyleSheet\getSyntaxStylePath(), object, and ilUtil\sendInfo().
Referenced by outCorrectSolutionCmd().
|
protected |
Definition at line 1180 of file class.ilTestServiceGUI.php.
References outCorrectSolution().
|
protected |
string | $content |
Definition at line 1151 of file class.ilTestServiceGUI.php.
References ilTestPDFGenerator\generatePDF(), isPdfDeliveryRequest(), object, and ilTestPDFGenerator\PDF_OUTPUT_DOWNLOAD.
Referenced by ilTestEvalObjectiveOrientedGUI\showVirtualPassCmd().
ilTestServiceGUI::populatePassFinishDate | ( | $tpl, | |
$passFinishDate | |||
) |
ilTemplate | $tpl | |
int | $passFinishDate |
Definition at line 1275 of file class.ilTestServiceGUI.php.
References ilDatePresentation\formatDate(), IL_CAL_UNIX, ilDatePresentation\setUseRelativeDates(), and ilDatePresentation\useRelativeDates().
Referenced by getResultsOfUserOutput(), ilTestEvaluationGUI\outParticipantsPassDetails(), and ilTestEvaluationGUI\outUserPassDetails().
ilTestServiceGUI::setContextResultPresentation | ( | $contextResultPresentation | ) |
boolean | $contextResultPresentation |
Definition at line 97 of file class.ilTestServiceGUI.php.
References $contextResultPresentation.
Referenced by ilTestEvaluationGUI\outUserListOfAnswerPasses().
ilTestServiceGUI::setObjectiveOrientedContainer | ( | ilTestObjectiveOrientedContainer | $objectiveOrientedContainer | ) |
ilTestObjectiveOrientedContainer | $objectiveOrientedContainer |
Definition at line 270 of file class.ilTestServiceGUI.php.
References $objectiveOrientedContainer.
ilTestServiceGUI::setParticipantData | ( | $participantData | ) |
\ilTestParticipantData | $participantData |
Definition at line 137 of file class.ilTestServiceGUI.php.
References $participantData.
|
private |
Definition at line 84 of file class.ilTestServiceGUI.php.
Referenced by isContextResultPresentation(), and setContextResultPresentation().
ilTestServiceGUI::$ctrl |
Definition at line 44 of file class.ilTestServiceGUI.php.
|
protected |
Definition at line 36 of file class.ilTestServiceGUI.php.
ilTestServiceGUI::$ilias |
Definition at line 56 of file class.ilTestServiceGUI.php.
Referenced by __construct(), and ilTestPlayerAbstractGUI\archiveParticipantSubmission().
ilTestServiceGUI::$lng |
Definition at line 38 of file class.ilTestServiceGUI.php.
Referenced by ilTestScoringByQuestionsGUI\__construct(), ilTestPlayerAbstractGUI\__construct(), __construct(), ilTestScoringGUI\buildManScoringParticipantForm(), ilTestOutputGUI\executeCommand(), ilTestPlayerDynamicQuestionSetGUI\executeCommand(), ilTestScoringGUI\saveManScoringParticipantScreen(), and ilTestScoringGUI\showManScoringParticipantScreen().
|
protected |
Definition at line 54 of file class.ilTestServiceGUI.php.
ilTestServiceGUI::$object = null |
Definition at line 26 of file class.ilTestServiceGUI.php.
|
private |
Definition at line 82 of file class.ilTestServiceGUI.php.
Referenced by getObjectiveOrientedContainer(), and setObjectiveOrientedContainer().
|
protected |
Definition at line 77 of file class.ilTestServiceGUI.php.
Referenced by getParticipantData(), ilTestScoringGUI\saveNextManScoringParticipantScreen(), and setParticipantData().
ilTestServiceGUI::$ref_id |
Definition at line 58 of file class.ilTestServiceGUI.php.
ilTestServiceGUI::$service = null |
Definition at line 31 of file class.ilTestServiceGUI.php.
|
protected |
Definition at line 49 of file class.ilTestServiceGUI.php.
|
protected |
Definition at line 72 of file class.ilTestServiceGUI.php.
Referenced by ilTestOutputGUI\executeCommand(), and ilTestPlayerDynamicQuestionSetGUI\executeCommand().
|
protected |
Definition at line 65 of file class.ilTestServiceGUI.php.
Referenced by ilTestOutputGUI\executeCommand(), and ilTestPlayerDynamicQuestionSetGUI\executeCommand().
ilTestServiceGUI::$tpl |
Definition at line 39 of file class.ilTestServiceGUI.php.
Referenced by ilTestScoringByQuestionsGUI\__construct(), __construct(), ilTestEvaluationGUI\confirmDeletePass(), ilTestPlayerAbstractGUI\getQuestionGuiInstance(), ilTestPlayerDynamicQuestionSetGUI\outCurrentlyFinishedPage(), ilTestEvaluationGUI\outUserPassDetails(), ilTestPlayerAbstractGUI\populateDiscardSolutionModal(), ilTestPlayerAbstractGUI\populateInstantResponseModal(), ilTestPlayerAbstractGUI\populateNavWhenChangedModal(), ilTestScoringGUI\saveManScoringParticipantScreen(), ilTestScoringGUI\showManScoringParticipantScreen(), ilTestScoringGUI\showManScoringParticipantsTable(), and ilTestEvalObjectiveOrientedGUI\showVirtualPassCmd().
ilTestServiceGUI::$tree |
Definition at line 57 of file class.ilTestServiceGUI.php.
Referenced by __construct(), ilTestPlayerDynamicQuestionSetGUI\executeCommand(), and ilTestOutputGUI\generateRandomTestPassForActiveUser().