ILIAS
Release_4_2_x_branch Revision 61807
|
Output class for assessment test execution. More...
Public Member Functions | |
ilTestOutputGUI ($a_object) | |
ilSurveyExecutionGUI constructor | |
saveTags () | |
executeCommand () | |
execute command | |
updateWorkingTime () | |
updates working time and stores state saveresult to see if question has to be stored or not | |
saveQuestionSolution ($force=FALSE) | |
saves the user input of a question | |
canSaveResult () | |
Returns TRUE if the answers of the current user could be saved. | |
outIntroductionPage () | |
Creates the introduction page for a test. | |
isMaxProcessingTimeReached () | |
Checks wheather the maximum processing time is reached or not. | |
outWorkingForm ($sequence="", $test_id, $postpone_allowed, $directfeedback=0) | |
Creates the learners output of a question. | |
showPasswordProtectionPage () | |
Displays a password protection page when a test password is set. | |
checkPassword () | |
Check the password, a user entered for test access. | |
setAnonymousId () | |
Sets a session variable with the test access code for an anonymous test user. | |
start () | |
Start a test for the first time. | |
startTest () | |
Start a test for the first time after a redirect. | |
displayCode () | |
codeConfirmed () | |
resume () | |
Resume a test at the last position. | |
handleStartCommands () | |
Handles some form parameters on starting and resuming a test. | |
redirectQuestion () | |
Called when a user answered a question to perform a redirect after POST. | |
calculateSequence () | |
Calculates the sequence to determine the next question. | |
redirectAfterAutosave () | |
autosave () | |
togglesidelist () | |
Toggle side list. | |
next () | |
Go to the next question. | |
previous () | |
Go to the previous question. | |
postpone () | |
Postpone a question to the end of the test. | |
summary () | |
Show the question summary in online exams. | |
setmarked () | |
Set a question solved. | |
resetmarked () | |
Set a question unsolved. | |
directfeedback () | |
The direct feedback button was hit to show an instant feedback. | |
selectImagemapRegion () | |
Select an image map region in an image map question. | |
gotoQuestion () | |
Go to the question with the active sequence. | |
backFromSummary () | |
Go back to the last active question from the summary. | |
confirmFinish () | |
The final submission of a test was confirmed. | |
confirmFinishTest () | |
Confirmation of the tests final submission. | |
finishTest ($confirm=true) | |
Finish the test. | |
redirectBack () | |
showFinalStatement () | |
outTestPage () | |
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) | |
outQuestionSummary ($fullpage=true) | |
Output of a summary of all test questions for test participants. | |
showMaximumAllowedUsersReachedMessage () | |
backConfirmFinish () | |
finishListOfAnswers () | |
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) | |
outUserResultsOverview () | |
outUserListOfAnswerPasses () | |
Public Member Functions inherited from ilTestServiceGUI | |
ilTestServiceGUI ($a_object) | |
ilTestScoringGUI constructor | |
getCommand ($cmd) | |
Retrieves the ilCtrl command. | |
getPassOverview ($active_id, $targetclass="", $targetcommand="", $short=FALSE, $hide_details=FALSE) | |
Returns the pass overview for a given active ID. | |
getFinalStatement ($active_id) | |
Returns the final statement for a user. | |
getPassListOfAnswers (&$result_array, $active_id, $pass, $show_solutions=FALSE, $only_answered_questions=FALSE, $show_question_only=FALSE, $show_reached_points=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. | |
getPassDetailsOverview ($result_array, $active_id, $pass, $targetclass="", $targetcommandsort="", $targetcommanddetails="", $standard_header=TRUE) | |
Returns the pass details overview for a given active ID and pass. | |
getResultsSignature () | |
Returns HTML code for a signature field. | |
getResultsUserdata ($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 ($active_id, $pass, $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. |
Data Fields | |
$ref_id | |
$saveResult | |
$sequence | |
$cmdCtrl | |
$maxProcessingTimeReached | |
$endingTimeReached | |
Data Fields inherited from ilTestServiceGUI | |
$object | |
$lng | |
$tpl | |
$ctrl | |
$ilias | |
$tree | |
$ref_id |
Private Member Functions | |
getKioskHead () | |
endingTimeReached () | |
handle endingTimeReached | |
getContentBlockName () | |
Returns the name of the current content block (depends on the kiosk mode setting) |
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.
ilTestOutputGUI::autosave | ( | ) |
Definition at line 875 of file class.ilTestOutputGUI.php.
References $_POST, $ilLog, $res, $result, canSaveResult(), exit, and saveQuestionSolution().
ilTestOutputGUI::backConfirmFinish | ( | ) |
Definition at line 1649 of file class.ilTestOutputGUI.php.
References showListOfAnswers().
ilTestOutputGUI::backFromSummary | ( | ) |
Go back to the last active question from the summary.
Go back to the last active question from the summary
public
Definition at line 1077 of file class.ilTestOutputGUI.php.
ilTestOutputGUI::calculateSequence | ( | ) |
Calculates the sequence to determine the next question.
public
Definition at line 843 of file class.ilTestOutputGUI.php.
References $_GET, and $sequence.
Referenced by redirectQuestion().
ilTestOutputGUI::canSaveResult | ( | ) |
Returns TRUE if the answers of the current user could be saved.
Returns TRUE if the answers of the current user could be saved
Definition at line 174 of file class.ilTestOutputGUI.php.
References isMaxProcessingTimeReached(), and isNrOfTriesReached().
Referenced by autosave(), and saveQuestionSolution().
ilTestOutputGUI::checkOnlineTestAccess | ( | ) |
check access restrictions like client ip, partipating user etc.
check access restrictions like client ip, partipating user etc.
public
Definition at line 1328 of file class.ilTestOutputGUI.php.
References ilUtil\sendInfo().
ilTestOutputGUI::checkPassword | ( | ) |
Check the password, a user entered for test access.
public
Definition at line 467 of file class.ilTestOutputGUI.php.
References $_POST, $_SESSION, and ilUtil\sendFailure().
ilTestOutputGUI::codeConfirmed | ( | ) |
Definition at line 589 of file class.ilTestOutputGUI.php.
ilTestOutputGUI::confirmFinish | ( | ) |
The final submission of a test was confirmed.
The final submission of a test was confirmed
public
Definition at line 1090 of file class.ilTestOutputGUI.php.
References finishTest().
ilTestOutputGUI::confirmFinishTest | ( | ) |
Confirmation of the tests final submission.
Confirmation of the tests final submission
public
Definition at line 1102 of file class.ilTestOutputGUI.php.
References getContentBlockName().
Referenced by finishListOfAnswers(), and finishTest().
ilTestOutputGUI::confirmSubmitAnswers | ( | ) |
confirm submit results if confirm then results are submitted and the screen will be redirected to the startpage of the test public
Definition at line 1428 of file class.ilTestOutputGUI.php.
References getContentBlockName().
ilTestOutputGUI::directfeedback | ( | ) |
The direct feedback button was hit to show an instant feedback.
The direct feedback button was hit to show an instant feedback
public
Definition at line 1012 of file class.ilTestOutputGUI.php.
References saveQuestionSolution().
ilTestOutputGUI::displayCode | ( | ) |
Definition at line 578 of file class.ilTestOutputGUI.php.
References getContentBlockName().
|
private |
handle endingTimeReached
Definition at line 1395 of file class.ilTestOutputGUI.php.
References ilFormat\ftimestamp2datetimeDB(), outIntroductionPage(), and ilUtil\sendInfo().
Referenced by outTestPage().
ilTestOutputGUI::executeCommand | ( | ) |
execute command
Reimplemented from ilTestServiceGUI.
Definition at line 62 of file class.ilTestOutputGUI.php.
References $_GET, $cmd, $ret, ilTestServiceGUI\getCommand(), ilYuiUtil\initConnectionWithAnimation(), and iljQueryUtil\initjQuery().
ilTestOutputGUI::finishListOfAnswers | ( | ) |
Definition at line 1671 of file class.ilTestOutputGUI.php.
References confirmFinishTest().
ilTestOutputGUI::finishTest | ( | $confirm = true | ) |
Finish the test.
Finish the test
public
Definition at line 1128 of file class.ilTestOutputGUI.php.
References $_SESSION, ilTestServiceGUI\$ilias, confirmFinishTest(), ilSession\getIdleValue(), redirectBack(), and showListOfAnswers().
Referenced by confirmFinish().
|
private |
Returns the name of the current content block (depends on the kiosk mode setting)
Definition at line 1792 of file class.ilTestOutputGUI.php.
Referenced by confirmFinishTest(), confirmSubmitAnswers(), displayCode(), outQuestionSummary(), outTestPage(), redirectAfterAutosave(), showFinalStatement(), showListOfAnswers(), showMaximumAllowedUsersReachedMessage(), and showPasswordProtectionPage().
|
private |
Definition at line 1238 of file class.ilTestOutputGUI.php.
Referenced by outQuestionSummary(), and outTestPage().
ilTestOutputGUI::gotoQuestion | ( | ) |
Go to the question with the active sequence.
Go to the question with the active sequence
public
Definition at line 1060 of file class.ilTestOutputGUI.php.
References $_GET, $_POST, $_SESSION, and saveQuestionSolution().
ilTestOutputGUI::handleStartCommands | ( | ) |
Handles some form parameters on starting and resuming a test.
Definition at line 616 of file class.ilTestOutputGUI.php.
References $_POST.
Referenced by resume(), and start().
ilTestOutputGUI::ilTestOutputGUI | ( | $a_object | ) |
ilSurveyExecutionGUI constructor
The constructor takes possible arguments an creates an instance of the ilSurveyExecutionGUI object.
object | $a_object | Associated ilObjSurvey class public |
Definition at line 38 of file class.ilTestOutputGUI.php.
References $_GET, and ilTestServiceGUI\ilTestServiceGUI().
ilTestOutputGUI::isMaxProcessingTimeReached | ( | ) |
Checks wheather the maximum processing time is reached or not.
Checks wheather the maximum processing time is reached or not
Definition at line 199 of file class.ilTestOutputGUI.php.
Referenced by canSaveResult(), isTestAccessible(), and outTestPage().
ilTestOutputGUI::isNrOfTriesReached | ( | ) |
nr of tries exceeded
Definition at line 1364 of file class.ilTestOutputGUI.php.
Referenced by canSaveResult(), and isTestAccessible().
ilTestOutputGUI::isTestAccessible | ( | ) |
test accessible returns true if the user can perform the test
Definition at line 1353 of file class.ilTestOutputGUI.php.
References isMaxProcessingTimeReached(), and isNrOfTriesReached().
ilTestOutputGUI::maxProcessingTimeReached | ( | ) |
Outputs a message when the maximum processing time is reached.
Outputs a message when the maximum processing time is reached
public
Definition at line 1418 of file class.ilTestOutputGUI.php.
References outIntroductionPage().
Referenced by outTestPage().
ilTestOutputGUI::next | ( | ) |
Go to the next question.
Go to the next question
public
Definition at line 920 of file class.ilTestOutputGUI.php.
References saveQuestionSolution().
ilTestOutputGUI::outCorrectSolution | ( | ) |
Creates an output of the solution of an answer compared to the correct solution.
public
Definition at line 1681 of file class.ilTestOutputGUI.php.
References $_GET, ilObjStyleSheet\getContentStylePath(), ilTestServiceGUI\getCorrectSolutionOutput(), ilUtil\getStyleSheetLocation(), and ilObjStyleSheet\getSyntaxStylePath().
ilTestOutputGUI::outIntroductionPage | ( | ) |
Creates the introduction page for a test.
Creates the introduction page for a test
public
Definition at line 186 of file class.ilTestOutputGUI.php.
Referenced by endingTimeReached(), maxProcessingTimeReached(), and redirectBack().
ilTestOutputGUI::outProcessingTime | ( | $active_id | ) |
Definition at line 1448 of file class.ilTestOutputGUI.php.
References ilDatePresentation\formatDate(), and IL_CAL_FKT_GETDATE.
Referenced by outQuestionSummary(), and outTestPage().
ilTestOutputGUI::outQuestionSummary | ( | $fullpage = true | ) |
Output of a summary of all test questions for test participants.
Definition at line 1544 of file class.ilTestOutputGUI.php.
References $_GET, $data, $row, $sequence, ilObjTest\_getSolvedQuestions(), getContentBlockName(), getKioskHead(), outProcessingTime(), ilUtil\prepareFormOutput(), and ilTable2GUI\setData().
Referenced by outWorkingForm(), and redirectQuestion().
ilTestOutputGUI::outTestPage | ( | ) |
Outputs the question of the active sequence.
Definition at line 1261 of file class.ilTestOutputGUI.php.
References $_GET, endingTimeReached(), getContentBlockName(), getKioskHead(), isMaxProcessingTimeReached(), maxProcessingTimeReached(), outProcessingTime(), outWorkingForm(), ilUtil\sendInfo(), and TEST_POSTPONE.
Referenced by redirectQuestion().
ilTestOutputGUI::outUserListOfAnswerPasses | ( | ) |
Definition at line 1811 of file class.ilTestOutputGUI.php.
ilTestOutputGUI::outUserResultsOverview | ( | ) |
Definition at line 1806 of file class.ilTestOutputGUI.php.
ilTestOutputGUI::outWorkingForm | ( | $sequence = "" , |
|
$test_id, | |||
$postpone_allowed, | |||
$directfeedback = 0 |
|||
) |
Creates the learners output of a question.
Definition at line 217 of file class.ilTestOutputGUI.php.
References $_GET, $_SESSION, $sequence, ilObjTest\_getSolvedQuestions(), ilObjStyleSheet\getContentStylePath(), ilUtil\getImagePath(), ilUtil\getJSLocation(), ilUtil\getStyleSheetLocation(), ilObjStyleSheet\getSyntaxStylePath(), OUTPUT_JAVASCRIPT, and outQuestionSummary().
Referenced by outTestPage().
ilTestOutputGUI::passDetails | ( | ) |
Output of the learners view of an existing test pass.
Output of the learners view of an existing test pass
public
Definition at line 1376 of file class.ilTestOutputGUI.php.
References $_GET.
ilTestOutputGUI::postpone | ( | ) |
Postpone a question to the end of the test.
Postpone a question to the end of the test
public
Definition at line 948 of file class.ilTestOutputGUI.php.
References saveQuestionSolution().
ilTestOutputGUI::previous | ( | ) |
Go to the previous question.
Go to the previous question
public
Definition at line 934 of file class.ilTestOutputGUI.php.
References saveQuestionSolution().
ilTestOutputGUI::redirectAfterAutosave | ( | ) |
Definition at line 866 of file class.ilTestOutputGUI.php.
References getContentBlockName().
ilTestOutputGUI::redirectBack | ( | ) |
Definition at line 1200 of file class.ilTestOutputGUI.php.
References $_GET, and outIntroductionPage().
Referenced by finishTest().
ilTestOutputGUI::redirectQuestion | ( | ) |
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.
public
Definition at line 657 of file class.ilTestOutputGUI.php.
References $_GET, $_SESSION, assQuestion\_updateTestPassResults(), calculateSequence(), outQuestionSummary(), outTestPage(), and ilUtil\sendInfo().
ilTestOutputGUI::resetmarked | ( | ) |
Set a question unsolved.
Set a question unsolved
public
Definition at line 998 of file class.ilTestOutputGUI.php.
References saveQuestionSolution().
ilTestOutputGUI::resume | ( | ) |
Resume a test at the last position.
Resume a test at the last position
public
Definition at line 602 of file class.ilTestOutputGUI.php.
References handleStartCommands(), and showMaximumAllowedUsersReachedMessage().
ilTestOutputGUI::saveQuestionSolution | ( | $force = FALSE | ) |
saves the user input of a question
Definition at line 114 of file class.ilTestOutputGUI.php.
References $_GET, $_POST, $_SESSION, $pass, $saveResult, canSaveResult(), OUTPUT_JAVASCRIPT, and updateWorkingTime().
Referenced by autosave(), directfeedback(), gotoQuestion(), next(), postpone(), previous(), resetmarked(), selectImagemapRegion(), setmarked(), summary(), and togglesidelist().
ilTestOutputGUI::saveTags | ( | ) |
Definition at line 50 of file class.ilTestOutputGUI.php.
ilTestOutputGUI::selectImagemapRegion | ( | ) |
Select an image map region in an image map question.
Select an image map region in an image map question
public
Definition at line 1026 of file class.ilTestOutputGUI.php.
References $_POST, saveQuestionSolution(), and togglesidelist().
ilTestOutputGUI::setAnonymousId | ( | ) |
Sets a session variable with the test access code for an anonymous test user.
Sets a session variable with the test access code for an anonymous test user
public
Definition at line 497 of file class.ilTestOutputGUI.php.
ilTestOutputGUI::setmarked | ( | ) |
Set a question solved.
Set a question solved
public
Definition at line 984 of file class.ilTestOutputGUI.php.
References saveQuestionSolution().
ilTestOutputGUI::showFinalStatement | ( | ) |
Definition at line 1227 of file class.ilTestOutputGUI.php.
References $_GET, and getContentBlockName().
ilTestOutputGUI::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)
integer | $active_id | Active id of the participant |
integer | $pass | Test pass of the participant |
boolean | $testnavigation | Deceides wheather to show a navigation for tests or not public |
Definition at line 1719 of file class.ilTestOutputGUI.php.
References $pass, getContentBlockName(), ilTestServiceGUI\getResultsSignature(), ilTestServiceGUI\getResultsUserdata(), and ilUtil\getStyleSheetLocation().
Referenced by backConfirmFinish(), and finishTest().
ilTestOutputGUI::showMaximumAllowedUsersReachedMessage | ( | ) |
Definition at line 1638 of file class.ilTestOutputGUI.php.
References getContentBlockName().
Referenced by resume(), and startTest().
ilTestOutputGUI::showPasswordProtectionPage | ( | ) |
Displays a password protection page when a test password is set.
public
Definition at line 452 of file class.ilTestOutputGUI.php.
References getContentBlockName().
Referenced by startTest().
ilTestOutputGUI::start | ( | ) |
Start a test for the first time.
Start a test for the first time. This method contains a lock to prevent multiple submissions by the start test button
public
Definition at line 514 of file class.ilTestOutputGUI.php.
References $_POST, $_SESSION, and handleStartCommands().
ilTestOutputGUI::startTest | ( | ) |
Start a test for the first time after a redirect.
public
Definition at line 533 of file class.ilTestOutputGUI.php.
References $_SESSION, showMaximumAllowedUsersReachedMessage(), and showPasswordProtectionPage().
ilTestOutputGUI::summary | ( | ) |
Show the question summary in online exams.
Show the question summary in online exams
public
Definition at line 962 of file class.ilTestOutputGUI.php.
References saveQuestionSolution().
ilTestOutputGUI::togglesidelist | ( | ) |
Toggle side list.
Definition at line 903 of file class.ilTestOutputGUI.php.
References saveQuestionSolution().
Referenced by selectImagemapRegion().
ilTestOutputGUI::updateWorkingTime | ( | ) |
updates working time and stores state saveresult to see if question has to be stored or not
Definition at line 103 of file class.ilTestOutputGUI.php.
References $_SESSION.
Referenced by saveQuestionSolution().
ilTestOutputGUI::$cmdCtrl |
Definition at line 26 of file class.ilTestOutputGUI.php.
ilTestOutputGUI::$endingTimeReached |
Definition at line 28 of file class.ilTestOutputGUI.php.
ilTestOutputGUI::$maxProcessingTimeReached |
Definition at line 27 of file class.ilTestOutputGUI.php.
ilTestOutputGUI::$ref_id |
Definition at line 22 of file class.ilTestOutputGUI.php.
ilTestOutputGUI::$saveResult |
Definition at line 24 of file class.ilTestOutputGUI.php.
Referenced by saveQuestionSolution().
ilTestOutputGUI::$sequence |
Definition at line 25 of file class.ilTestOutputGUI.php.
Referenced by calculateSequence(), outQuestionSummary(), and outWorkingForm().