ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
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 967 of file class.ilTestServiceGUI.php.
References isPdfDeliveryRequest().
Referenced by getFilteredTestResult(), ilTestEvaluationGUI\getFilteredTestResult(), getPassDetailsOverviewTableGUI(), ilTestEvaluationGUI\outParticipantsPassDetailsResetTableFilter(), ilTestEvaluationGUI\outParticipantsPassDetailsSetTableFilter(), ilTestEvaluationGUI\outUserPassDetailsResetTableFilter(), ilTestEvaluationGUI\outUserPassDetailsSetTableFilter(), ilTestEvalObjectiveOrientedGUI\showVirtualPassResetTableFilterCmd(), and ilTestEvalObjectiveOrientedGUI\showVirtualPassSetTableFilterCmd().
ilTestServiceGUI::buildPassOverviewTableGUI | ( | $targetGUI, | |
$targetCmd = '' |
|||
) |
Definition at line 337 of file class.ilTestServiceGUI.php.
References $_GET, $table, and getObjectiveOrientedContainer().
Referenced by ilTestEvaluationGUI\outParticipantsResultsOverview(), ilTestEvaluationGUI\outUserListOfAnswerPasses(), and ilTestEvaluationGUI\outUserResultsOverview().
|
protected |
Definition at line 1010 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 1091 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 271 of file class.ilTestServiceGUI.php.
References $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 623 of file class.ilTestServiceGUI.php.
References $t, $template, 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 290 of file class.ilTestServiceGUI.php.
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 687 of file class.ilTestServiceGUI.php.
References $_GET, $ilUser, $pass, $template, isPdfDeliveryRequest(), object, and assQuestionGUI\RENDER_PURPOSE_PRINT_PDF.
Referenced by outCorrectSolution(), and ilTestPlayerAbstractGUI\outCorrectSolution().
|
protected |
Definition at line 1020 of file class.ilTestServiceGUI.php.
References $ilDB, $pass, array, buildPassDetailsOverviewTableGUI(), object, and ilAssQuestionList\QUESTION_INSTANCE_TYPE_DUPLICATES.
|
protected |
integer | $activeId |
Definition at line 1000 of file class.ilTestServiceGUI.php.
Referenced by getResultsOfUserOutput(), ilTestEvaluationGUI\outParticipantsPassDetails(), ilTestEvaluationGUI\outParticipantsResultsOverview(), ilTestEvaluationGUI\outUserPassDetails(), and ilTestEvaluationGUI\outUserResultsOverview().
ilTestServiceGUI::getObjectiveOrientedContainer | ( | ) |
Definition at line 263 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 539 of file class.ilTestServiceGUI.php.
References $key, $pass, array, buildPassDetailsOverviewTableGUI(), isPdfDeliveryRequest(), 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 364 of file class.ilTestServiceGUI.php.
References $counter, $pass, $template, 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 464 of file class.ilTestServiceGUI.php.
References $counter, $pass, $template, 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(), ilObjTest\lookupLastTestPassAccess(), 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 925 of file class.ilTestServiceGUI.php.
References $i, $output, ilTestPDFGenerator\generatePDF(), getResultsHeadUserAndPass(), ilTestPDFGenerator\PDF_OUTPUT_DOWNLOAD, PDF_USER_RESULT, 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 875 of file class.ilTestServiceGUI.php.
References $pass, $template, 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 747 of file class.ilTestServiceGUI.php.
References $_GET, $_SESSION, $pass, $template, buildQuestionRelatedObjectivesList(), getAdditionalUsrDataHtmlAndPopulateWindowTitle(), getGradingMessageBuilder(), ilLOTestQuestionAdapter\getInstance(), getObjectiveOrientedContainer(), getPassDetailsOverviewTableGUI(), getPassListOfAnswers(), getResultsSignature(), isGradingMessageRequired(), ilObjTest\lookupExamId(), ilObjTest\lookupLastTestPassAccess(), object, and populatePassFinishDate().
ilTestServiceGUI::getResultsSignature | ( | ) |
Returns HTML code for a signature field.
Definition at line 597 of file class.ilTestServiceGUI.php.
References $template, 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 295 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 975 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 321 of file class.ilTestServiceGUI.php.
References $_GET.
Referenced by buildPassDetailsOverviewTableGUI(), ilTestEvaluationGUI\executeCommand(), getCorrectSolutionOutput(), getPassDetailsOverviewTableGUI(), 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 1111 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 1101 of file class.ilTestServiceGUI.php.
References outCorrectSolution().
|
protected |
string | $content |
Definition at line 1072 of file class.ilTestServiceGUI.php.
References ilTestPDFGenerator\generatePDF(), isPdfDeliveryRequest(), object, ilTestPDFGenerator\PDF_OUTPUT_DOWNLOAD, and PDF_USER_RESULT.
Referenced by ilTestEvalObjectiveOrientedGUI\showVirtualPassCmd().
ilTestServiceGUI::populatePassFinishDate | ( | $tpl, | |
$passFinishDate | |||
) |
ilTemplate | $tpl | |
int | $passFinishDate |
Definition at line 1188 of file class.ilTestServiceGUI.php.
References $tpl, 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 255 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(), populatePassFinishDate(), 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().