ILIAS
Release_4_4_x_branch Revision 61816
|
Service GUI class for tests. More...
Public Member Functions | |
ilTestServiceGUI (ilObjTest $a_object) | |
The constructor takes the test object reference as parameter. | |
& | executeCommand () |
execute command | |
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 ($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, $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 | |
$object = null | |
$service = null | |
$lng | |
$tpl | |
$ctrl | |
$ilias | |
$tree | |
$ref_id |
Protected Attributes | |
$testSessionFactory = null | |
$testSequenceFactory = null |
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::executeCommand | ( | ) |
execute command
Reimplemented in ilTestScoringGUI, ilTestPlayerDynamicQuestionSetGUI, ilTestEvaluationGUI, and ilTestOutputGUI.
Definition at line 89 of file class.ilTestServiceGUI.php.
References $cmd, $ret, and getCommand().
ilTestServiceGUI::getCommand | ( | $cmd | ) |
Retrieves the ilCtrl command.
public
Definition at line 109 of file class.ilTestServiceGUI.php.
References $cmd.
Referenced by ilTestOutputGUI\executeCommand(), ilTestEvaluationGUI\executeCommand(), executeCommand(), and ilTestScoringGUI\executeCommand().
ilTestServiceGUI::getCorrectSolutionOutput | ( | $question_id, | |
$active_id, | |||
$pass | |||
) |
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 827 of file class.ilTestServiceGUI.php.
References $_GET, $ilUser, and $pass.
Referenced by ilTestEvaluationGUI\outCorrectSolution(), and ilTestPlayerAbstractGUI\outCorrectSolution().
ilTestServiceGUI::getFinalStatement | ( | $active_id | ) |
Returns the final statement for a user.
array | An array containing the information on reached points, max points etc. ("test" key of ilObjTest::getTestResult) |
Definition at line 229 of file class.ilTestServiceGUI.php.
Referenced by getResultsOfUserOutput(), ilTestEvaluationGUI\outParticipantsPassDetails(), ilTestEvaluationGUI\outParticipantsResultsOverview(), ilTestEvaluationGUI\outUserPassDetails(), and ilTestEvaluationGUI\outUserResultsOverview().
ilTestServiceGUI::getPassDetailsOverview | ( | $result_array, | |
$active_id, | |||
$pass, | |||
$targetclass = "" , |
|||
$targetcommandsort = "" , |
|||
$targetcommanddetails = "" , |
|||
$standard_header = TRUE |
|||
) |
Returns the pass details overview for a given active ID and 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 |
string | $targetclass | The name of the ILIAS class for the "pass details" URL (optional) |
string | $targetcommandsort | |
string | $targetcommanddetails | The name of the ILIAS command which should be called for the details of an answer (optional) |
boolean | $standard_header | TRUE if the table headers should be plain text, FALSE if the table headers should be URL's for sortable columns |
Definition at line 459 of file class.ilTestServiceGUI.php.
References $_GET, $ilUser, and ilUtil\getImagePath().
Referenced by getResultsOfUserOutput(), ilTestEvaluationGUI\outParticipantsPassDetails(), ilTestEvaluationGUI\outUserPassDetails(), and ilTestEvaluationGUI\outUserResultsOverview().
ilTestServiceGUI::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.
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 287 of file class.ilTestServiceGUI.php.
References $pass.
Referenced by getResultsOfUserOutput(), ilTestEvaluationGUI\outParticipantsPassDetails(), ilTestEvaluationGUI\outUserListOfAnswerPasses(), ilTestEvaluationGUI\outUserPassDetails(), and ilTestEvaluationGUI\outUserResultsOverview().
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 360 of file class.ilTestServiceGUI.php.
References $pass, ilObjAssessmentFolder\_getManualScoring(), assQuestion\_getReachedPoints(), ilYuiUtil\initDomEvent(), and ilUtil\prepareFormOutput().
ilTestServiceGUI::getPassOverview | ( | $active_id, | |
$targetclass = "" , |
|||
$targetcommand = "" , |
|||
$short = FALSE , |
|||
$hide_details = FALSE |
|||
) |
Returns the pass overview for a given active ID.
Definition at line 122 of file class.ilTestServiceGUI.php.
References $_GET, $GLOBALS, $pass, $row, ilTestPassOverviewTableGUI\CONTEXT_LONG, and ilTestPassOverviewTableGUI\CONTEXT_SHORT.
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 1014 of file class.ilTestServiceGUI.php.
References ilTestPDFGenerator\generatePDF(), getResultsHeadUserAndPass(), and ilTestPDFGenerator\PDF_OUTPUT_DOWNLOAD.
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 959 of file class.ilTestServiceGUI.php.
References $pass, and ilObjUser\_lookupLogin().
Referenced by getQuestionResultForTestUsers().
ilTestServiceGUI::getResultsOfUserOutput | ( | $testSession, | |
$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.
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 884 of file class.ilTestServiceGUI.php.
References $_GET, $ilias, $pass, $tpl, getFinalStatement(), getPassDetailsOverview(), getPassListOfAnswers(), getResultsSignature(), and getResultsUserdata().
ilTestServiceGUI::getResultsSignature | ( | ) |
Returns HTML code for a signature field.
Definition at line 721 of file class.ilTestServiceGUI.php.
References ilDatePresentation\formatDate(), ilUtil\getImagePath(), IL_CAL_UNIX, ilDatePresentation\setUseRelativeDates(), and ilDatePresentation\useRelativeDates().
Referenced by getResultsOfUserOutput(), ilTestEvaluationGUI\outUserListOfAnswerPasses(), ilTestEvaluationGUI\outUserResultsOverview(), and ilTestPlayerAbstractGUI\showListOfAnswers().
ilTestServiceGUI::getResultsUserdata | ( | $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 750 of file class.ilTestServiceGUI.php.
References $t, ilObjUser\_lookupLogin(), ilUtil\date_mysql2time(), ilDatePresentation\formatDate(), IL_CAL_UNIX, ilDatePresentation\setUseRelativeDates(), and ilDatePresentation\useRelativeDates().
Referenced by getResultsOfUserOutput(), ilTestEvaluationGUI\outParticipantsPassDetails(), ilTestEvaluationGUI\outParticipantsResultsOverview(), ilTestEvaluationGUI\outUserListOfAnswerPasses(), ilTestEvaluationGUI\outUserResultsOverview(), and ilTestPlayerAbstractGUI\showListOfAnswers().
ilTestServiceGUI::ilTestServiceGUI | ( | ilObjTest | $a_object | ) |
The constructor takes the test object reference as parameter.
object | $a_object | Associated ilObjTest class public |
Definition at line 65 of file class.ilTestServiceGUI.php.
References $ilCtrl, $ilias, $lng, $tpl, and $tree.
Referenced by ilTestEvaluationGUI\__construct(), ilTestPlayerAbstractGUI\__construct(), and ilTestScoringGUI\ilTestScoringGUI().
ilTestServiceGUI::$ctrl |
Definition at line 39 of file class.ilTestServiceGUI.php.
ilTestServiceGUI::$ilias |
Definition at line 41 of file class.ilTestServiceGUI.php.
Referenced by ilTestPlayerAbstractGUI\archiveParticipantSubmission(), getResultsOfUserOutput(), ilTestServiceGUI(), and ilTestEvaluationGUI\outUserResultsOverview().
ilTestServiceGUI::$lng |
Definition at line 33 of file class.ilTestServiceGUI.php.
Referenced by ilTestScoringGUI\buildManScoringParticipantForm(), ilTestOutputGUI\executeCommand(), ilTestPlayerDynamicQuestionSetGUI\executeCommand(), ilTestPlayerAbstractGUI\fillQuestionRelatedNavigation(), ilTestServiceGUI(), ilTestScoringGUI\saveManScoringParticipantScreen(), and ilTestScoringGUI\showManScoringParticipantScreen().
ilTestServiceGUI::$object = null |
Definition at line 26 of file class.ilTestServiceGUI.php.
ilTestServiceGUI::$ref_id |
Definition at line 43 of file class.ilTestServiceGUI.php.
ilTestServiceGUI::$service = null |
Definition at line 31 of file class.ilTestServiceGUI.php.
|
protected |
Definition at line 57 of file class.ilTestServiceGUI.php.
Referenced by ilTestOutputGUI\executeCommand(), and ilTestPlayerDynamicQuestionSetGUI\executeCommand().
|
protected |
Definition at line 50 of file class.ilTestServiceGUI.php.
Referenced by ilTestOutputGUI\executeCommand(), and ilTestPlayerDynamicQuestionSetGUI\executeCommand().
ilTestServiceGUI::$tpl |
Definition at line 34 of file class.ilTestServiceGUI.php.
Referenced by ilTestEvaluationGUI\confirmDeletePass(), ilTestPlayerAbstractGUI\fillQuestionRelatedNavigation(), getResultsOfUserOutput(), ilTestServiceGUI(), ilTestScoringGUI\saveManScoringParticipantScreen(), ilTestScoringGUI\showManScoringParticipantScreen(), and ilTestScoringGUI\showManScoringParticipantsTable().
ilTestServiceGUI::$tree |
Definition at line 42 of file class.ilTestServiceGUI.php.
Referenced by ilTestPlayerDynamicQuestionSetGUI\executeCommand(), ilTestOutputGUI\generateRandomTestPassForActiveUser(), and ilTestServiceGUI().