ILIAS
Release_5_0_x_branch Revision 61816
|
Test question filter. More...
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().
|
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().
|
protected |
Definition at line 105 of file class.ilLOTestQuestionAdapter.php.
References $container_id.
Referenced by isQualifiedStartRun().
|
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().
|
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().
|
protected |
Definition at line 306 of file class.ilLOTestQuestionAdapter.php.
References ilObject\_lookupObjId(), ilTestSession\getRefId(), and ilLOTestRun\getRun().
|
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.
|
protected |
Definition at line 393 of file class.ilLOTestQuestionAdapter.php.
Referenced by hideQuestions().
|
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().
|
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().
|
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().
|
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.
|
protected |
Definition at line 329 of file class.ilLOTestQuestionAdapter.php.
References updateFixedQuestions(), and updateRandomQuestions().
|
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().
|
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().