ILIAS
trunk Revision v11.0_alpha-1866-gfa368f7776e
|
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 39 of file class.ilLOTestQuestionAdapter.php.
References $DIC, ilLOTestAssignments\getInstance(), ilLOSettings\getInstanceByObjId(), ILIAS\Repository\logger(), and ILIAS\Repository\settings().
ilLOTestQuestionAdapter::buildQuestionRelatedObjectiveList | ( | ilTestQuestionSequence | $a_test_sequence, |
ilTestQuestionRelatedObjectivesList | $a_objectives_list | ||
) |
Definition at line 173 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 199 of file class.ilLOTestQuestionAdapter.php.
References ilTestQuestionRelatedObjectivesList\addQuestionRelatedObjectives(), ilTestQuestionSequence\getQuestionIds(), lookupObjectiveIdByFixedQuestionId(), and lookupObjectiveIdByRandomQuestionSelectionDefinitionId().
Referenced by buildQuestionRelatedObjectiveList().
|
protected |
Definition at line 188 of file class.ilLOTestQuestionAdapter.php.
References ilTestQuestionRelatedObjectivesList\addQuestionRelatedObjectives(), ilTestQuestionSequence\getQuestionIds(), getRelatedObjectivesForSeparatedTest(), and getTestRefId().
Referenced by buildQuestionRelatedObjectiveList().
|
protected |
Definition at line 252 of file class.ilLOTestQuestionAdapter.php.
References $assignments.
Referenced by getRelatedObjectivesForSeparatedTest(), initUserResult(), isQualifiedStartRun(), updateQuestionResult(), and updateQuestions().
|
protected |
Definition at line 242 of file class.ilLOTestQuestionAdapter.php.
References $container_id.
Referenced by isQualifiedStartRun(), and lookupObjectiveIdByRandomQuestionSelectionDefinitionId().
|
static |
Definition at line 519 of file class.ilLOTestQuestionAdapter.php.
References ilTestSession\getObjectiveOrientedContainerId(), ilTestSession\getRefId(), and ilTestSession\getUserId().
Referenced by ilTestSubmissionReviewGUI\buildUserReviewOutput(), ilTestServiceGUI\getPassOverviewTableData(), ilTestServiceGUI\outCorrectSolution(), ilTestEvaluationGUI\outUserListOfAnswerPasses(), ilTestEvaluationGUI\outUserPassDetails(), ilTestPlayerAbstractGUI\save(), ilTestPlayerAbstractGUI\showQuestionCmd(), ilTestEvalObjectiveOrientedGUI\showVirtualPassCmd(), and ilTestPlayerAbstractGUI\startTestCmd().
|
protected |
Definition at line 227 of file class.ilLOTestQuestionAdapter.php.
References $testRefId, getAssignments(), and null.
Referenced by buildQuestionRelatedObjectiveListByTest().
|
protected |
Definition at line 247 of file class.ilLOTestQuestionAdapter.php.
References $settings.
Referenced by buildQuestionRelatedObjectiveList(), isQualifiedStartRun(), lookupRelevantObjectiveIdsForTest(), prepareTestPass(), and updateRandomQuestions().
ilLOTestQuestionAdapter::getTestRefId | ( | ) |
Definition at line 50 of file class.ilLOTestQuestionAdapter.php.
References $testRefId.
Referenced by buildQuestionRelatedObjectiveList(), and buildQuestionRelatedObjectiveListByTest().
|
protected |
|
protected |
Definition at line 409 of file class.ilLOTestQuestionAdapter.php.
References ilTestSequence\clearHiddenQuestions(), ilTestSequence\getQuestionIds(), ilTestSequence\hideQuestion(), and isInRun().
Referenced by prepareTestPass().
|
protected |
Definition at line 420 of file class.ilLOTestQuestionAdapter.php.
References ilObject\_lookupObjId(), ilTestSession\getRefId(), and ilLOTestRun\getRun().
Referenced by notifyTestStart().
|
protected |
Definition at line 257 of file class.ilLOTestQuestionAdapter.php.
References getAssignments(), ilTestSession\getRefId(), isQualifiedStartRun(), ILIAS\Repository\logger(), ilLOUtils\lookupMaxAttempts(), ilLOUtils\lookupObjectiveRequiredPercentage(), and ilLOUserResults\lookupResult().
Referenced by prepareTestPass().
|
protected |
Definition at line 509 of file class.ilLOTestQuestionAdapter.php.
Referenced by hideQuestions(), and setQuestionsOptional().
|
protected |
Check if current run is a start object run.
Definition at line 316 of file class.ilLOTestQuestionAdapter.php.
References ilObject\_getAllReferences(), getAssignments(), getContainerId(), ilTestSession\getRefId(), getSettings(), ilContainerStartObjects\isStartObject(), ILIAS\Repository\logger(), and ilLOSettings\TYPE_TEST_INITIAL.
Referenced by initUserResult().
|
protected |
Definition at line 222 of file class.ilLOTestQuestionAdapter.php.
References ilCourseObjectiveQuestion\lookupObjectivesOfQuestion().
Referenced by buildQuestionRelatedObjectiveListByQuestions().
|
protected |
Definition at line 217 of file class.ilLOTestQuestionAdapter.php.
References getContainerId(), and ilLORandomTestQuestionPools\lookupObjectiveIdsBySequence().
Referenced by buildQuestionRelatedObjectiveListByQuestions().
|
protected |
Definition at line 60 of file class.ilLOTestQuestionAdapter.php.
References $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().
ilLOTestQuestionAdapter::notifyTestStart | ( | ilTestSession | $a_test_session, |
int | $a_test_obj_id | ||
) |
Called from learning objective test on actual test start.
Definition at line 118 of file class.ilLOTestQuestionAdapter.php.
References ilLOTestRun\create(), ilLOTestRun\deleteRun(), ilTestSession\getObjectiveOrientedContainerId(), ilTestSession\getRefId(), ilTestSession\getUserId(), initTestRun(), ILIAS\Repository\logger(), and lookupRelevantObjectiveIdsForTest().
ilLOTestQuestionAdapter::prepareTestPass | ( | ilTestSession | $a_test_session, |
ilTestSequence | $a_test_sequence | ||
) |
Called from learning objective test.
Definition at line 152 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().
|
protected |
Definition at line 398 of file class.ilLOTestQuestionAdapter.php.
References ilTestSequence\clearOptionalQuestions(), ilTestSequence\getQuestionIds(), isInRun(), and ilTestSequence\setQuestionOptional().
Referenced by prepareTestPass().
ilLOTestQuestionAdapter::setTestRefId | ( | int | $testRefId | ) |
|
protected |
Definition at line 429 of file class.ilLOTestQuestionAdapter.php.
Referenced by prepareTestPass().
|
protected |
Definition at line 464 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
Definition at line 351 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 436 of file class.ilLOTestQuestionAdapter.php.
References getAssignments(), ilTestSession\getRefId(), updateFixedQuestions(), updateRandomQuestions(), and updateSeparateTestQuestions().
Referenced by prepareTestPass().
|
protected |
Definition at line 481 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 |
Definition at line 451 of file class.ilLOTestQuestionAdapter.php.
References ilCourseObjectiveQuestion\_lookupMaximumPointsOfQuestion(), and ilTestSequence\getQuestionIds().
Referenced by updateQuestions().
|
protected |
Definition at line 27 of file class.ilLOTestQuestionAdapter.php.
Referenced by getAssignments().
|
protected |
Definition at line 34 of file class.ilLOTestQuestionAdapter.php.
Referenced by getContainerId().
|
protected |
Definition at line 37 of file class.ilLOTestQuestionAdapter.php.
|
protected |
Definition at line 32 of file class.ilLOTestQuestionAdapter.php.
|
protected |
Definition at line 26 of file class.ilLOTestQuestionAdapter.php.
Referenced by getSettings().
|
protected |
Definition at line 35 of file class.ilLOTestQuestionAdapter.php.
Referenced by getRelatedObjectivesForSeparatedTest(), getTestRefId(), and setTestRefId().
|
protected |
Definition at line 33 of file class.ilLOTestQuestionAdapter.php.
Referenced by getUserId().