ILIAS
Release_4_1_x_branch Revision 61804
|
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 863 of file class.ilTestOutputGUI.php.
References $_POST, $ilLog, $res, $result, canSaveResult(), exit, and saveQuestionSolution().
ilTestOutputGUI::backConfirmFinish | ( | ) |
Definition at line 1634 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 1065 of file class.ilTestOutputGUI.php.
ilTestOutputGUI::calculateSequence | ( | ) |
Calculates the sequence to determine the next question.
public
Definition at line 831 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 173 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 1313 of file class.ilTestOutputGUI.php.
References $user, and ilUtil\sendInfo().
ilTestOutputGUI::checkPassword | ( | ) |
Check the password, a user entered for test access.
public
Definition at line 466 of file class.ilTestOutputGUI.php.
References $_POST, $_SESSION, and ilUtil\sendFailure().
ilTestOutputGUI::codeConfirmed | ( | ) |
Definition at line 588 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 1078 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 1090 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 1413 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 1000 of file class.ilTestOutputGUI.php.
References saveQuestionSolution().
ilTestOutputGUI::displayCode | ( | ) |
Definition at line 577 of file class.ilTestOutputGUI.php.
References getContentBlockName().
|
private |
handle endingTimeReached
Definition at line 1380 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(), and ilYuiUtil\initConnectionWithAnimation().
ilTestOutputGUI::finishListOfAnswers | ( | ) |
Definition at line 1656 of file class.ilTestOutputGUI.php.
References confirmFinishTest().
ilTestOutputGUI::finishTest | ( | $confirm = true | ) |
Finish the test.
Finish the test
public
Definition at line 1116 of file class.ilTestOutputGUI.php.
References $_SESSION, $ilAuth, ilTestServiceGUI\$ilias, confirmFinishTest(), redirectBack(), and showListOfAnswers().
Referenced by confirmFinish().
|
private |
Returns the name of the current content block (depends on the kiosk mode setting)
Definition at line 1777 of file class.ilTestOutputGUI.php.
Referenced by confirmFinishTest(), confirmSubmitAnswers(), displayCode(), outQuestionSummary(), outTestPage(), redirectAfterAutosave(), showFinalStatement(), showListOfAnswers(), showMaximumAllowedUsersReachedMessage(), and showPasswordProtectionPage().
|
private |
Definition at line 1223 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 1048 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 615 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 198 of file class.ilTestOutputGUI.php.
Referenced by canSaveResult(), isTestAccessible(), and outTestPage().
ilTestOutputGUI::isNrOfTriesReached | ( | ) |
nr of tries exceeded
Definition at line 1349 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 1338 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 1403 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 908 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 1666 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 185 of file class.ilTestOutputGUI.php.
Referenced by endingTimeReached(), maxProcessingTimeReached(), and redirectBack().
ilTestOutputGUI::outProcessingTime | ( | $active_id | ) |
Definition at line 1433 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 1529 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 1246 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 1796 of file class.ilTestOutputGUI.php.
ilTestOutputGUI::outUserResultsOverview | ( | ) |
Definition at line 1791 of file class.ilTestOutputGUI.php.
ilTestOutputGUI::outWorkingForm | ( | $sequence = "" , |
|
$test_id, | |||
$postpone_allowed, | |||
$directfeedback = 0 |
|||
) |
Creates the learners output of a question.
Definition at line 216 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 1361 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 936 of file class.ilTestOutputGUI.php.
References saveQuestionSolution().
ilTestOutputGUI::previous | ( | ) |
Go to the previous question.
Go to the previous question
public
Definition at line 922 of file class.ilTestOutputGUI.php.
References saveQuestionSolution().
ilTestOutputGUI::redirectAfterAutosave | ( | ) |
Definition at line 854 of file class.ilTestOutputGUI.php.
References getContentBlockName().
ilTestOutputGUI::redirectBack | ( | ) |
Definition at line 1185 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 656 of file class.ilTestOutputGUI.php.
References $_GET, $_SESSION, calculateSequence(), outQuestionSummary(), outTestPage(), and ilUtil\sendInfo().
ilTestOutputGUI::resetmarked | ( | ) |
Set a question unsolved.
Set a question unsolved
public
Definition at line 986 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 601 of file class.ilTestOutputGUI.php.
References handleStartCommands(), and showMaximumAllowedUsersReachedMessage().
ilTestOutputGUI::saveQuestionSolution | ( | $force = FALSE | ) |
saves the user input of a question
Definition at line 113 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 1014 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 496 of file class.ilTestOutputGUI.php.
ilTestOutputGUI::setmarked | ( | ) |
Set a question solved.
Set a question solved
public
Definition at line 972 of file class.ilTestOutputGUI.php.
References saveQuestionSolution().
ilTestOutputGUI::showFinalStatement | ( | ) |
Definition at line 1212 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 1704 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 1623 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 451 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 513 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 532 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 950 of file class.ilTestOutputGUI.php.
References saveQuestionSolution().
ilTestOutputGUI::togglesidelist | ( | ) |
Toggle side list.
Definition at line 891 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 102 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().