ILIAS
Release_5_0_x_branch Revision 61816
|
Output class for assessment test execution. More...
Public Member Functions | |
executeCommand () | |
Execute Command. | |
saveQuestionSolution ($force=FALSE) | |
saves the user input of a question | |
Public Member Functions inherited from ilTestPlayerAbstractGUI | |
__construct ($a_object) | |
ilTestOutputGUI constructor | |
saveTagsCmd () | |
Save tags for tagging gui. | |
outResultsToplistCmd () | |
updateWorkingTime () | |
updates working time and stores state saveresult to see if question has to be stored or not | |
outIntroductionPageCmd () | |
Creates the introduction page for a test. | |
isMaxProcessingTimeReached () | |
Checks wheather the maximum processing time is reached or not. | |
setAnonymousIdCmd () | |
Sets a session variable with the test access code for an anonymous test user. | |
getLockParameter () | |
displayCodeCmd () | |
codeConfirmedCmd () | |
handleUserSettings () | |
Handles some form parameters on starting and resuming a test. | |
calculateSequence () | |
Calculates the sequence to determine the next question. | |
redirectAfterAutosaveCmd () | |
autosaveCmd () | |
togglesidelistCmd () | |
Toggle side list. | |
backFromSummaryCmd () | |
Go back to the last active question from the summary. | |
finishTestCmd ($requires_confirmation=true) | |
redirectBackCmd () | |
showFinalStatementCmd () | |
getKioskHead () | |
outTestPage ($directfeedback) | |
Outputs the question of the active sequence. | |
checkOnlineTestAccess () | |
check access restrictions like client ip, partipating user etc. | |
isTestAccessible () | |
test accessible returns true if the user can perform the test | |
isNrOfTriesReached () | |
nr of tries exceeded | |
passDetails () | |
Output of the learners view of an existing test pass. | |
maxProcessingTimeReached () | |
Outputs a message when the maximum processing time is reached. | |
confirmSubmitAnswers () | |
confirm submit results if confirm then results are submitted and the screen will be redirected to the startpage of the test public | |
outProcessingTime ($active_id) | |
outQuestionSummaryCmd ($fullpage=true, $contextFinishTest=false, $obligationsNotAnswered=false, $obligationsFilter=false) | |
Output of a summary of all test questions for test participants. | |
outQuestionSummaryWithObligationsInfoCmd () | |
outObligationsOnlySummaryCmd () | |
showMaximumAllowedUsersReachedMessage () | |
backConfirmFinishCmd () | |
outCorrectSolution () | |
Creates an output of the solution of an answer compared to the correct solution. | |
showListOfAnswers ($active_id, $pass=NULL, $top_data="", $bottom_data="") | |
Creates an output of the list of answers for a test participant during the test (only the actual pass will be shown) | |
getContentBlockName () | |
Returns the name of the current content block (depends on the kiosk mode setting) | |
outUserResultsOverviewCmd () | |
outUserListOfAnswerPassesCmd () | |
Public Member Functions inherited from ilTestServiceGUI | |
isContextWithinTestPass () | |
setContextWithinTestPass ($contextWithinTestPass) | |
ilTestServiceGUI (ilObjTest $a_object) | |
The constructor takes the test object reference as parameter. | |
setParticipantData ($participantData) | |
getParticipantData () | |
getCommand ($cmd) | |
Retrieves the ilCtrl command. | |
getPassOverview ($active_id, $targetclass="", $targetcommand="", $short=FALSE, $hide_details=FALSE, $adminMode=false) | |
Returns the pass overview for a given active ID. | |
getPassListOfAnswers (&$result_array, $active_id, $pass, $show_solutions=FALSE, $only_answered_questions=FALSE, $show_question_only=FALSE, $show_reached_points=FALSE, $anchorNav=false) | |
Returns the list of answers of a users test pass. | |
getPassListOfAnswersWithScoring (&$result_array, $active_id, $pass, $show_solutions=FALSE) | |
Returns the list of answers of a users test pass and offers a scoring option. | |
getResultsSignature () | |
Returns HTML code for a signature field. | |
getResultsUserdata ($testSession, $active_id, $overwrite_anonymity=FALSE) | |
Returns the user data for a test results output. | |
getCorrectSolutionOutput ($question_id, $active_id, $pass) | |
Returns an output of the solution to an answer compared to the correct solution. | |
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. | |
getResultsHeadUserAndPass ($active_id, $pass) | |
Returns the user and pass data for a test results output. | |
getQuestionResultForTestUsers ($question_id, $test_id) | |
Creates a HTML representation for the results of a given question in a test. |
Private Member Functions | |
isValidSequenceElement ($sequenceElement) |
Additional Inherited Members | |
Data Fields inherited from ilTestPlayerAbstractGUI | |
$ref_id | |
$saveResult | |
$sequence | |
$cmdCtrl | |
$maxProcessingTimeReached | |
$endingTimeReached | |
Protected Attributes inherited from ilTestPlayerAbstractGUI | |
$passwordChecker | |
$processLocker | |
$testSession |
Output class for assessment test execution.
The ilTestOutputGUI class creates the output for the ilObjTestGUI class when learners execute a test. This saves some heap space because the ilObjTestGUI class will be much smaller then
Definition at line 20 of file class.ilTestOutputGUI.php.
|
protected |
Returns TRUE if the answers of the current user could be saved.
Reimplemented from ilTestPlayerAbstractGUI.
Definition at line 703 of file class.ilTestOutputGUI.php.
References ilTestPlayerAbstractGUI\isMaxProcessingTimeReached(), and ilTestPlayerAbstractGUI\isNrOfTriesReached().
Referenced by saveQuestionSolution().
|
protected |
Reimplemented from ilTestPlayerAbstractGUI.
Definition at line 936 of file class.ilTestOutputGUI.php.
ilTestOutputGUI::executeCommand | ( | ) |
Execute Command.
Reimplemented from ilTestServiceGUI.
Definition at line 25 of file class.ilTestOutputGUI.php.
References $_GET, $cmd, $ilDB, $ilUser, ilTestServiceGUI\$lng, $ret, ilTestServiceGUI\$testSequenceFactory, ilTestServiceGUI\$testSessionFactory, ilTestPlayerAbstractGUI\calculateSequence(), ilTestPlayerAbstractGUI\ensureExistingTestSession(), ilTestServiceGUI\getCommand(), ilTestPlayerAbstractGUI\handlePasswordProtectionRedirect(), ilYuiUtil\initConnectionWithAnimation(), iljQueryUtil\initjQuery(), and ilTestPlayerAbstractGUI\initProcessLocker().
|
protected |
Definition at line 920 of file class.ilTestOutputGUI.php.
References ilLOTestQuestionAdapter\filterQuestions().
Referenced by redirectQuestionCmd().
|
protected |
Definition at line 882 of file class.ilTestOutputGUI.php.
References $ilDB, ilTestServiceGUI\$tree, ilTestRandomQuestionSetBuilder\getInstance(), and performTearsAndAngerBrokenConfessionChecks().
Referenced by redirectQuestionCmd().
|
protected |
Definition at line 913 of file class.ilTestOutputGUI.php.
References ilLOSettings\isObjectiveTest().
Referenced by redirectQuestionCmd().
|
protected |
Reimplemented from ilTestPlayerAbstractGUI.
Definition at line 833 of file class.ilTestOutputGUI.php.
References $_GET, ilTestPlayerAbstractGUI\isParticipantsAnswerFixed(), saveQuestionSolution(), and ilTestPlayerAbstractGUI\updateWorkingTime().
|
protected |
Reimplemented from ilTestPlayerAbstractGUI.
Definition at line 688 of file class.ilTestOutputGUI.php.
References ilTestPlayerAbstractGUI\$sequence.
|
protected |
Reimplemented from ilTestPlayerAbstractGUI.
Definition at line 693 of file class.ilTestOutputGUI.php.
Referenced by outWorkingForm().
|
private |
Definition at line 400 of file class.ilTestOutputGUI.php.
Referenced by outWorkingForm().
|
protected |
Go to the next question.
Reimplemented from ilTestPlayerAbstractGUI.
Definition at line 132 of file class.ilTestOutputGUI.php.
References $_GET, ilTestPlayerAbstractGUI\isParticipantsAnswerFixed(), and saveQuestionSolution().
|
protected |
Creates the learners output of a question.
Reimplemented from ilTestPlayerAbstractGUI.
Definition at line 418 of file class.ilTestOutputGUI.php.
References $_SESSION, $ilLog, $ilUser, ilTestPlayerAbstractGUI\$sequence, ilObjTest\_getSolvedQuestions(), ilTestPlayerAbstractGUI\determineInlineScoreDisplay(), ilTestPlayerAbstractGUI\fillQuestionRelatedNavigation(), ilUtil\getJSLocation(), isLastQuestionInSequence(), ilTestPlayerAbstractGUI\isParticipantsAnswerFixed(), ilObjTest\isQuestionObligatory(), isValidSequenceElement(), OUTPUT_JAVASCRIPT, performCustomRedirect(), ilTestPlayerAbstractGUI\populateCancelButtonBlock(), ilTestPlayerAbstractGUI\populateCharSelector(), ilTestPlayerAbstractGUI\populateContentStyleBlock(), ilTestPlayerAbstractGUI\populateGenericFeedbackBlock(), ilTestPlayerAbstractGUI\populateNextButtonsLeadingToEndOfTest(), ilTestPlayerAbstractGUI\populateNextButtonsLeadingToQuestion(), ilTestPlayerAbstractGUI\populateNextButtonsLeadingToSummary(), ilTestPlayerAbstractGUI\populatePostponeButtons(), ilTestPlayerAbstractGUI\populatePreviousButtons(), ilTestPlayerAbstractGUI\populateQuestionMarkingBlockAsMarked(), ilTestPlayerAbstractGUI\populateQuestionMarkingBlockAsUnmarked(), ilTestPlayerAbstractGUI\populateScoreBlock(), ilTestPlayerAbstractGUI\populateSolutionBlock(), ilTestPlayerAbstractGUI\populateSpecificFeedbackBlock(), ilTestPlayerAbstractGUI\populateSummaryButtons(), ilTestPlayerAbstractGUI\populateSyntaxStyleBlock(), ilUtil\sendFailure(), and ilTestPlayerAbstractGUI\showSideList().
|
protected |
Reimplemented from ilTestPlayerAbstractGUI.
Definition at line 941 of file class.ilTestOutputGUI.php.
References ilObject\_getAllReferences(), ilLink\_getLink(), and ilUtil\redirect().
Referenced by outWorkingForm().
|
protected |
Definition at line 847 of file class.ilTestOutputGUI.php.
References $ilLog, and $ilUser.
Referenced by generateRandomTestPassForActiveUser().
|
protected |
Postpone a question to the end of the test.
public
Reimplemented from ilTestPlayerAbstractGUI.
Definition at line 820 of file class.ilTestOutputGUI.php.
References $_GET, ilTestPlayerAbstractGUI\isParticipantsAnswerFixed(), and saveQuestionSolution().
|
protected |
Go to the previous question.
Reimplemented from ilTestPlayerAbstractGUI.
Definition at line 148 of file class.ilTestOutputGUI.php.
References $_GET, ilTestPlayerAbstractGUI\isParticipantsAnswerFixed(), and saveQuestionSolution().
|
protected |
Called when a user answered a question to perform a redirect after POST.
This is called for security reasons to prevent users sending a form twice. –> description up to date ??
public
Definition at line 168 of file class.ilTestOutputGUI.php.
References $_GET, $_SESSION, $ilUser, ilObjTest\allObligationsAnswered(), ilTestPlayerAbstractGUI\calculateSequence(), filterTestSequenceByObjectives(), generateRandomTestPassForActiveUser(), getObjectiveOrientedContainerId(), ilTestPlayerAbstractGUI\outQuestionSummaryCmd(), ilTestPlayerAbstractGUI\outTestPage(), and ilUtil\sendInfo().
Referenced by startTestCmd().
ilTestOutputGUI::saveQuestionSolution | ( | $force = FALSE | ) |
saves the user input of a question
Reimplemented from ilTestPlayerAbstractGUI.
Definition at line 711 of file class.ilTestOutputGUI.php.
References $_GET, $_POST, $_SESSION, $ilUser, $pass, ilTestPlayerAbstractGUI\$saveResult, canSaveResult(), OUTPUT_JAVASCRIPT, updateContainerObjectivesWithAnsweredQuestion(), and ilTestPlayerAbstractGUI\updateWorkingTime().
Referenced by handleQuestionActionCmd(), nextQuestionCmd(), postponeQuestionCmd(), previousQuestionCmd(), showInstantResponseCmd(), and showQuestionListCmd().
|
protected |
Reimplemented from ilTestPlayerAbstractGUI.
Definition at line 772 of file class.ilTestOutputGUI.php.
References $_GET, ilTestPlayerAbstractGUI\isParticipantsAnswerFixed(), and saveQuestionSolution().
|
protected |
Definition at line 788 of file class.ilTestOutputGUI.php.
References $_GET, ilTestPlayerAbstractGUI\isParticipantsAnswerFixed(), and saveQuestionSolution().
|
protected |
Definition at line 809 of file class.ilTestOutputGUI.php.
|
protected |
Definition at line 123 of file class.ilTestOutputGUI.php.
References $_GET, and redirectQuestionCmd().
|
protected |
Definition at line 927 of file class.ilTestOutputGUI.php.
References ilTestSequence\saveToDb(), and ilLOTestQuestionAdapter\updateObjectiveStatus().
Referenced by saveQuestionSolution().