ILIAS
Release_4_1_x_branch Revision 61804
|
Service GUI class for tests. More...
Public Member Functions | |
ilTestServiceGUI ($a_object) | |
ilTestScoringGUI constructor | |
& | 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 | |
$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 39 of file class.ilTestServiceGUI.php.
& ilTestServiceGUI::executeCommand | ( | ) |
execute command
Reimplemented in ilTestOutputGUI, ilTestEvaluationGUI, and ilTestScoringGUI.
Definition at line 73 of file class.ilTestServiceGUI.php.
References $cmd, $ret, and getCommand().
ilTestServiceGUI::getCommand | ( | $cmd | ) |
Retrieves the ilCtrl command.
Retrieves the ilCtrl command
public
Definition at line 95 of file class.ilTestServiceGUI.php.
References $cmd.
Referenced by ilTestScoringGUI\executeCommand(), ilTestEvaluationGUI\executeCommand(), ilTestOutputGUI\executeCommand(), and executeCommand().
ilTestServiceGUI::getCorrectSolutionOutput | ( | $question_id, | |
$active_id, | |||
$pass | |||
) |
Returns an output of the solution to an answer compared to the correct solution.
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 778 of file class.ilTestServiceGUI.php.
References $pass.
Referenced by ilTestEvaluationGUI\outCorrectSolution(), and ilTestOutputGUI\outCorrectSolution().
ilTestServiceGUI::getFinalStatement | ( | $active_id | ) |
Returns the final statement for a user.
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 219 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.
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 427 of file class.ilTestServiceGUI.php.
References $_GET, 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 275 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 328 of file class.ilTestServiceGUI.php.
References $pass, ilObjAssessmentFolder\_getManualScoring(), assQuestion\_getReachedPoints(), ilYuiUtil\initDomEvent(), and ilUtil\prepareFormOutput().
Referenced by ilTestScoringGUI\manscoring().
ilTestServiceGUI::getPassOverview | ( | $active_id, | |
$targetclass = "" , |
|||
$targetcommand = "" , |
|||
$short = FALSE , |
|||
$hide_details = FALSE |
|||
) |
Returns the pass overview for a given active ID.
Returns the pass overview for a given active ID
Definition at line 108 of file class.ilTestServiceGUI.php.
References $pass, ilDatePresentation\formatDate(), and IL_CAL_UNIX.
Referenced by ilTestScoringGUI\manscoring(), 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 940 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 884 of file class.ilTestServiceGUI.php.
References $pass, $user, 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.
Output of the pass overview for a test called by a test participant
public
Definition at line 820 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.
Returns HTML code for a signature field
Definition at line 675 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.
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 703 of file class.ilTestServiceGUI.php.
References $t, $user, ilObjUser\_lookupLogin(), and ilUtil\date_mysql2time().
Referenced by getResultsOfUserOutput(), ilTestEvaluationGUI\outParticipantsPassDetails(), ilTestEvaluationGUI\outParticipantsResultsOverview(), ilTestEvaluationGUI\outUserListOfAnswerPasses(), ilTestEvaluationGUI\outUserResultsOverview(), and ilTestOutputGUI\showListOfAnswers().
ilTestServiceGUI::ilTestServiceGUI | ( | $a_object | ) |
ilTestScoringGUI constructor
The constructor takes the test object reference as parameter
object | $a_object | Associated ilObjTest class public |
Definition at line 57 of file class.ilTestServiceGUI.php.
References $ilCtrl, $ilias, $lng, $tpl, and $tree.
Referenced by ilTestEvaluationGUI\ilTestEvaluationGUI(), ilTestOutputGUI\ilTestOutputGUI(), and ilTestScoringGUI\ilTestScoringGUI().
ilTestServiceGUI::$ctrl |
Definition at line 44 of file class.ilTestServiceGUI.php.
ilTestServiceGUI::$ilias |
Definition at line 45 of file class.ilTestServiceGUI.php.
Referenced by ilTestOutputGUI\finishTest(), getResultsOfUserOutput(), ilTestServiceGUI(), ilTestEvaluationGUI\outParticipantsPassDetails(), ilTestEvaluationGUI\outParticipantsResultsOverview(), and ilTestEvaluationGUI\outUserResultsOverview().
ilTestServiceGUI::$lng |
Definition at line 42 of file class.ilTestServiceGUI.php.
Referenced by ilTestServiceGUI().
ilTestServiceGUI::$object |
Definition at line 41 of file class.ilTestServiceGUI.php.
ilTestServiceGUI::$ref_id |
Definition at line 47 of file class.ilTestServiceGUI.php.
ilTestServiceGUI::$tpl |
Definition at line 43 of file class.ilTestServiceGUI.php.
Referenced by getResultsOfUserOutput(), and ilTestServiceGUI().
ilTestServiceGUI::$tree |
Definition at line 46 of file class.ilTestServiceGUI.php.
Referenced by ilTestServiceGUI().