ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Test sequence handler. More...
Data Fields | |
$sequencedata | |
$questions | |
$active_id | |
$pass | |
$isRandomTest | |
Protected Member Functions | |
loadPresentedQuestions () | |
saveNewlyPresentedQuestion () | |
getCorrectedSequence () | |
Protected Attributes | |
$alreadyPresentedQuestions = array() | |
$newlyPresentedQuestion = 0 | |
$alreadyCheckedQuestions | |
$newlyCheckedQuestion | |
$optionalQuestions | |
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 | |
$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 102 of file class.ilTestSequence.php.
References $active_id, and $pass.
ilTestSequence::clearHiddenQuestions | ( | ) |
Definition at line 761 of file class.ilTestSequence.php.
Referenced by ilLOTestQuestionAdapter\hideQuestions().
ilTestSequence::clearOptionalQuestions | ( | ) |
Definition at line 832 of file class.ilTestSequence.php.
Referenced by ilLOTestQuestionAdapter\setQuestionsOptional().
ilTestSequence::createNewSequence | ( | $max, | |
$shuffle | |||
) |
Definition at line 128 of file class.ilTestSequence.php.
References $i, and pcArrayShuffle().
|
private |
Definition at line 559 of file class.ilTestSequence.php.
Referenced by getCorrectedSequence().
ilTestSequence::getActiveId | ( | ) |
Implements ilTestSequenceSummaryProvider.
Definition at line 123 of file class.ilTestSequence.php.
References $active_id.
|
protected |
Definition at line 578 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 613 of file class.ilTestSequence.php.
References getCorrectedSequence().
Referenced by hasStarted(), and openQuestionExists().
ilTestSequence::getLastSequence | ( | ) |
Definition at line 623 of file class.ilTestSequence.php.
References getCorrectedSequence().
ilTestSequence::getNextSequence | ( | $sequence | ) |
Definition at line 633 of file class.ilTestSequence.php.
References getCorrectedSequence().
Referenced by isNextQuestionPresented().
ilTestSequence::getOptionalQuestions | ( | ) |
ilTestSequence::getOrderedSequence | ( | ) |
Definition at line 506 of file class.ilTestSequence.php.
References isConsiderHiddenQuestionsEnabled(), isConsiderOptionalQuestionsEnabled(), and isHiddenSequence().
ilTestSequence::getOrderedSequenceQuestions | ( | ) |
Definition at line 525 of file class.ilTestSequence.php.
References $questions, isConsiderHiddenQuestionsEnabled(), isConsiderOptionalQuestionsEnabled(), isHiddenQuestion(), and isQuestionOptional().
ilTestSequence::getPass | ( | ) |
Definition at line 733 of file class.ilTestSequence.php.
References $pass.
ilTestSequence::getPositionOfSequence | ( | $sequence | ) |
Definition at line 490 of file class.ilTestSequence.php.
References getCorrectedSequence().
ilTestSequence::getPreviousSequence | ( | $sequence | ) |
Definition at line 646 of file class.ilTestSequence.php.
References getCorrectedSequence().
ilTestSequence::getQuestionForSequence | ( | $sequence | ) |
Definition at line 678 of file class.ilTestSequence.php.
Referenced by getSequenceSummary(), getUserSequenceQuestions(), isNextQuestionPresented(), and reorderOptionalQuestionsToSequenceEnd().
ilTestSequence::getQuestionIds | ( | ) |
Implements ilTestQuestionSequence.
Definition at line 802 of file class.ilTestSequence.php.
Referenced by ilLOTestQuestionAdapter\hideQuestions(), ilLOTestQuestionAdapter\setQuestionsOptional(), ilLOTestQuestionAdapter\updateRandomQuestions(), and ilLOTestQuestionAdapter\updateSeparateTestQuestions().
ilTestSequence::getSequenceForQuestion | ( | $question_id | ) |
Definition at line 608 of file class.ilTestSequence.php.
Referenced by isNextQuestionPresented().
ilTestSequence::getSequenceSummary | ( | $obligationsFilterEnabled = false | ) |
Implements ilTestSequenceSummaryProvider.
Definition at line 690 of file class.ilTestSequence.php.
References $key, $pass, $row, ilObjTest\_getSolvedQuestions(), ilObjTest\_instanciateQuestion(), getCorrectedSequence(), getQuestionForSequence(), isPostponedQuestion(), ilObjTest\isQuestionObligatory(), and isQuestionPresented().
ilTestSequence::getUserQuestionCount | ( | ) |
Definition at line 501 of file class.ilTestSequence.php.
References getCorrectedSequence().
ilTestSequence::getUserSequence | ( | ) |
Definition at line 544 of file class.ilTestSequence.php.
References getCorrectedSequence().
ilTestSequence::getUserSequenceQuestions | ( | ) |
Definition at line 549 of file class.ilTestSequence.php.
References getCorrectedSequence(), and getQuestionForSequence().
ilTestSequence::hasHiddenQuestions | ( | ) |
Definition at line 752 of file class.ilTestSequence.php.
ilTestSequence::hasOptionalQuestions | ( | ) |
Definition at line 822 of file class.ilTestSequence.php.
ilTestSequence::hasSequence | ( | ) |
Definition at line 743 of file class.ilTestSequence.php.
ilTestSequence::hasStarted | ( | ilTestSession | $testSession | ) |
Definition at line 783 of file class.ilTestSequence.php.
References getFirstSequence(), and ilTestSession\getLastSequence().
|
private |
Definition at line 766 of file class.ilTestSequence.php.
References $pass, $result, ilObjTest\getTestResult(), hideQuestion(), and saveToDb().
ilTestSequence::hideQuestion | ( | $question_id | ) |
Definition at line 362 of file class.ilTestSequence.php.
References isHiddenQuestion().
Referenced by hideCorrectAnsweredQuestions(), and ilLOTestQuestionAdapter\hideQuestions().
ilTestSequence::hideSequence | ( | $sequence | ) |
Definition at line 435 of file class.ilTestSequence.php.
References isHiddenSequence().
ilTestSequence::isAnsweringOptionalQuestionsConfirmed | ( | ) |
Definition at line 856 of file class.ilTestSequence.php.
References $answeringOptionalQuestionsConfirmed.
Referenced by saveQuestionSequence(), and ilTestVirtualSequence\wasAnsweredInThisPass().
ilTestSequence::isConsiderHiddenQuestionsEnabled | ( | ) |
Definition at line 872 of file class.ilTestSequence.php.
References $considerHiddenQuestionsEnabled.
Referenced by getCorrectedSequence(), getOrderedSequence(), and getOrderedSequenceQuestions().
ilTestSequence::isConsiderOptionalQuestionsEnabled | ( | ) |
Definition at line 888 of file class.ilTestSequence.php.
References $considerOptionalQuestionsEnabled.
Referenced by getCorrectedSequence(), getOrderedSequence(), and getOrderedSequenceQuestions().
ilTestSequence::isHiddenQuestion | ( | $question_id | ) |
Definition at line 381 of file class.ilTestSequence.php.
Referenced by getOrderedSequenceQuestions(), hideQuestion(), and ilTestVirtualSequence\wasAnsweredInThisPass().
ilTestSequence::isHiddenSequence | ( | $sequence | ) |
Definition at line 408 of file class.ilTestSequence.php.
Referenced by getOrderedSequence(), and hideSequence().
ilTestSequence::isNextQuestionPresented | ( | $questionId | ) |
Definition at line 459 of file class.ilTestSequence.php.
References getNextSequence(), getQuestionForSequence(), and getSequenceForQuestion().
ilTestSequence::isPostponedQuestion | ( | $question_id | ) |
Definition at line 369 of file class.ilTestSequence.php.
Referenced by getSequenceSummary(), and postponeQuestion().
ilTestSequence::isPostponedSequence | ( | $sequence | ) |
Definition at line 393 of file class.ilTestSequence.php.
Referenced by postponeSequence().
ilTestSequence::isQuestionChecked | ( | $questionId | ) |
Definition at line 485 of file class.ilTestSequence.php.
ilTestSequence::isQuestionOptional | ( | $questionId | ) |
Definition at line 817 of file class.ilTestSequence.php.
Referenced by getOrderedSequenceQuestions(), reorderOptionalQuestionsToSequenceEnd(), and ilTestVirtualSequence\wasAnsweredInThisPass().
ilTestSequence::isQuestionPresented | ( | $questionId | ) |
Definition at line 452 of file class.ilTestSequence.php.
Referenced by getSequenceSummary().
|
private |
Definition at line 224 of file class.ilTestSequence.php.
References $DIC, $ilDB, $res, and $row.
Referenced by loadFromDb().
ilTestSequence::loadFromDb | ( | ) |
Loads the sequence data for a given active id.
Definition at line 171 of file class.ilTestSequence.php.
References loadCheckedQuestions(), loadOptionalQuestions(), loadPresentedQuestions(), and loadQuestionSequence().
|
private |
Definition at line 240 of file class.ilTestSequence.php.
References $DIC, $ilDB, $res, and $row.
Referenced by loadFromDb().
|
protected |
Definition at line 209 of file class.ilTestSequence.php.
References $DIC, $res, and $row.
Referenced by loadFromDb().
ilTestSequence::loadQuestions | ( | ilTestQuestionSetConfig | $testQuestionSetConfig = null , |
$taxonomyFilterSelection = array() |
|||
) |
Loads the question mapping.
Definition at line 145 of file class.ilTestSequence.php.
References $data, $DIC, $ilDB, $index, and $result.
|
private |
Definition at line 179 of file class.ilTestSequence.php.
References $DIC, $ilDB, $result, $row, and setAnsweringOptionalQuestionsConfirmed().
Referenced by loadFromDb().
ilTestSequence::openQuestionExists | ( | ) |
Definition at line 797 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 667 of file class.ilTestSequence.php.
References $key, $keys, and $result.
Referenced by createNewSequence().
ilTestSequence::postponeQuestion | ( | $question_id | ) |
Definition at line 355 of file class.ilTestSequence.php.
References isPostponedQuestion().
ilTestSequence::postponeSequence | ( | $sequence | ) |
Definition at line 423 of file class.ilTestSequence.php.
References isPostponedSequence().
ilTestSequence::questionExists | ( | $questionId | ) |
Definition at line 807 of file class.ilTestSequence.php.
ilTestSequence::reorderOptionalQuestionsToSequenceEnd | ( | ) |
Definition at line 837 of file class.ilTestSequence.php.
References $index, getQuestionForSequence(), and isQuestionOptional().
|
private |
ilDBInterface $ilDB
Definition at line 316 of file class.ilTestSequence.php.
Referenced by saveToDb().
|
protected |
Definition at line 300 of file class.ilTestSequence.php.
References $DIC.
Referenced by saveToDb().
|
private |
ilDBInterface $ilDB
Definition at line 333 of file class.ilTestSequence.php.
Referenced by saveToDb().
|
private |
Definition at line 269 of file class.ilTestSequence.php.
References $DIC, $ilDB, and isAnsweringOptionalQuestionsConfirmed().
Referenced by saveToDb().
ilTestSequence::saveToDb | ( | ) |
Saves the sequence data for a given pass to the database.
public
Definition at line 261 of file class.ilTestSequence.php.
References saveNewlyCheckedQuestion(), saveNewlyPresentedQuestion(), saveOptionalQuestions(), and saveQuestionSequence().
Referenced by hideCorrectAnsweredQuestions(), and ilLOTestQuestionAdapter\prepareTestPass().
ilTestSequence::setAnsweringOptionalQuestionsConfirmed | ( | $answeringOptionalQuestionsConfirmed | ) |
boolean | $answeringOptionalQuestionsConfirmed |
Definition at line 864 of file class.ilTestSequence.php.
References $answeringOptionalQuestionsConfirmed.
Referenced by loadQuestionSequence().
ilTestSequence::setConsiderHiddenQuestionsEnabled | ( | $considerHiddenQuestionsEnabled | ) |
boolean | $considerHiddenQuestionsEnabled |
Definition at line 880 of file class.ilTestSequence.php.
References $considerHiddenQuestionsEnabled.
ilTestSequence::setConsiderOptionalQuestionsEnabled | ( | $considerOptionalQuestionsEnabled | ) |
boolean | $considerOptionalQuestionsEnabled |
Definition at line 896 of file class.ilTestSequence.php.
References $considerOptionalQuestionsEnabled.
ilTestSequence::setPass | ( | $pass | ) |
ilTestSequence::setQuestionChecked | ( | $questionId | ) |
Definition at line 480 of file class.ilTestSequence.php.
ilTestSequence::setQuestionOptional | ( | $questionId | ) |
Definition at line 812 of file class.ilTestSequence.php.
Referenced by ilLOTestQuestionAdapter\setQuestionsOptional().
ilTestSequence::setQuestionPresented | ( | $questionId | ) |
Definition at line 447 of file class.ilTestSequence.php.
ilTestSequence::$active_id |
Definition at line 37 of file class.ilTestSequence.php.
Referenced by __construct(), getActiveId(), and ilTestSequenceRandomQuestionSet\hasRandomQuestionsForPass().
|
protected |
Definition at line 66 of file class.ilTestSequence.php.
|
protected |
Definition at line 56 of file class.ilTestSequence.php.
|
private |
Definition at line 81 of file class.ilTestSequence.php.
Referenced by isAnsweringOptionalQuestionsConfirmed(), and setAnsweringOptionalQuestionsConfirmed().
|
private |
Definition at line 86 of file class.ilTestSequence.php.
Referenced by isConsiderHiddenQuestionsEnabled(), and setConsiderHiddenQuestionsEnabled().
|
private |
Definition at line 91 of file class.ilTestSequence.php.
Referenced by isConsiderOptionalQuestionsEnabled(), and setConsiderOptionalQuestionsEnabled().
ilTestSequence::$isRandomTest |
Definition at line 51 of file class.ilTestSequence.php.
|
protected |
Definition at line 71 of file class.ilTestSequence.php.
|
protected |
Definition at line 61 of file class.ilTestSequence.php.
|
protected |
Definition at line 76 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(), hideCorrectAnsweredQuestions(), 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.