|
ILIAS
release_8 Revision v8.24
|
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...
Inheritance diagram for ilTestSequence:
Collaboration diagram for ilTestSequence: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 () | |
| @global ilDBInterface $ilDB More... | |
| saveOptionalQuestions () | |
| @global ilDBInterface $ilDB More... | |
| ensureQuestionNotInSequence ($sequence, $questionId) | |
| hideCorrectAnsweredQuestions (ilObjTest $testOBJ, $activeId, $pass) | |
Private Attributes | |
| $answeringOptionalQuestionsConfirmed | |
| $considerHiddenQuestionsEnabled | |
| $considerOptionalQuestionsEnabled | |
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.
ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.
If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning Test sequence handler
This class manages the sequence settings for a given user
Definition at line 28 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 @access public |
Definition at line 114 of file class.ilTestSequence.php.
References $active_id, and $pass.
| ilTestSequence::clearHiddenQuestions | ( | ) |
Definition at line 773 of file class.ilTestSequence.php.
Referenced by ilLOTestQuestionAdapter\hideQuestions().
Here is the caller graph for this function:| ilTestSequence::clearOptionalQuestions | ( | ) |
Definition at line 844 of file class.ilTestSequence.php.
Referenced by ilLOTestQuestionAdapter\setQuestionsOptional().
Here is the caller graph for this function:| ilTestSequence::createNewSequence | ( | $max, | |
| $shuffle | |||
| ) |
Definition at line 140 of file class.ilTestSequence.php.
References $i, and pcArrayShuffle().
Here is the call graph for this function:
|
private |
Definition at line 571 of file class.ilTestSequence.php.
Referenced by getCorrectedSequence().
Here is the caller graph for this function:| ilTestSequence::getActiveId | ( | ) |
Implements ilTestSequenceSummaryProvider.
Definition at line 135 of file class.ilTestSequence.php.
References $active_id.
|
protected |
Definition at line 590 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 625 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 635 of file class.ilTestSequence.php.
References getCorrectedSequence().
Here is the call graph for this function:| ilTestSequence::getNextSequence | ( | $sequence | ) |
Definition at line 645 of file class.ilTestSequence.php.
References getCorrectedSequence().
Referenced by isNextQuestionPresented().
Here is the call graph for this function:
Here is the caller graph for this function:| ilTestSequence::getOptionalQuestions | ( | ) |
Definition at line 839 of file class.ilTestSequence.php.
References $optionalQuestions.
| ilTestSequence::getOrderedSequence | ( | ) |
Definition at line 516 of file class.ilTestSequence.php.
References isConsiderHiddenQuestionsEnabled(), and isHiddenSequence().
Here is the call graph for this function:| ilTestSequence::getOrderedSequenceQuestions | ( | ) |
Definition at line 537 of file class.ilTestSequence.php.
References $questions, isConsiderHiddenQuestionsEnabled(), isConsiderOptionalQuestionsEnabled(), isHiddenQuestion(), and isQuestionOptional().
Here is the call graph for this function:| ilTestSequence::getPass | ( | ) |
Definition at line 745 of file class.ilTestSequence.php.
References $pass.
| ilTestSequence::getPositionOfSequence | ( | $sequence | ) |
Definition at line 500 of file class.ilTestSequence.php.
References getCorrectedSequence().
Here is the call graph for this function:| ilTestSequence::getPreviousSequence | ( | $sequence | ) |
Definition at line 658 of file class.ilTestSequence.php.
References getCorrectedSequence().
Here is the call graph for this function:| ilTestSequence::getQuestionForSequence | ( | $sequence | ) |
Definition at line 690 of file class.ilTestSequence.php.
Referenced by getSequenceSummary(), getUserSequenceQuestions(), isNextQuestionPresented(), and reorderOptionalQuestionsToSequenceEnd().
Here is the caller graph for this function:| ilTestSequence::getQuestionIds | ( | ) |
Implements ilTestQuestionSequence.
Definition at line 814 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 620 of file class.ilTestSequence.php.
Referenced by isNextQuestionPresented().
Here is the caller graph for this function:| ilTestSequence::getSequenceSummary | ( | $obligationsFilterEnabled = false | ) |
Implements ilTestSequenceSummaryProvider.
Definition at line 702 of file class.ilTestSequence.php.
References ILIAS\LTI\ToolProvider\$key, ilObjTest\_getSolvedQuestions(), ilObjTest\_instanciateQuestion(), getCorrectedSequence(), getQuestionForSequence(), isPostponedQuestion(), and ilObjTest\isQuestionObligatory().
Here is the call graph for this function:| ilTestSequence::getUserQuestionCount | ( | ) |
Definition at line 511 of file class.ilTestSequence.php.
References getCorrectedSequence().
Here is the call graph for this function:| ilTestSequence::getUserSequence | ( | ) |
Definition at line 556 of file class.ilTestSequence.php.
References getCorrectedSequence().
Here is the call graph for this function:| ilTestSequence::getUserSequenceQuestions | ( | ) |
Definition at line 561 of file class.ilTestSequence.php.
References getCorrectedSequence(), and getQuestionForSequence().
Here is the call graph for this function:| ilTestSequence::hasHiddenQuestions | ( | ) |
Definition at line 764 of file class.ilTestSequence.php.
| ilTestSequence::hasOptionalQuestions | ( | ) |
Definition at line 834 of file class.ilTestSequence.php.
| ilTestSequence::hasSequence | ( | ) |
Definition at line 755 of file class.ilTestSequence.php.
| ilTestSequence::hasStarted | ( | ilTestSession | $testSession | ) |
Definition at line 795 of file class.ilTestSequence.php.
References ilTestSession\getLastSequence().
Here is the call graph for this function:
|
private |
Definition at line 778 of file class.ilTestSequence.php.
References $pass, ilObjTest\getTestResult(), hideQuestion(), and saveToDb().
Here is the call graph for this function:| ilTestSequence::hideQuestion | ( | $question_id | ) |
Definition at line 372 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 445 of file class.ilTestSequence.php.
References isHiddenSequence().
Here is the call graph for this function:| ilTestSequence::isAnsweringOptionalQuestionsConfirmed | ( | ) |
Definition at line 868 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 884 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 900 of file class.ilTestSequence.php.
References $considerOptionalQuestionsEnabled.
Referenced by getCorrectedSequence(), and getOrderedSequenceQuestions().
Here is the caller graph for this function:| ilTestSequence::isHiddenQuestion | ( | $question_id | ) |
Definition at line 391 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 418 of file class.ilTestSequence.php.
Referenced by getOrderedSequence(), and hideSequence().
Here is the caller graph for this function:| ilTestSequence::isNextQuestionPresented | ( | $questionId | ) |
Definition at line 469 of file class.ilTestSequence.php.
References getNextSequence(), getQuestionForSequence(), and getSequenceForQuestion().
Here is the call graph for this function:| ilTestSequence::isPostponedQuestion | ( | $question_id | ) |
Definition at line 379 of file class.ilTestSequence.php.
Referenced by getSequenceSummary(), and postponeQuestion().
Here is the caller graph for this function:| ilTestSequence::isPostponedSequence | ( | $sequence | ) |
Definition at line 403 of file class.ilTestSequence.php.
Referenced by postponeSequence().
Here is the caller graph for this function:| ilTestSequence::isQuestionChecked | ( | $questionId | ) |
Definition at line 495 of file class.ilTestSequence.php.
| ilTestSequence::isQuestionOptional | ( | $questionId | ) |
Definition at line 829 of file class.ilTestSequence.php.
Referenced by getOrderedSequenceQuestions(), reorderOptionalQuestionsToSequenceEnd(), and ilTestVirtualSequence\wasAnsweredInThisPass().
Here is the caller graph for this function:| ilTestSequence::isQuestionPresented | ( | $questionId | ) |
Definition at line 462 of file class.ilTestSequence.php.
|
private |
Definition at line 234 of file class.ilTestSequence.php.
References $DIC, $ilDB, and $res.
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 181 of file class.ilTestSequence.php.
References loadCheckedQuestions(), loadOptionalQuestions(), loadPresentedQuestions(), and loadQuestionSequence().
Here is the call graph for this function:
|
private |
Definition at line 250 of file class.ilTestSequence.php.
References $DIC, $ilDB, and $res.
Referenced by loadFromDb().
Here is the caller graph for this function:
|
protected |
Definition at line 219 of file class.ilTestSequence.php.
Referenced by loadFromDb().
Here is the caller graph for this function:| ilTestSequence::loadQuestions | ( | ilTestQuestionSetConfig | $testQuestionSetConfig = null, |
$taxonomyFilterSelection = array() |
|||
| ) |
Loads the question mapping.
Reimplemented in ilTestSequenceRandomQuestionSet.
Definition at line 157 of file class.ilTestSequence.php.
|
private |
Definition at line 189 of file class.ilTestSequence.php.
References $DIC, $ilDB, 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 809 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 679 of file class.ilTestSequence.php.
References ILIAS\LTI\ToolProvider\$key, and $keys.
Referenced by createNewSequence().
Here is the caller graph for this function:| ilTestSequence::postponeQuestion | ( | $question_id | ) |
Definition at line 365 of file class.ilTestSequence.php.
References isPostponedQuestion().
Here is the call graph for this function:| ilTestSequence::postponeSequence | ( | $sequence | ) |
Definition at line 433 of file class.ilTestSequence.php.
References isPostponedSequence().
Here is the call graph for this function:| ilTestSequence::questionExists | ( | $questionId | ) |
Definition at line 819 of file class.ilTestSequence.php.
| ilTestSequence::reorderOptionalQuestionsToSequenceEnd | ( | ) |
Definition at line 849 of file class.ilTestSequence.php.
References $index, getQuestionForSequence(), and isQuestionOptional().
Here is the call graph for this function:
|
private |
@global ilDBInterface $ilDB
Definition at line 326 of file class.ilTestSequence.php.
Referenced by saveToDb().
Here is the caller graph for this function:
|
protected |
Definition at line 310 of file class.ilTestSequence.php.
References $DIC.
Referenced by saveToDb().
Here is the caller graph for this function:
|
private |
@global ilDBInterface $ilDB
Definition at line 343 of file class.ilTestSequence.php.
Referenced by saveToDb().
Here is the caller graph for this function:
|
private |
Definition at line 279 of file class.ilTestSequence.php.
References $DIC, $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 271 of file class.ilTestSequence.php.
References saveNewlyCheckedQuestion(), saveNewlyPresentedQuestion(), 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 876 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 892 of file class.ilTestSequence.php.
References $considerHiddenQuestionsEnabled.
| ilTestSequence::setConsiderOptionalQuestionsEnabled | ( | $considerOptionalQuestionsEnabled | ) |
| boolean | $considerOptionalQuestionsEnabled |
Definition at line 908 of file class.ilTestSequence.php.
References $considerOptionalQuestionsEnabled.
| ilTestSequence::setPass | ( | $pass | ) |
Definition at line 750 of file class.ilTestSequence.php.
References $pass.
| ilTestSequence::setQuestionChecked | ( | $questionId | ) |
Definition at line 490 of file class.ilTestSequence.php.
| ilTestSequence::setQuestionOptional | ( | $questionId | ) |
Definition at line 824 of file class.ilTestSequence.php.
Referenced by ilLOTestQuestionAdapter\setQuestionsOptional().
Here is the caller graph for this function:| ilTestSequence::setQuestionPresented | ( | $questionId | ) |
Definition at line 457 of file class.ilTestSequence.php.
| ilTestSequence::$active_id |
Definition at line 49 of file class.ilTestSequence.php.
Referenced by __construct(), getActiveId(), and ilTestSequenceRandomQuestionSet\hasRandomQuestionsForPass().
|
protected |
Definition at line 78 of file class.ilTestSequence.php.
|
protected |
Definition at line 68 of file class.ilTestSequence.php.
|
private |
Definition at line 93 of file class.ilTestSequence.php.
Referenced by isAnsweringOptionalQuestionsConfirmed(), and setAnsweringOptionalQuestionsConfirmed().
|
private |
Definition at line 98 of file class.ilTestSequence.php.
Referenced by isConsiderHiddenQuestionsEnabled(), and setConsiderHiddenQuestionsEnabled().
|
private |
Definition at line 103 of file class.ilTestSequence.php.
Referenced by isConsiderOptionalQuestionsEnabled(), and setConsiderOptionalQuestionsEnabled().
| ilTestSequence::$isRandomTest |
Definition at line 63 of file class.ilTestSequence.php.
|
protected |
Definition at line 83 of file class.ilTestSequence.php.
|
protected |
Definition at line 73 of file class.ilTestSequence.php.
|
protected |
Definition at line 88 of file class.ilTestSequence.php.
Referenced by getOptionalQuestions().
| ilTestSequence::$pass |
Definition at line 56 of file class.ilTestSequence.php.
Referenced by __construct(), getPass(), ilTestSequenceRandomQuestionSet\hasRandomQuestionsForPass(), hideCorrectAnsweredQuestions(), and setPass().
| ilTestSequence::$questions |
Definition at line 42 of file class.ilTestSequence.php.
Referenced by getOrderedSequenceQuestions().
| ilTestSequence::$sequencedata |
Definition at line 35 of file class.ilTestSequence.php.