ILIAS
release_4-3 Revision
|
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 ($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 | |
$object = null | |
$service = null | |
$lng | |
$tpl | |
$ctrl | |
$ilias | |
$tree | |
$ref_id |
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 41 of file class.ilTestServiceGUI.php.
& ilTestServiceGUI::executeCommand | ( | ) |
execute command
Reimplemented in ilTestScoringGUI, ilTestOutputGUI, and ilTestEvaluationGUI.
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 ilTestEvaluationGUI\executeCommand(), ilTestOutputGUI\executeCommand(), ilTestScoringGUI\executeCommand(), and 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 831 of file class.ilTestServiceGUI.php.
References $_GET, $ilUser, and $pass.
Referenced by ilTestEvaluationGUI\outCorrectSolution(), and ilTestOutputGUI\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 263 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 | $targetcommand | The name of the ILIAS command for the "pass details" URL (optional) |
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 473 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 321 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 376 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, $ilUser, $pass, ilDatePresentation\formatDate(), and IL_CAL_UNIX.
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 1001 of file class.ilTestServiceGUI.php.
References getResultsHeadUserAndPass().
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 945 of file class.ilTestServiceGUI.php.
References $pass, and ilObjUser\_lookupLogin().
Referenced by getQuestionResultForTestUsers().
ilTestServiceGUI::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.
public
Definition at line 881 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 732 of file class.ilTestServiceGUI.php.
References ilUtil\getImagePath().
Referenced by getResultsOfUserOutput(), ilTestEvaluationGUI\outUserListOfAnswerPasses(), ilTestEvaluationGUI\outUserResultsOverview(), and ilTestOutputGUI\showListOfAnswers().
ilTestServiceGUI::getResultsUserdata | ( | $active_id, | |
$overwrite_anonymity = FALSE |
|||
) |
Returns the user data for a test results output.
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 758 of file class.ilTestServiceGUI.php.
References $t, ilObjUser\_lookupLogin(), and ilUtil\date_mysql2time().
Referenced by getResultsOfUserOutput(), ilTestEvaluationGUI\outParticipantsPassDetails(), ilTestEvaluationGUI\outParticipantsResultsOverview(), ilTestEvaluationGUI\outUserListOfAnswerPasses(), ilTestEvaluationGUI\outUserResultsOverview(), and ilTestOutputGUI\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 71 of file class.ilTestServiceGUI.php.
References $ilCtrl, $ilias, $lng, $tpl, and $tree.
Referenced by ilTestOutputGUI\__construct(), ilTestEvaluationGUI\ilTestEvaluationGUI(), and ilTestScoringGUI\ilTestScoringGUI().
ilTestServiceGUI::$ctrl |
Definition at line 59 of file class.ilTestServiceGUI.php.
ilTestServiceGUI::$ilias |
Definition at line 61 of file class.ilTestServiceGUI.php.
Referenced by ilTestOutputGUI\finishTest(), getResultsOfUserOutput(), ilTestServiceGUI(), ilTestEvaluationGUI\outParticipantsPassDetails(), ilTestEvaluationGUI\outParticipantsResultsOverview(), and ilTestEvaluationGUI\outUserResultsOverview().
ilTestServiceGUI::$lng |
ilTestServiceGUI::$object = null |
Definition at line 46 of file class.ilTestServiceGUI.php.
ilTestServiceGUI::$ref_id |
Definition at line 63 of file class.ilTestServiceGUI.php.
ilTestServiceGUI::$service = null |
Definition at line 51 of file class.ilTestServiceGUI.php.
ilTestServiceGUI::$tpl |
Definition at line 54 of file class.ilTestServiceGUI.php.
Referenced by ilTestEvaluationGUI\confirmDeletePass(), ilTestOutputGUI\fillQuestionRelatedNavigation(), getResultsOfUserOutput(), ilTestServiceGUI(), ilTestScoringGUI\saveManScoringParticipantScreen(), ilTestScoringGUI\showManScoringParticipantScreen(), and ilTestScoringGUI\showManScoringParticipantsTable().
ilTestServiceGUI::$tree |
Definition at line 62 of file class.ilTestServiceGUI.php.
Referenced by ilTestServiceGUI().