|
ILIAS
release_8 Revision v8.24
|
Test question filter. More...
Collaboration diagram for ilLOTestQuestionAdapter:Public Member Functions | |
| __construct (int $a_user_id, int $a_course_id) | |
| getTestRefId () | |
| setTestRefId (int $testRefId) | |
| notifyTestStart (ilTestSession $a_test_session, int $a_test_obj_id) | |
| Called from learning objective test on actual test start. More... | |
| prepareTestPass (ilTestSession $a_test_session, ilTestSequence $a_test_sequence) | |
| Called from learning objective test. More... | |
| buildQuestionRelatedObjectiveList (ilTestQuestionSequence $a_test_sequence, ilTestQuestionRelatedObjectivesList $a_objectives_list) | |
| updateQuestionResult (ilTestSession $session, assQuestion $qst) | |
| update question result of run More... | |
Static Public Member Functions | |
| static | getInstance (ilTestSession $a_test_session) |
Protected Attributes | |
| ilLOSettings | $settings |
| ilLOTestAssignments | $assignments |
| array | $run = [] |
| int | $user_id = 0 |
| int | $container_id = 0 |
| int | $testRefId = null |
| ilLogger | $logger |
Test question filter.
Definition at line 24 of file class.ilLOTestQuestionAdapter.php.
| ilLOTestQuestionAdapter::__construct | ( | int | $a_user_id, |
| int | $a_course_id | ||
| ) |
Definition at line 35 of file class.ilLOTestQuestionAdapter.php.
References $DIC, ilLOTestAssignments\getInstance(), ilLOSettings\getInstanceByObjId(), ILIAS\Repository\logger(), and ILIAS\Repository\settings().
Here is the call graph for this function:| ilLOTestQuestionAdapter::buildQuestionRelatedObjectiveList | ( | ilTestQuestionSequence | $a_test_sequence, |
| ilTestQuestionRelatedObjectivesList | $a_objectives_list | ||
| ) |
Definition at line 169 of file class.ilLOTestQuestionAdapter.php.
References buildQuestionRelatedObjectiveListByTest().
Referenced by ilTestServiceGUI\buildQuestionRelatedObjectivesList().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 195 of file class.ilLOTestQuestionAdapter.php.
References ilTestQuestionRelatedObjectivesList\addQuestionRelatedObjectives().
Here is the call graph for this function:
|
protected |
Definition at line 184 of file class.ilLOTestQuestionAdapter.php.
References ilTestQuestionRelatedObjectivesList\addQuestionRelatedObjectives().
Referenced by buildQuestionRelatedObjectiveList().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 248 of file class.ilLOTestQuestionAdapter.php.
|
protected |
Definition at line 238 of file class.ilLOTestQuestionAdapter.php.
|
static |
Definition at line 515 of file class.ilLOTestQuestionAdapter.php.
References ilTestSession\getObjectiveOrientedContainerId(), ilTestSession\getRefId(), and ilTestSession\getUserId().
Referenced by ilTestPlayerAbstractGUI\archiveParticipantSubmission(), ilTestSubmissionReviewGUI\buildUserReviewOutput(), ilTestServiceGUI\getPassOverviewTableData(), ilTestServiceGUI\getResultsOfUserOutput(), ilTestServiceGUI\outCorrectSolution(), ilTestEvaluationGUI\outParticipantsPassDetails(), ilTestEvaluationGUI\outUserListOfAnswerPasses(), ilTestEvaluationGUI\outUserPassDetails(), ilTestOutputGUI\saveQuestionSolution(), ilTestOutputGUI\showQuestionCmd(), ilTestEvalObjectiveOrientedGUI\showVirtualPassCmd(), and ilTestOutputGUI\startTestCmd().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 223 of file class.ilLOTestQuestionAdapter.php.
|
protected |
Definition at line 243 of file class.ilLOTestQuestionAdapter.php.
References ILIAS\LTI\ToolProvider\$settings.
Referenced by lookupRelevantObjectiveIdsForTest(), and prepareTestPass().
Here is the caller graph for this function:| ilLOTestQuestionAdapter::getTestRefId | ( | ) |
Definition at line 46 of file class.ilLOTestQuestionAdapter.php.
References $testRefId.
|
protected |
Definition at line 233 of file class.ilLOTestQuestionAdapter.php.
|
protected |
Definition at line 405 of file class.ilLOTestQuestionAdapter.php.
References ilTestSequence\clearHiddenQuestions(), ilTestSequence\getQuestionIds(), and ilTestSequence\hideQuestion().
Referenced by prepareTestPass().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 416 of file class.ilLOTestQuestionAdapter.php.
References $session, ilObject\_lookupObjId(), and ilLOTestRun\getRun().
Referenced by notifyTestStart().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 253 of file class.ilLOTestQuestionAdapter.php.
References $session, ILIAS\Repository\logger(), ilLOUtils\lookupMaxAttempts(), ilLOUtils\lookupObjectiveRequiredPercentage(), and ilLOUserResults\lookupResult().
Referenced by prepareTestPass().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 505 of file class.ilLOTestQuestionAdapter.php.
|
protected |
Check if current run is a start object run.
Definition at line 312 of file class.ilLOTestQuestionAdapter.php.
References $session, ilObject\_getAllReferences(), ilTestSession\getRefId(), ilContainerStartObjects\isStartObject(), ILIAS\Repository\logger(), and ilLOSettings\TYPE_TEST_INITIAL.
Here is the call graph for this function:
|
protected |
Definition at line 218 of file class.ilLOTestQuestionAdapter.php.
References ilCourseObjectiveQuestion\lookupObjectivesOfQuestion().
Here is the call graph for this function:
|
protected |
Definition at line 213 of file class.ilLOTestQuestionAdapter.php.
References ilLORandomTestQuestionPools\lookupObjectiveIdsBySequence().
Here is the call graph for this function:
|
protected |
Definition at line 56 of file class.ilLOTestQuestionAdapter.php.
References $assignments, $results, ilCourseObjective\_getObjectiveIds(), ilLOTestAssignments\getInstance(), getSettings(), ilLOTestAssignments\getTestByObjective(), ilLOTestAssignments\getTypeByTest(), ILIAS\Repository\logger(), ilLOSettings\TYPE_TEST_INITIAL, and ilLOSettings\TYPE_TEST_QUALIFIED.
Referenced by notifyTestStart().
Here is the call graph for this function:
Here is the caller graph for this function:| ilLOTestQuestionAdapter::notifyTestStart | ( | ilTestSession | $a_test_session, |
| int | $a_test_obj_id | ||
| ) |
Called from learning objective test on actual test start.
Definition at line 114 of file class.ilLOTestQuestionAdapter.php.
References $run, ilLOTestRun\deleteRun(), ilTestSession\getObjectiveOrientedContainerId(), ilTestSession\getRefId(), ilTestSession\getUserId(), initTestRun(), ILIAS\Repository\logger(), and lookupRelevantObjectiveIdsForTest().
Here is the call graph for this function:| ilLOTestQuestionAdapter::prepareTestPass | ( | ilTestSession | $a_test_session, |
| ilTestSequence | $a_test_sequence | ||
| ) |
Called from learning objective test.
Definition at line 148 of file class.ilLOTestQuestionAdapter.php.
References getSettings(), ilLOSettings\HIDE_PASSED_OBJECTIVE_QST, hideQuestions(), initUserResult(), ILIAS\Repository\logger(), ilLOSettings\MARK_PASSED_OBJECTIVE_QST, ilTestSequence\saveToDb(), setQuestionsOptional(), storeTestRun(), and updateQuestions().
Here is the call graph for this function:
|
protected |
Definition at line 394 of file class.ilLOTestQuestionAdapter.php.
References ilTestSequence\clearOptionalQuestions(), ilTestSequence\getQuestionIds(), and ilTestSequence\setQuestionOptional().
Referenced by prepareTestPass().
Here is the call graph for this function:
Here is the caller graph for this function:| ilLOTestQuestionAdapter::setTestRefId | ( | int | $testRefId | ) |
Definition at line 51 of file class.ilLOTestQuestionAdapter.php.
References $testRefId.
|
protected |
Definition at line 425 of file class.ilLOTestQuestionAdapter.php.
Referenced by prepareTestPass().
Here is the caller graph for this function:
|
protected |
Definition at line 460 of file class.ilLOTestQuestionAdapter.php.
References $id, $session, ilCourseObjectiveQuestion\_lookupMaximumPointsOfQuestion(), ilObject\_lookupObjId(), and ilCourseObjectiveQuestion\lookupQuestionsByObjective().
Here is the call graph for this function:| ilLOTestQuestionAdapter::updateQuestionResult | ( | ilTestSession | $session, |
| assQuestion | $qst | ||
| ) |
update question result of run
Definition at line 347 of file class.ilLOTestQuestionAdapter.php.
References $GLOBALS, $res, $session, ilLPStatusWrapper\_updateStatus(), assQuestion\getId(), assQuestion\getReachedPoints(), ilLOUtils\isCompleted(), ilLOUserResults\lookupResult(), ilLOUserResults\STATUS_COMPLETED, and ilLOUserResults\STATUS_FAILED.
Here is the call graph for this function:
|
protected |
Definition at line 432 of file class.ilLOTestQuestionAdapter.php.
References $session.
Referenced by prepareTestPass().
Here is the caller graph for this function:
|
protected |
Definition at line 477 of file class.ilLOTestQuestionAdapter.php.
References $session, ilCourseObjectiveQuestion\_lookupMaximumPointsOfQuestion(), ilObject\_lookupObjId(), ilTestSequence\getQuestionIds(), ilTestSequenceRandomQuestionSet\getResponsibleSourcePoolDefinitionId(), ilLORandomTestQuestionPools\lookupSequencesByType(), ilLOSettings\TYPE_TEST_INITIAL, and ilLOSettings\TYPE_TEST_QUALIFIED.
Here is the call graph for this function:
|
protected |
Definition at line 447 of file class.ilLOTestQuestionAdapter.php.
References ilCourseObjectiveQuestion\_lookupMaximumPointsOfQuestion(), and ilTestSequence\getQuestionIds().
Here is the call graph for this function:
|
protected |
Definition at line 27 of file class.ilLOTestQuestionAdapter.php.
Referenced by lookupRelevantObjectiveIdsForTest().
|
protected |
Definition at line 30 of file class.ilLOTestQuestionAdapter.php.
|
protected |
Definition at line 33 of file class.ilLOTestQuestionAdapter.php.
|
protected |
Definition at line 28 of file class.ilLOTestQuestionAdapter.php.
Referenced by notifyTestStart().
|
protected |
Definition at line 26 of file class.ilLOTestQuestionAdapter.php.
|
protected |
Definition at line 31 of file class.ilLOTestQuestionAdapter.php.
Referenced by getTestRefId(), and setTestRefId().
|
protected |
Definition at line 29 of file class.ilLOTestQuestionAdapter.php.