|
ILIAS
Release_5_0_x_branch Revision 61816
|
Test question filter. More...
Collaboration diagram for ilLOTestQuestionAdapter:Public Member Functions | |
| __construct ($a_user_id, $a_course_id) | |
Static Public Member Functions | |
| static | filterQuestions (ilTestSession $a_test_session, ilTestSequence $a_test_sequence) |
| Called from learning objective test. | |
| static | updateObjectiveStatus (ilTestSession $a_test_session, ilTestSequence $a_test_sequence, assQuestion $a_question) |
| Store result and update objective status. | |
Protected Member Functions | |
| getUserId () | |
| getContainerId () | |
| getSettings () | |
| Get loc settings. | |
| initUserResult (ilTestSession $session) | |
| init user result | |
| isQualifiedStartRun (ilTestSession $session) | |
| Check if current run is a start object run. | |
| updateQuestionResult (ilTestSession $session, assQuestion $qst) | |
| update question result of run | |
| hideQuestions (ilTestSequence $seq) | |
| Hide questions. | |
| initTestRun (ilTestSession $session) | |
| storeTestRun () | |
| Store test run in DB. | |
| updateQuestions (ilTestSession $session, ilTestSequence $seq) | |
| updateFixedQuestions (ilTestSession $session, ilTestSequence $seq) | |
| updateRandomQuestions (ilTestSession $session, ilTestSequenceRandomQuestionSet $seq) | |
| isInRun ($a_qid) | |
Protected Attributes | |
| $settings = NULL | |
| $user_id = 0 | |
| $container_id = 0 | |
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 26 of file class.ilLOTestQuestionAdapter.php.
References ilLOSettings\getInstanceByObjId().
Here is the call graph for this function:
|
static |
Called from learning objective test.
| ilTestSession | $a_test_session | |
| ilTestSequence | $a_test_sequence |
Definition at line 42 of file class.ilLOTestQuestionAdapter.php.
References $GLOBALS, ilTestSession\getObjectiveOrientedContainerId(), ilTestSession\getUserId(), and ilTestSequence\saveToDb().
Referenced by ilTestOutputGUI\filterTestSequenceByObjectives().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 105 of file class.ilLOTestQuestionAdapter.php.
References $container_id.
Referenced by isQualifiedStartRun().
Here is the caller graph for this function:
|
staticprivate |
Definition at line 406 of file class.ilLOTestQuestionAdapter.php.
References $ilDB, $lng, and ilAssQuestionList\QUESTION_INSTANCE_TYPE_DUPLICATES.
|
protected |
Get loc settings.
Definition at line 114 of file class.ilLOTestQuestionAdapter.php.
References $settings.
Referenced by initUserResult(), isQualifiedStartRun(), updateQuestionResult(), and updateRandomQuestions().
Here is the caller graph for this function:
|
protected |
Definition at line 100 of file class.ilLOTestQuestionAdapter.php.
References $user_id.
|
protected |
Hide questions.
| ilTestSequence | $seq |
Definition at line 292 of file class.ilLOTestQuestionAdapter.php.
References ilTestSequence\clearHiddenQuestions(), ilTestSequence\getQuestionIds(), ilTestSequence\hideQuestion(), and isInRun().
Here is the call graph for this function:
|
protected |
Definition at line 306 of file class.ilLOTestQuestionAdapter.php.
References ilObject\_lookupObjId(), ilTestSession\getRefId(), and ilLOTestRun\getRun().
Here is the call graph for this function:
|
protected |
init user result
Definition at line 122 of file class.ilLOTestQuestionAdapter.php.
References $GLOBALS, ilTestSession\getRefId(), getSettings(), isQualifiedStartRun(), ilLOUtils\lookupMaxAttempts(), ilLOUtils\lookupObjectiveRequiredPercentage(), ilLOUserResults\lookupResult(), ilLOUserResults\TYPE_INITIAL, ilLOUserResults\TYPE_QUALIFIED, ilLOSettings\TYPE_TEST_INITIAL, and ilLOSettings\TYPE_TEST_QUALIFIED.
Here is the call graph for this function:
|
protected |
Definition at line 393 of file class.ilLOTestQuestionAdapter.php.
Referenced by hideQuestions().
Here is the caller graph for this function:
|
protected |
Check if current run is a start object run.
| ilTestSession | $session |
Definition at line 191 of file class.ilLOTestQuestionAdapter.php.
References $GLOBALS, ilObject\_getAllReferences(), getContainerId(), ilTestSession\getRefId(), getSettings(), and ilContainerStartObjects\isStartObject().
Referenced by initUserResult().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Store test run in DB.
Definition at line 320 of file class.ilLOTestQuestionAdapter.php.
|
protected |
Definition at line 342 of file class.ilLOTestQuestionAdapter.php.
References $GLOBALS, ilCourseObjectiveQuestion\_lookupMaximumPointsOfQuestion(), ilObject\_lookupObjId(), ilTestSession\getRefId(), and ilCourseObjectiveQuestion\lookupQuestionsByObjective().
Referenced by updateQuestions().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Store result and update objective status.
| ilTestSession | $a_test_session | |
| ilTestSequence | $a_test_sequence | |
| assQuestion | $a_question |
Definition at line 68 of file class.ilLOTestQuestionAdapter.php.
References ilTestSession\getObjectiveOrientedContainerId(), and ilTestSession\getUserId().
Referenced by ilTestOutputGUI\updateContainerObjectivesWithAnsweredQuestion().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
update question result of run
| ilTestSession | $session | |
| assQuestion | $qst |
Definition at line 233 of file class.ilLOTestQuestionAdapter.php.
References $GLOBALS, $res, ilLPStatusWrapper\_updateStatus(), ilTestSession\getActiveId(), assQuestion\getId(), ilTestSession\getPass(), assQuestion\getReachedPoints(), ilTestSession\getRefId(), getSettings(), ilLOUtils\isCompleted(), ilLOUserResults\lookupResult(), ilLOUserResults\STATUS_COMPLETED, ilLOUserResults\STATUS_FAILED, ilLOUserResults\TYPE_INITIAL, and ilLOUserResults\TYPE_QUALIFIED.
Here is the call graph for this function:
|
protected |
Definition at line 329 of file class.ilLOTestQuestionAdapter.php.
References updateFixedQuestions(), and updateRandomQuestions().
Here is the call graph for this function:
|
protected |
Definition at line 363 of file class.ilLOTestQuestionAdapter.php.
References ilCourseObjectiveQuestion\_lookupMaximumPointsOfQuestion(), ilTestSequence\getQuestionIds(), ilTestSession\getRefId(), ilTestSequenceRandomQuestionSet\getResponsibleSourcePoolDefinitionId(), getSettings(), ilLOSettings\TYPE_TEST_INITIAL, and ilLOSettings\TYPE_TEST_QUALIFIED.
Referenced by updateQuestions().
Here is the call graph for this function:
Here is the caller graph for this function:
|
protected |
Definition at line 17 of file class.ilLOTestQuestionAdapter.php.
Referenced by getContainerId().
|
protected |
Definition at line 14 of file class.ilLOTestQuestionAdapter.php.
Referenced by getSettings().
|
protected |
Definition at line 16 of file class.ilLOTestQuestionAdapter.php.
Referenced by getUserId().