ILIAS
Release_5_0_x_branch Revision 61816
|
Service GUI class for tests. More...
Public Member Functions | |
isContextWithinTestPass () | |
setContextWithinTestPass ($contextWithinTestPass) | |
ilTestServiceGUI (ilObjTest $a_object) | |
The constructor takes the test object reference as parameter. | |
setParticipantData ($participantData) | |
getParticipantData () | |
& | executeCommand () |
execute command | |
getCommand ($cmd) | |
Retrieves the ilCtrl command. | |
getPassOverview ($active_id, $targetclass="", $targetcommand="", $short=FALSE, $hide_details=FALSE, $adminMode=false) | |
Returns the pass overview for a given active ID. | |
getPassListOfAnswers (&$result_array, $active_id, $pass, $show_solutions=FALSE, $only_answered_questions=FALSE, $show_question_only=FALSE, $show_reached_points=FALSE, $anchorNav=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. | |
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, $targetGUI, $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 Member Functions | |
isPdfDeliveryRequest () | |
getPassDetailsOverview ($result_array, $active_id, $pass, $targetGUI, $targetCMD, $questionDetailsCMD, $questionAnchorNav) | |
buildPassDetailsOverviewTableGUI ($targetGUI, $targetCMD) | |
isGradingMessageRequired () | |
getGradingMessage ($activeId) |
Protected Attributes | |
$db | |
$testSessionFactory = null | |
$testSequenceFactory = null | |
$participantData |
Private Attributes | |
$contextWithinTestPass = false |
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.
|
protected |
Definition at line 879 of file class.ilTestServiceGUI.php.
References isPdfDeliveryRequest().
Referenced by ilTestEvaluationGUI\getFilteredTestResult(), getPassDetailsOverview(), ilTestEvaluationGUI\outUserPassDetailsResetTableFilter(), and ilTestEvaluationGUI\outUserPassDetailsSetTableFilter().
& ilTestServiceGUI::executeCommand | ( | ) |
execute command
Reimplemented in ilTestScoringGUI, ilTestPlayerDynamicQuestionSetGUI, ilTestEvaluationGUI, and ilTestOutputGUI.
Definition at line 134 of file class.ilTestServiceGUI.php.
References $cmd, $ret, and getCommand().
ilTestServiceGUI::getCommand | ( | $cmd | ) |
Retrieves the ilCtrl command.
public
Definition at line 154 of file class.ilTestServiceGUI.php.
References $cmd.
Referenced by ilTestOutputGUI\executeCommand(), ilTestEvaluationGUI\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 629 of file class.ilTestServiceGUI.php.
References $_GET, $ilUser, and $pass.
Referenced by ilTestEvaluationGUI\outCorrectSolution(), and ilTestPlayerAbstractGUI\outCorrectSolution().
|
protected |
integer | $activeId |
Definition at line 911 of file class.ilTestServiceGUI.php.
Referenced by getResultsOfUserOutput(), ilTestEvaluationGUI\outParticipantsPassDetails(), ilTestEvaluationGUI\outParticipantsResultsOverview(), ilTestEvaluationGUI\outUserPassDetails(), and ilTestEvaluationGUI\outUserResultsOverview().
ilTestServiceGUI::getParticipantData | ( | ) |
|
protected |
Definition at line 476 of file class.ilTestServiceGUI.php.
References $pass, and buildPassDetailsOverviewTableGUI().
Referenced by getResultsOfUserOutput(), ilTestEvaluationGUI\outParticipantsPassDetails(), and ilTestEvaluationGUI\outUserPassDetails().
ilTestServiceGUI::getPassListOfAnswers | ( | & | $result_array, |
$active_id, | |||
$pass, | |||
$show_solutions = FALSE , |
|||
$only_answered_questions = FALSE , |
|||
$show_question_only = FALSE , |
|||
$show_reached_points = FALSE , |
|||
$anchorNav = 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 305 of file class.ilTestServiceGUI.php.
References $pass, and isContextWithinTestPass().
Referenced by getResultsOfUserOutput(), ilTestEvaluationGUI\outParticipantsPassDetails(), ilTestEvaluationGUI\outUserListOfAnswerPasses(), and ilTestEvaluationGUI\outUserPassDetails().
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 393 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 , |
|||
$adminMode = false |
|||
) |
Returns the pass overview for a given active ID.
Definition at line 185 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 838 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 783 of file class.ilTestServiceGUI.php.
References $pass, and ilObjUser\_lookupLogin().
Referenced by getQuestionResultForTestUsers().
ilTestServiceGUI::getResultsOfUserOutput | ( | $testSession, | |
$active_id, | |||
$pass, | |||
$targetGUI, | |||
$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 686 of file class.ilTestServiceGUI.php.
References $_GET, $_SESSION, $ilias, $pass, $tpl, getGradingMessage(), getPassDetailsOverview(), getPassListOfAnswers(), getResultsSignature(), getResultsUserdata(), and isGradingMessageRequired().
ilTestServiceGUI::getResultsSignature | ( | ) |
Returns HTML code for a signature field.
Definition at line 523 of file class.ilTestServiceGUI.php.
References ilDatePresentation\formatDate(), ilUtil\getImagePath(), IL_CAL_UNIX, ilDatePresentation\setUseRelativeDates(), and ilDatePresentation\useRelativeDates().
Referenced by getResultsOfUserOutput(), ilTestEvaluationGUI\outUserListOfAnswerPasses(), ilTestEvaluationGUI\outUserPassDetails(), 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 552 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\outUserPassDetails(), 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 93 of file class.ilTestServiceGUI.php.
References $ilCtrl, $ilDB, $ilias, $lng, $tpl, and $tree.
Referenced by ilTestEvaluationGUI\__construct(), ilTestPlayerAbstractGUI\__construct(), and ilTestScoringGUI\ilTestScoringGUI().
ilTestServiceGUI::isContextWithinTestPass | ( | ) |
Definition at line 74 of file class.ilTestServiceGUI.php.
References $contextWithinTestPass.
Referenced by getPassListOfAnswers().
|
protected |
Definition at line 887 of file class.ilTestServiceGUI.php.
Referenced by getResultsOfUserOutput(), ilTestEvaluationGUI\outParticipantsPassDetails(), ilTestEvaluationGUI\outParticipantsResultsOverview(), ilTestEvaluationGUI\outUserPassDetails(), and ilTestEvaluationGUI\outUserResultsOverview().
|
protected |
Definition at line 162 of file class.ilTestServiceGUI.php.
References $_GET.
Referenced by buildPassDetailsOverviewTableGUI(), ilTestEvaluationGUI\executeCommand(), ilTestEvaluationGUI\outParticipantsPassDetails(), ilTestEvaluationGUI\outUserPassDetails(), and ilTestEvaluationGUI\outUserResultsOverview().
ilTestServiceGUI::setContextWithinTestPass | ( | $contextWithinTestPass | ) |
boolean | $contextWithinTestPass |
Definition at line 82 of file class.ilTestServiceGUI.php.
References $contextWithinTestPass.
ilTestServiceGUI::setParticipantData | ( | $participantData | ) |
\ilTestParticipantData | $participantData |
Definition at line 118 of file class.ilTestServiceGUI.php.
References $participantData.
|
private |
Definition at line 69 of file class.ilTestServiceGUI.php.
Referenced by isContextWithinTestPass(), and setContextWithinTestPass().
ilTestServiceGUI::$ctrl |
Definition at line 44 of file class.ilTestServiceGUI.php.
|
protected |
Definition at line 36 of file class.ilTestServiceGUI.php.
ilTestServiceGUI::$ilias |
Definition at line 46 of file class.ilTestServiceGUI.php.
Referenced by ilTestPlayerAbstractGUI\archiveParticipantSubmission(), getResultsOfUserOutput(), and ilTestServiceGUI().
ilTestServiceGUI::$lng |
Definition at line 38 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.
|
protected |
Definition at line 67 of file class.ilTestServiceGUI.php.
Referenced by getParticipantData(), ilTestScoringGUI\saveNextManScoringParticipantScreen(), and setParticipantData().
ilTestServiceGUI::$ref_id |
Definition at line 48 of file class.ilTestServiceGUI.php.
ilTestServiceGUI::$service = null |
Definition at line 31 of file class.ilTestServiceGUI.php.
|
protected |
Definition at line 62 of file class.ilTestServiceGUI.php.
Referenced by ilTestOutputGUI\executeCommand(), and ilTestPlayerDynamicQuestionSetGUI\executeCommand().
|
protected |
Definition at line 55 of file class.ilTestServiceGUI.php.
Referenced by ilTestOutputGUI\executeCommand(), and ilTestPlayerDynamicQuestionSetGUI\executeCommand().
ilTestServiceGUI::$tpl |
Definition at line 39 of file class.ilTestServiceGUI.php.
Referenced by ilTestEvaluationGUI\confirmDeletePass(), ilTestPlayerAbstractGUI\fillQuestionRelatedNavigation(), getResultsOfUserOutput(), ilTestServiceGUI(), ilTestEvaluationGUI\outUserPassDetails(), ilTestScoringGUI\saveManScoringParticipantScreen(), ilTestScoringGUI\showManScoringParticipantScreen(), and ilTestScoringGUI\showManScoringParticipantsTable().
ilTestServiceGUI::$tree |
Definition at line 47 of file class.ilTestServiceGUI.php.
Referenced by ilTestPlayerDynamicQuestionSetGUI\executeCommand(), ilTestOutputGUI\generateRandomTestPassForActiveUser(), and ilTestServiceGUI().