ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
|
Test sequence handler. More...
Data Fields | |
$sequencedata | |
$questions | |
$active_id | |
$pass | |
$isRandomTest | |
Protected Member Functions | |
getCorrectedSequence () | |
Private Member Functions | |
loadQuestionSequence () | |
loadCheckedQuestions () | |
loadOptionalQuestions () | |
saveQuestionSequence () | |
saveNewlyCheckedQuestion () | |
ilDBInterface $ilDB More... | |
saveOptionalQuestions () | |
ilDBInterface $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::__construct | ( | $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 public |
Definition at line 92 of file class.ilTestSequence.php.
References $active_id, $pass, and array.
ilTestSequence::clearHiddenQuestions | ( | ) |
Definition at line 719 of file class.ilTestSequence.php.
References array.
Referenced by ilLOTestQuestionAdapter\hideQuestions().
ilTestSequence::clearOptionalQuestions | ( | ) |
Definition at line 796 of file class.ilTestSequence.php.
References array.
Referenced by ilLOTestQuestionAdapter\setQuestionsOptional().
ilTestSequence::createNewSequence | ( | $max, | |
$shuffle | |||
) |
Definition at line 118 of file class.ilTestSequence.php.
References array, and pcArrayShuffle().
|
private |
Definition at line 485 of file class.ilTestSequence.php.
Referenced by getCorrectedSequence().
ilTestSequence::getActiveId | ( | ) |
Implements ilTestSequenceSummaryProvider.
Definition at line 113 of file class.ilTestSequence.php.
References $active_id.
|
protected |
Definition at line 506 of file class.ilTestSequence.php.
References ensureQuestionNotInSequence(), isConsiderHiddenQuestionsEnabled(), and isConsiderOptionalQuestionsEnabled().
Referenced by getFirstSequence(), getLastSequence(), getNextSequence(), getPositionOfSequence(), getPreviousSequence(), getSequenceSummary(), getUserQuestionCount(), getUserSequence(), and getUserSequenceQuestions().
ilTestSequence::getFirstSequence | ( | ) |
Definition at line 550 of file class.ilTestSequence.php.
References getCorrectedSequence().
Referenced by hasStarted(), and openQuestionExists().
ilTestSequence::getLastSequence | ( | ) |
Definition at line 563 of file class.ilTestSequence.php.
References getCorrectedSequence().
ilTestSequence::getNextSequence | ( | $sequence | ) |
Definition at line 576 of file class.ilTestSequence.php.
References getCorrectedSequence().
ilTestSequence::getOptionalQuestions | ( | ) |
ilTestSequence::getOrderedSequence | ( | ) |
Definition at line 425 of file class.ilTestSequence.php.
References array, isConsiderHiddenQuestionsEnabled(), isConsiderOptionalQuestionsEnabled(), and isHiddenSequence().
ilTestSequence::getOrderedSequenceQuestions | ( | ) |
Definition at line 447 of file class.ilTestSequence.php.
References $questions, array, isConsiderHiddenQuestionsEnabled(), isConsiderOptionalQuestionsEnabled(), isHiddenQuestion(), and isQuestionOptional().
ilTestSequence::getPass | ( | ) |
Definition at line 685 of file class.ilTestSequence.php.
References $pass.
ilTestSequence::getPositionOfSequence | ( | $sequence | ) |
Definition at line 406 of file class.ilTestSequence.php.
References getCorrectedSequence().
ilTestSequence::getPreviousSequence | ( | $sequence | ) |
Definition at line 591 of file class.ilTestSequence.php.
References getCorrectedSequence().
ilTestSequence::getQuestionForSequence | ( | $sequence | ) |
Definition at line 626 of file class.ilTestSequence.php.
Referenced by getSequenceSummary(), getUserSequenceQuestions(), and reorderOptionalQuestionsToSequenceEnd().
ilTestSequence::getQuestionIds | ( | ) |
Implements ilTestQuestionSequence.
Definition at line 766 of file class.ilTestSequence.php.
Referenced by ilLOTestQuestionAdapter\hideQuestions(), ilLOTestQuestionAdapter\setQuestionsOptional(), ilLOTestQuestionAdapter\updateRandomQuestions(), and ilLOTestQuestionAdapter\updateSeparateTestQuestions().
ilTestSequence::getSequenceForQuestion | ( | $question_id | ) |
Definition at line 545 of file class.ilTestSequence.php.
ilTestSequence::getSequenceSummary | ( | $obligationsFilterEnabled = false | ) |
Implements ilTestSequenceSummaryProvider.
Definition at line 639 of file class.ilTestSequence.php.
References $pass, $row, ilObjTest\_getSolvedQuestions(), ilObjTest\_instanciateQuestion(), array, getCorrectedSequence(), getQuestionForSequence(), isPostponedQuestion(), and ilObjTest\isQuestionObligatory().
ilTestSequence::getUserQuestionCount | ( | ) |
Definition at line 420 of file class.ilTestSequence.php.
References getCorrectedSequence().
ilTestSequence::getUserSequence | ( | ) |
Definition at line 469 of file class.ilTestSequence.php.
References getCorrectedSequence().
ilTestSequence::getUserSequenceQuestions | ( | ) |
Definition at line 474 of file class.ilTestSequence.php.
References array, getCorrectedSequence(), and getQuestionForSequence().
ilTestSequence::hasHiddenQuestions | ( | ) |
Definition at line 707 of file class.ilTestSequence.php.
ilTestSequence::hasOptionalQuestions | ( | ) |
Definition at line 786 of file class.ilTestSequence.php.
ilTestSequence::hasSequence | ( | ) |
Definition at line 695 of file class.ilTestSequence.php.
ilTestSequence::hasStarted | ( | ilTestSession | $testSession | ) |
Definition at line 745 of file class.ilTestSequence.php.
References getFirstSequence(), and ilTestSession\getLastSequence().
|
private |
Definition at line 724 of file class.ilTestSequence.php.
References $result, ilObjTest\getTestResult(), hideQuestion(), and saveToDb().
ilTestSequence::hideQuestion | ( | $question_id | ) |
Definition at line 310 of file class.ilTestSequence.php.
References isHiddenQuestion().
Referenced by hideCorrectAnsweredQuestions(), and ilLOTestQuestionAdapter\hideQuestions().
ilTestSequence::hideSequence | ( | $sequence | ) |
Definition at line 384 of file class.ilTestSequence.php.
References array, and isHiddenSequence().
ilTestSequence::isAnsweringOptionalQuestionsConfirmed | ( | ) |
Definition at line 823 of file class.ilTestSequence.php.
References $answeringOptionalQuestionsConfirmed.
Referenced by saveQuestionSequence(), and ilTestVirtualSequence\wasAnsweredInThisPass().
ilTestSequence::isConsiderHiddenQuestionsEnabled | ( | ) |
Definition at line 839 of file class.ilTestSequence.php.
References $considerHiddenQuestionsEnabled.
Referenced by getCorrectedSequence(), getOrderedSequence(), and getOrderedSequenceQuestions().
ilTestSequence::isConsiderOptionalQuestionsEnabled | ( | ) |
Definition at line 855 of file class.ilTestSequence.php.
References $considerOptionalQuestionsEnabled.
Referenced by getCorrectedSequence(), getOrderedSequence(), and getOrderedSequenceQuestions().
ilTestSequence::isHiddenQuestion | ( | $question_id | ) |
Definition at line 331 of file class.ilTestSequence.php.
Referenced by getOrderedSequenceQuestions(), hideQuestion(), and ilTestVirtualSequence\wasAnsweredInThisPass().
ilTestSequence::isHiddenSequence | ( | $sequence | ) |
Definition at line 358 of file class.ilTestSequence.php.
Referenced by getOrderedSequence(), and hideSequence().
ilTestSequence::isPostponedQuestion | ( | $question_id | ) |
Definition at line 318 of file class.ilTestSequence.php.
Referenced by getSequenceSummary(), and postponeQuestion().
ilTestSequence::isPostponedSequence | ( | $sequence | ) |
Definition at line 344 of file class.ilTestSequence.php.
Referenced by postponeSequence().
ilTestSequence::isQuestionChecked | ( | $questionId | ) |
Definition at line 401 of file class.ilTestSequence.php.
ilTestSequence::isQuestionOptional | ( | $questionId | ) |
Definition at line 781 of file class.ilTestSequence.php.
Referenced by getOrderedSequenceQuestions(), reorderOptionalQuestionsToSequenceEnd(), and ilTestVirtualSequence\wasAnsweredInThisPass().
|
private |
Definition at line 190 of file class.ilTestSequence.php.
References $ilDB, $res, $row, and array.
Referenced by loadFromDb().
ilTestSequence::loadFromDb | ( | ) |
Loads the sequence data for a given active id.
Definition at line 160 of file class.ilTestSequence.php.
References loadCheckedQuestions(), loadOptionalQuestions(), and loadQuestionSequence().
|
private |
Definition at line 204 of file class.ilTestSequence.php.
References $ilDB, $res, $row, and array.
Referenced by loadFromDb().
ilTestSequence::loadQuestions | ( | ilTestQuestionSetConfig | $testQuestionSetConfig = null , |
$taxonomyFilterSelection = array() |
|||
) |
Loads the question mapping.
Definition at line 135 of file class.ilTestSequence.php.
References $data, $ilDB, $result, and array.
|
private |
Definition at line 167 of file class.ilTestSequence.php.
References $ilDB, $result, $row, array, and setAnsweringOptionalQuestionsConfirmed().
Referenced by loadFromDb().
ilTestSequence::openQuestionExists | ( | ) |
Definition at line 761 of file class.ilTestSequence.php.
References getFirstSequence().
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 public |
Definition at line 614 of file class.ilTestSequence.php.
References $result, and array.
Referenced by createNewSequence().
ilTestSequence::postponeQuestion | ( | $question_id | ) |
Definition at line 302 of file class.ilTestSequence.php.
References isPostponedQuestion().
ilTestSequence::postponeSequence | ( | $sequence | ) |
Definition at line 372 of file class.ilTestSequence.php.
References array, and isPostponedSequence().
ilTestSequence::questionExists | ( | $questionId | ) |
Definition at line 771 of file class.ilTestSequence.php.
ilTestSequence::reorderOptionalQuestionsToSequenceEnd | ( | ) |
Definition at line 801 of file class.ilTestSequence.php.
References array, getQuestionForSequence(), and isQuestionOptional().
|
private |
ilDBInterface $ilDB
Definition at line 264 of file class.ilTestSequence.php.
Referenced by saveToDb().
|
private |
ilDBInterface $ilDB
Definition at line 281 of file class.ilTestSequence.php.
Referenced by saveToDb().
|
private |
Definition at line 230 of file class.ilTestSequence.php.
References $ilDB, array, isAnsweringOptionalQuestionsConfirmed(), and time.
Referenced by saveToDb().
ilTestSequence::saveToDb | ( | ) |
Saves the sequence data for a given pass to the database.
public
Definition at line 223 of file class.ilTestSequence.php.
References saveNewlyCheckedQuestion(), saveOptionalQuestions(), and saveQuestionSequence().
Referenced by hideCorrectAnsweredQuestions(), and ilLOTestQuestionAdapter\prepareTestPass().
ilTestSequence::setAnsweringOptionalQuestionsConfirmed | ( | $answeringOptionalQuestionsConfirmed | ) |
boolean | $answeringOptionalQuestionsConfirmed |
Definition at line 831 of file class.ilTestSequence.php.
References $answeringOptionalQuestionsConfirmed.
Referenced by loadQuestionSequence().
ilTestSequence::setConsiderHiddenQuestionsEnabled | ( | $considerHiddenQuestionsEnabled | ) |
boolean | $considerHiddenQuestionsEnabled |
Definition at line 847 of file class.ilTestSequence.php.
References $considerHiddenQuestionsEnabled.
ilTestSequence::setConsiderOptionalQuestionsEnabled | ( | $considerOptionalQuestionsEnabled | ) |
boolean | $considerOptionalQuestionsEnabled |
Definition at line 863 of file class.ilTestSequence.php.
References $considerOptionalQuestionsEnabled.
ilTestSequence::setPass | ( | $pass | ) |
ilTestSequence::setQuestionChecked | ( | $questionId | ) |
Definition at line 396 of file class.ilTestSequence.php.
ilTestSequence::setQuestionOptional | ( | $questionId | ) |
Definition at line 776 of file class.ilTestSequence.php.
Referenced by ilLOTestQuestionAdapter\setQuestionsOptional().
ilTestSequence::$active_id |
Definition at line 37 of file class.ilTestSequence.php.
Referenced by __construct(), getActiveId(), and ilTestSequenceRandomQuestionSet\hasRandomQuestionsForPass().
|
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 __construct(), getPass(), getSequenceSummary(), ilTestSequenceRandomQuestionSet\hasRandomQuestionsForPass(), 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.