|
ILIAS
release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
|
Test sequence handler. More...
Inheritance diagram for ilTestSequence:
Collaboration diagram for ilTestSequence:Data Fields | |
| $sequencedata | |
| $questions | |
| $active_id | |
| $pass | |
| $isRandomTest | |
Protected Member Functions | |
| getCorrectedSequence () | |
Private Member Functions | |
| loadQuestionSequence () | |
| loadCheckedQuestions () | |
| loadOptionalQuestions () | |
| saveQuestionSequence () | |
| saveNewlyCheckedQuestion () | |
| @global ilDB $ilDB More... | |
| saveOptionalQuestions () | |
| @global ilDB $ilDB More... | |
| ensureQuestionNotInSequence ($sequence, $questionId) | |
| hideCorrectAnsweredQuestions (ilObjTest $testOBJ, $activeId, $pass) | |
Private Attributes | |
| $alreadyCheckedQuestions | |
| $newlyCheckedQuestion | |
| $optionalQuestions | |
| $answeringOptionalQuestionsConfirmed | |
| $considerHiddenQuestionsEnabled | |
| $considerOptionalQuestionsEnabled | |
Test sequence handler.
This class manages the sequence settings for a given user
Definition at line 16 of file class.ilTestSequence.php.
| ilTestSequence::clearHiddenQuestions | ( | ) |
Definition at line 718 of file class.ilTestSequence.php.
Referenced by ilLOTestQuestionAdapter\hideQuestions().
Here is the caller graph for this function:| ilTestSequence::clearOptionalQuestions | ( | ) |
Definition at line 795 of file class.ilTestSequence.php.
Referenced by ilLOTestQuestionAdapter\setQuestionsOptional().
Here is the caller graph for this function:| ilTestSequence::createNewSequence | ( | $max, | |
| $shuffle | |||
| ) |
Definition at line 118 of file class.ilTestSequence.php.
References pcArrayShuffle().
Here is the call graph for this function:
|
private |
Definition at line 484 of file class.ilTestSequence.php.
Referenced by getCorrectedSequence().
Here is the caller graph for this function:| ilTestSequence::getActiveId | ( | ) |
Implements ilTestSequenceSummaryProvider.
Definition at line 113 of file class.ilTestSequence.php.
References $active_id.
|
protected |
Definition at line 505 of file class.ilTestSequence.php.
References ensureQuestionNotInSequence(), isConsiderHiddenQuestionsEnabled(), and isConsiderOptionalQuestionsEnabled().
Referenced by getFirstSequence(), getLastSequence(), getNextSequence(), getPositionOfSequence(), getPreviousSequence(), getSequenceSummary(), getUserQuestionCount(), getUserSequence(), and getUserSequenceQuestions().
Here is the call graph for this function:
Here is the caller graph for this function:| ilTestSequence::getFirstSequence | ( | ) |
Definition at line 549 of file class.ilTestSequence.php.
References getCorrectedSequence().
Referenced by openQuestionExists().
Here is the call graph for this function:
Here is the caller graph for this function:| ilTestSequence::getLastSequence | ( | ) |
Definition at line 562 of file class.ilTestSequence.php.
References getCorrectedSequence().
Here is the call graph for this function:| ilTestSequence::getNextSequence | ( | $sequence | ) |
Definition at line 575 of file class.ilTestSequence.php.
References getCorrectedSequence().
Here is the call graph for this function:| ilTestSequence::getOptionalQuestions | ( | ) |
| ilTestSequence::getOrderedSequence | ( | ) |
Definition at line 424 of file class.ilTestSequence.php.
References isConsiderHiddenQuestionsEnabled(), isConsiderOptionalQuestionsEnabled(), and isHiddenSequence().
Here is the call graph for this function:| ilTestSequence::getOrderedSequenceQuestions | ( | ) |
Definition at line 446 of file class.ilTestSequence.php.
References $questions, isConsiderHiddenQuestionsEnabled(), isConsiderOptionalQuestionsEnabled(), isHiddenQuestion(), and isQuestionOptional().
Here is the call graph for this function:| ilTestSequence::getPass | ( | ) |
| ilTestSequence::getPositionOfSequence | ( | $sequence | ) |
Definition at line 405 of file class.ilTestSequence.php.
References getCorrectedSequence().
Here is the call graph for this function:| ilTestSequence::getPreviousSequence | ( | $sequence | ) |
Definition at line 590 of file class.ilTestSequence.php.
References getCorrectedSequence().
Here is the call graph for this function:| ilTestSequence::getQuestionForSequence | ( | $sequence | ) |
Definition at line 625 of file class.ilTestSequence.php.
Referenced by getSequenceSummary(), getUserSequenceQuestions(), and reorderOptionalQuestionsToSequenceEnd().
Here is the caller graph for this function:| ilTestSequence::getQuestionIds | ( | ) |
Implements ilTestQuestionSequence.
Definition at line 765 of file class.ilTestSequence.php.
Referenced by ilLOTestQuestionAdapter\hideQuestions(), ilLOTestQuestionAdapter\setQuestionsOptional(), ilLOTestQuestionAdapter\updateRandomQuestions(), and ilLOTestQuestionAdapter\updateSeparateTestQuestions().
Here is the caller graph for this function:| ilTestSequence::getSequenceForQuestion | ( | $question_id | ) |
Definition at line 544 of file class.ilTestSequence.php.
| ilTestSequence::getSequenceSummary | ( | $obligationsFilterEnabled = false | ) |
Implements ilTestSequenceSummaryProvider.
Definition at line 638 of file class.ilTestSequence.php.
References $row, ilObjTest\_getSolvedQuestions(), ilObjTest\_instanciateQuestion(), getCorrectedSequence(), getQuestionForSequence(), isPostponedQuestion(), and ilObjTest\isQuestionObligatory().
Here is the call graph for this function:| ilTestSequence::getUserQuestionCount | ( | ) |
Definition at line 419 of file class.ilTestSequence.php.
References getCorrectedSequence().
Here is the call graph for this function:| ilTestSequence::getUserSequence | ( | ) |
Definition at line 468 of file class.ilTestSequence.php.
References getCorrectedSequence().
Here is the call graph for this function:| ilTestSequence::getUserSequenceQuestions | ( | ) |
Definition at line 473 of file class.ilTestSequence.php.
References getCorrectedSequence(), and getQuestionForSequence().
Here is the call graph for this function:| ilTestSequence::hasHiddenQuestions | ( | ) |
Definition at line 706 of file class.ilTestSequence.php.
| ilTestSequence::hasOptionalQuestions | ( | ) |
Definition at line 785 of file class.ilTestSequence.php.
| ilTestSequence::hasSequence | ( | ) |
Definition at line 694 of file class.ilTestSequence.php.
| ilTestSequence::hasStarted | ( | ilTestSession | $testSession | ) |
Definition at line 744 of file class.ilTestSequence.php.
References ilTestSession\getLastSequence().
Here is the call graph for this function:
|
private |
Definition at line 723 of file class.ilTestSequence.php.
References $pass, $result, ilObjTest\getTestResult(), hideQuestion(), and saveToDb().
Here is the call graph for this function:| ilTestSequence::hideQuestion | ( | $question_id | ) |
Definition at line 309 of file class.ilTestSequence.php.
References isHiddenQuestion().
Referenced by hideCorrectAnsweredQuestions(), and ilLOTestQuestionAdapter\hideQuestions().
Here is the call graph for this function:
Here is the caller graph for this function:| ilTestSequence::hideSequence | ( | $sequence | ) |
Definition at line 383 of file class.ilTestSequence.php.
References isHiddenSequence().
Here is the call graph for this function:| ilTestSequence::ilTestSequence | ( | $active_id, | |
| $pass, | |||
| $randomtest | |||
| ) |
ilTestSequence constructor
The constructor takes possible arguments an creates an instance of the ilTestSequence object.
| object | $a_object | A reference to the test container object @access public |
Definition at line 92 of file class.ilTestSequence.php.
References $active_id, and $pass.
| ilTestSequence::isAnsweringOptionalQuestionsConfirmed | ( | ) |
Definition at line 822 of file class.ilTestSequence.php.
References $answeringOptionalQuestionsConfirmed.
Referenced by saveQuestionSequence(), and ilTestVirtualSequence\wasAnsweredInThisPass().
Here is the caller graph for this function:| ilTestSequence::isConsiderHiddenQuestionsEnabled | ( | ) |
Definition at line 838 of file class.ilTestSequence.php.
References $considerHiddenQuestionsEnabled.
Referenced by getCorrectedSequence(), getOrderedSequence(), and getOrderedSequenceQuestions().
Here is the caller graph for this function:| ilTestSequence::isConsiderOptionalQuestionsEnabled | ( | ) |
Definition at line 854 of file class.ilTestSequence.php.
References $considerOptionalQuestionsEnabled.
Referenced by getCorrectedSequence(), getOrderedSequence(), and getOrderedSequenceQuestions().
Here is the caller graph for this function:| ilTestSequence::isHiddenQuestion | ( | $question_id | ) |
Definition at line 330 of file class.ilTestSequence.php.
Referenced by getOrderedSequenceQuestions(), hideQuestion(), and ilTestVirtualSequence\wasAnsweredInThisPass().
Here is the caller graph for this function:| ilTestSequence::isHiddenSequence | ( | $sequence | ) |
Definition at line 357 of file class.ilTestSequence.php.
Referenced by getOrderedSequence(), and hideSequence().
Here is the caller graph for this function:| ilTestSequence::isPostponedQuestion | ( | $question_id | ) |
Definition at line 317 of file class.ilTestSequence.php.
Referenced by getSequenceSummary(), and postponeQuestion().
Here is the caller graph for this function:| ilTestSequence::isPostponedSequence | ( | $sequence | ) |
Definition at line 343 of file class.ilTestSequence.php.
Referenced by postponeSequence().
Here is the caller graph for this function:| ilTestSequence::isQuestionChecked | ( | $questionId | ) |
Definition at line 400 of file class.ilTestSequence.php.
| ilTestSequence::isQuestionOptional | ( | $questionId | ) |
Definition at line 780 of file class.ilTestSequence.php.
Referenced by getOrderedSequenceQuestions(), reorderOptionalQuestionsToSequenceEnd(), and ilTestVirtualSequence\wasAnsweredInThisPass().
Here is the caller graph for this function:
|
private |
Definition at line 189 of file class.ilTestSequence.php.
References $ilDB, $res, and $row.
Referenced by loadFromDb().
Here is the caller graph for this function:| ilTestSequence::loadFromDb | ( | ) |
Loads the sequence data for a given active id.
Definition at line 159 of file class.ilTestSequence.php.
References loadCheckedQuestions(), loadOptionalQuestions(), and loadQuestionSequence().
Here is the call graph for this function:
|
private |
Definition at line 203 of file class.ilTestSequence.php.
References $ilDB, $res, and $row.
Referenced by loadFromDb().
Here is the caller graph for this function:| ilTestSequence::loadQuestions | ( | ilTestQuestionSetConfig | $testQuestionSetConfig = null, |
$taxonomyFilterSelection = array() |
|||
| ) |
Loads the question mapping.
Definition at line 135 of file class.ilTestSequence.php.
|
private |
Definition at line 166 of file class.ilTestSequence.php.
References $ilDB, $result, $row, and setAnsweringOptionalQuestionsConfirmed().
Referenced by loadFromDb().
Here is the call graph for this function:
Here is the caller graph for this function:| ilTestSequence::openQuestionExists | ( | ) |
Definition at line 760 of file class.ilTestSequence.php.
References getFirstSequence().
Here is the call graph for this function:| ilTestSequence::pcArrayShuffle | ( | $array | ) |
Shuffles the values of a given array.
Shuffles the values of a given array
| array | $array | An array which should be shuffled @access public |
Definition at line 613 of file class.ilTestSequence.php.
References $result.
Referenced by createNewSequence().
Here is the caller graph for this function:| ilTestSequence::postponeQuestion | ( | $question_id | ) |
Definition at line 301 of file class.ilTestSequence.php.
References isPostponedQuestion().
Here is the call graph for this function:| ilTestSequence::postponeSequence | ( | $sequence | ) |
Definition at line 371 of file class.ilTestSequence.php.
References isPostponedSequence().
Here is the call graph for this function:| ilTestSequence::questionExists | ( | $questionId | ) |
Definition at line 770 of file class.ilTestSequence.php.
| ilTestSequence::reorderOptionalQuestionsToSequenceEnd | ( | ) |
Definition at line 800 of file class.ilTestSequence.php.
References getQuestionForSequence(), and isQuestionOptional().
Here is the call graph for this function:
|
private |
@global ilDB $ilDB
Definition at line 263 of file class.ilTestSequence.php.
References $ilDB.
Referenced by saveToDb().
Here is the caller graph for this function:
|
private |
@global ilDB $ilDB
Definition at line 280 of file class.ilTestSequence.php.
References $ilDB.
Referenced by saveToDb().
Here is the caller graph for this function:
|
private |
Definition at line 229 of file class.ilTestSequence.php.
References $ilDB, and isAnsweringOptionalQuestionsConfirmed().
Referenced by saveToDb().
Here is the call graph for this function:
Here is the caller graph for this function:| ilTestSequence::saveToDb | ( | ) |
Saves the sequence data for a given pass to the database.
@access public
Definition at line 222 of file class.ilTestSequence.php.
References saveNewlyCheckedQuestion(), saveOptionalQuestions(), and saveQuestionSequence().
Referenced by hideCorrectAnsweredQuestions(), and ilLOTestQuestionAdapter\prepareTestPass().
Here is the call graph for this function:
Here is the caller graph for this function:| ilTestSequence::setAnsweringOptionalQuestionsConfirmed | ( | $answeringOptionalQuestionsConfirmed | ) |
| boolean | $answeringOptionalQuestionsConfirmed |
Definition at line 830 of file class.ilTestSequence.php.
References $answeringOptionalQuestionsConfirmed.
Referenced by loadQuestionSequence().
Here is the caller graph for this function:| ilTestSequence::setConsiderHiddenQuestionsEnabled | ( | $considerHiddenQuestionsEnabled | ) |
| boolean | $considerHiddenQuestionsEnabled |
Definition at line 846 of file class.ilTestSequence.php.
References $considerHiddenQuestionsEnabled.
| ilTestSequence::setConsiderOptionalQuestionsEnabled | ( | $considerOptionalQuestionsEnabled | ) |
| boolean | $considerOptionalQuestionsEnabled |
Definition at line 862 of file class.ilTestSequence.php.
References $considerOptionalQuestionsEnabled.
| ilTestSequence::setPass | ( | $pass | ) |
Definition at line 689 of file class.ilTestSequence.php.
References $pass.
| ilTestSequence::setQuestionChecked | ( | $questionId | ) |
Definition at line 395 of file class.ilTestSequence.php.
| ilTestSequence::setQuestionOptional | ( | $questionId | ) |
Definition at line 775 of file class.ilTestSequence.php.
Referenced by ilLOTestQuestionAdapter\setQuestionsOptional().
Here is the caller graph for this function:| ilTestSequence::$active_id |
Definition at line 37 of file class.ilTestSequence.php.
Referenced by getActiveId(), ilTestSequenceRandomQuestionSet\hasRandomQuestionsForPass(), and ilTestSequence().
|
private |
Definition at line 56 of file class.ilTestSequence.php.
|
private |
Definition at line 71 of file class.ilTestSequence.php.
Referenced by isAnsweringOptionalQuestionsConfirmed(), and setAnsweringOptionalQuestionsConfirmed().
|
private |
Definition at line 76 of file class.ilTestSequence.php.
Referenced by isConsiderHiddenQuestionsEnabled(), and setConsiderHiddenQuestionsEnabled().
|
private |
Definition at line 81 of file class.ilTestSequence.php.
Referenced by isConsiderOptionalQuestionsEnabled(), and setConsiderOptionalQuestionsEnabled().
| ilTestSequence::$isRandomTest |
Definition at line 51 of file class.ilTestSequence.php.
|
private |
Definition at line 61 of file class.ilTestSequence.php.
|
private |
Definition at line 66 of file class.ilTestSequence.php.
Referenced by getOptionalQuestions().
| ilTestSequence::$pass |
Definition at line 44 of file class.ilTestSequence.php.
Referenced by getPass(), ilTestSequenceRandomQuestionSet\hasRandomQuestionsForPass(), hideCorrectAnsweredQuestions(), ilTestSequence(), and setPass().
| ilTestSequence::$questions |
Definition at line 30 of file class.ilTestSequence.php.
Referenced by getOrderedSequenceQuestions().
| ilTestSequence::$sequencedata |
Definition at line 23 of file class.ilTestSequence.php.