ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
Test question filter. More...
Public Member Functions | |
__construct ($a_user_id, $a_course_id) | |
getTestRefId () | |
setTestRefId ($testRefId) | |
notifyTestStart (ilTestSession $a_test_session, $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 | |
$logger = null | |
$settings = null | |
$assignments = null | |
$user_id = 0 | |
$container_id = 0 | |
$testRefId = null | |
Static Private Member Functions | |
static | getQuestionData ($testObjId, $questionIds) |
ilLOTestQuestionAdapter::__construct | ( | $a_user_id, | |
$a_course_id | |||
) |
type | $a_user_id | |
type | $a_course_id |
Definition at line 33 of file class.ilLOTestQuestionAdapter.php.
References $GLOBALS, ilLOTestAssignments\getInstance(), ilLOSettings\getInstanceByObjId(), and settings().
ilLOTestQuestionAdapter::buildQuestionRelatedObjectiveList | ( | ilTestQuestionSequence | $a_test_sequence, |
ilTestQuestionRelatedObjectivesList | $a_objectives_list | ||
) |
ilTestSequence | $a_test_sequence | |
ilTestQuestionRelatedObjectivesList | $a_objectives_list |
Definition at line 193 of file class.ilLOTestQuestionAdapter.php.
References buildQuestionRelatedObjectiveListByQuestions(), buildQuestionRelatedObjectiveListByTest(), getSettings(), getTestRefId(), ilLOSettings\TYPE_TEST_INITIAL, and ilLOSettings\TYPE_TEST_QUALIFIED.
Referenced by ilTestServiceGUI\buildQuestionRelatedObjectivesList().
|
protected |
Definition at line 215 of file class.ilLOTestQuestionAdapter.php.
References ilTestQuestionRelatedObjectivesList\addQuestionRelatedObjectives(), ilTestQuestionSequence\getQuestionIds(), lookupObjectiveIdByFixedQuestionId(), and lookupObjectiveIdByRandomQuestionSelectionDefinitionId().
Referenced by buildQuestionRelatedObjectiveList().
|
protected |
Definition at line 206 of file class.ilLOTestQuestionAdapter.php.
References ilTestQuestionRelatedObjectivesList\addQuestionRelatedObjectives(), array, ilTestQuestionSequence\getQuestionIds(), getRelatedObjectivesForSeparatedTest(), and getTestRefId().
Referenced by buildQuestionRelatedObjectiveList().
|
protected |
Definition at line 277 of file class.ilLOTestQuestionAdapter.php.
References $assignments.
Referenced by getRelatedObjectivesForSeparatedTest(), initUserResult(), isQualifiedStartRun(), updateQuestionResult(), and updateQuestions().
|
protected |
Definition at line 259 of file class.ilLOTestQuestionAdapter.php.
References $container_id.
Referenced by isQualifiedStartRun(), and lookupObjectiveIdByRandomQuestionSelectionDefinitionId().
|
static |
Definition at line 609 of file class.ilLOTestQuestionAdapter.php.
References $adapter, 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().
|
staticprivate |
Definition at line 593 of file class.ilLOTestQuestionAdapter.php.
References $ilDB, $lng, and ilAssQuestionList\QUESTION_INSTANCE_TYPE_DUPLICATES.
|
protected |
Definition at line 243 of file class.ilLOTestQuestionAdapter.php.
References $testRefId, and getAssignments().
Referenced by buildQuestionRelatedObjectiveListByTest().
|
protected |
Get loc settings.
Definition at line 268 of file class.ilLOTestQuestionAdapter.php.
References $settings.
Referenced by buildQuestionRelatedObjectiveList(), isQualifiedStartRun(), lookupRelevantObjectiveIdsForTest(), prepareTestPass(), and updateRandomQuestions().
ilLOTestQuestionAdapter::getTestRefId | ( | ) |
Definition at line 47 of file class.ilLOTestQuestionAdapter.php.
References $testRefId.
Referenced by buildQuestionRelatedObjectiveList(), and buildQuestionRelatedObjectiveListByTest().
|
protected |
|
protected |
Hide questions.
ilTestSequence | $seq |
Definition at line 460 of file class.ilLOTestQuestionAdapter.php.
References ilTestSequence\clearHiddenQuestions(), ilTestSequence\getQuestionIds(), ilTestSequence\hideQuestion(), and isInRun().
Referenced by prepareTestPass().
|
protected |
Definition at line 471 of file class.ilLOTestQuestionAdapter.php.
References ilObject\_lookupObjId(), ilTestSession\getRefId(), and ilLOTestRun\getRun().
Referenced by notifyTestStart().
|
protected |
init user result
Definition at line 285 of file class.ilLOTestQuestionAdapter.php.
References getAssignments(), ilTestSession\getRefId(), isQualifiedStartRun(), ilLOUtils\lookupObjectiveRequiredPercentage(), and ilLOUserResults\lookupResult().
Referenced by prepareTestPass().
|
protected |
Definition at line 582 of file class.ilLOTestQuestionAdapter.php.
Referenced by hideQuestions(), and setQuestionsOptional().
|
protected |
Check if current run is a start object run.
ilTestSession | $session |
Definition at line 351 of file class.ilLOTestQuestionAdapter.php.
References ilObject\_getAllReferences(), getAssignments(), getContainerId(), ilTestSession\getRefId(), getSettings(), ilContainerStartObjects\isStartObject(), and ilLOSettings\TYPE_TEST_INITIAL.
Referenced by initUserResult().
|
protected |
Definition at line 237 of file class.ilLOTestQuestionAdapter.php.
References ilCourseObjectiveQuestion\lookupObjectivesOfQuestion().
Referenced by buildQuestionRelatedObjectiveListByQuestions().
|
protected |
Definition at line 231 of file class.ilLOTestQuestionAdapter.php.
References getContainerId(), and ilLORandomTestQuestionPools\lookupObjectiveIdsBySequence().
Referenced by buildQuestionRelatedObjectiveListByQuestions().
|
protected |
Lookup all relevant objective ids for a specific test.
Definition at line 64 of file class.ilLOTestQuestionAdapter.php.
References $assignments, $results, ilCourseObjective\_getObjectiveIds(), array, ilLOTestAssignments\getInstance(), getSettings(), ilLOSettings\TYPE_TEST_INITIAL, and ilLOSettings\TYPE_TEST_QUALIFIED.
Referenced by notifyTestStart().
ilLOTestQuestionAdapter::notifyTestStart | ( | ilTestSession | $a_test_session, |
$a_test_obj_id | |||
) |
Called from learning objective test on actual test start.
ilTestSession | $a_test_session | |
integer | $a_test_obj_id |
Definition at line 131 of file class.ilLOTestQuestionAdapter.php.
References array, ilLOTestRun\create(), ilLOTestRun\deleteRun(), ilTestSession\getObjectiveOrientedContainerId(), ilTestSession\getRefId(), ilTestSession\getUserId(), initTestRun(), and lookupRelevantObjectiveIdsForTest().
ilLOTestQuestionAdapter::prepareTestPass | ( | ilTestSession | $a_test_session, |
ilTestSequence | $a_test_sequence | ||
) |
Called from learning objective test.
ilTestSession | $a_test_session | |
ilTestSequence | $a_test_sequence |
Definition at line 168 of file class.ilLOTestQuestionAdapter.php.
References getSettings(), ilLOSettings\HIDE_PASSED_OBJECTIVE_QST, hideQuestions(), initUserResult(), ilLOSettings\MARK_PASSED_OBJECTIVE_QST, ilTestSequence\saveToDb(), setQuestionsOptional(), storeTestRun(), and updateQuestions().
|
protected |
set questions optional
ilTestSequence | $seq |
Definition at line 445 of file class.ilLOTestQuestionAdapter.php.
References ilTestSequence\clearOptionalQuestions(), ilTestSequence\getQuestionIds(), isInRun(), and ilTestSequence\setQuestionOptional().
Referenced by prepareTestPass().
ilLOTestQuestionAdapter::setTestRefId | ( | $testRefId | ) |
null | $testRefId |
Definition at line 55 of file class.ilLOTestQuestionAdapter.php.
References $testRefId.
|
protected |
Store test run in DB.
Definition at line 484 of file class.ilLOTestQuestionAdapter.php.
Referenced by prepareTestPass().
|
protected |
Definition at line 528 of file class.ilLOTestQuestionAdapter.php.
References $id, ilCourseObjectiveQuestion\_lookupMaximumPointsOfQuestion(), ilObject\_lookupObjId(), ilTestSession\getRefId(), and ilCourseObjectiveQuestion\lookupQuestionsByObjective().
Referenced by updateQuestions().
ilLOTestQuestionAdapter::updateQuestionResult | ( | ilTestSession | $session, |
assQuestion | $qst | ||
) |
update question result of run
ilTestSession | $session | |
assQuestion | $qst |
Definition at line 389 of file class.ilLOTestQuestionAdapter.php.
References $GLOBALS, $res, ilLPStatusWrapper\_updateStatus(), ilTestSession\getActiveId(), getAssignments(), assQuestion\getId(), ilTestSession\getPass(), assQuestion\getReachedPoints(), ilTestSession\getRefId(), ilLOUtils\isCompleted(), ilLOUserResults\lookupResult(), ilLOUserResults\STATUS_COMPLETED, and ilLOUserResults\STATUS_FAILED.
|
protected |
Definition at line 492 of file class.ilLOTestQuestionAdapter.php.
References $GLOBALS, getAssignments(), ilTestSession\getRefId(), updateFixedQuestions(), updateRandomQuestions(), and updateSeparateTestQuestions().
Referenced by prepareTestPass().
|
protected |
update random questions
ilTestSession | $session | |
ilTestSequenceRandomQuestionSet | $seq |
Definition at line 551 of file class.ilLOTestQuestionAdapter.php.
References ilCourseObjectiveQuestion\_lookupMaximumPointsOfQuestion(), ilObject\_lookupObjId(), ilTestSequence\getQuestionIds(), ilTestSession\getRefId(), ilTestSequenceRandomQuestionSet\getResponsibleSourcePoolDefinitionId(), getSettings(), ilLORandomTestQuestionPools\lookupSequencesByType(), ilLOSettings\TYPE_TEST_INITIAL, and ilLOSettings\TYPE_TEST_QUALIFIED.
Referenced by updateQuestions().
|
protected |
Update questions for separate tests.
ilTestSession | $session | |
ilTestSequence | $seq |
Definition at line 513 of file class.ilLOTestQuestionAdapter.php.
References ilCourseObjectiveQuestion\_lookupMaximumPointsOfQuestion(), and ilTestSequence\getQuestionIds().
Referenced by updateQuestions().
|
protected |
Definition at line 21 of file class.ilLOTestQuestionAdapter.php.
Referenced by getAssignments(), and lookupRelevantObjectiveIdsForTest().
|
protected |
Definition at line 24 of file class.ilLOTestQuestionAdapter.php.
Referenced by getContainerId().
|
protected |
Definition at line 18 of file class.ilLOTestQuestionAdapter.php.
|
protected |
Definition at line 20 of file class.ilLOTestQuestionAdapter.php.
Referenced by getSettings().
|
protected |
Definition at line 26 of file class.ilLOTestQuestionAdapter.php.
Referenced by getRelatedObjectivesForSeparatedTest(), getTestRefId(), and setTestRefId().
|
protected |
Definition at line 23 of file class.ilLOTestQuestionAdapter.php.
Referenced by getUserId().