|
ILIAS
release_5-0 Revision 5.0.0-1144-gc4397b1f870
|
Test sequence handler. More...
Inheritance diagram for ilTestSequence:
Collaboration diagram for ilTestSequence:Data Fields | |
| $sequencedata | |
| $questions | |
| $active_id | |
| $pass | |
| $isRandomTest | |
Protected Member Functions | |
| getCorrectedSequence ($with_hidden_questions=FALSE) | |
Private Member Functions | |
| loadQuestionSequence () | |
| loadCheckedQuestions () | |
| saveQuestionSequence () | |
| saveNewlyCheckedQuestion () | |
| @global ilDB $ilDB More... | |
| hideCorrectAnsweredQuestions (ilObjTest $testOBJ, $activeId, $pass) | |
Private Attributes | |
| $alreadyCheckedQuestions | |
| $newlyCheckedQuestion | |
Test sequence handler.
This class manages the sequence settings for a given user
Definition at line 13 of file class.ilTestSequence.php.
| ilTestSequence::clearHiddenQuestions | ( | ) |
Definition at line 592 of file class.ilTestSequence.php.
Referenced by ilLOTestQuestionAdapter\hideQuestions().
Here is the caller graph for this function:| ilTestSequence::createNewSequence | ( | $max, | |
| $shuffle | |||
| ) |
Definition at line 89 of file class.ilTestSequence.php.
References pcArrayShuffle().
Here is the call graph for this function:| ilTestSequence::getActiveId | ( | ) |
|
protected |
Definition at line 378 of file class.ilTestSequence.php.
Referenced by getFirstSequence(), getLastSequence(), getNextSequence(), getPositionOfSequence(), getPreviousSequence(), getSequenceSummary(), getUserQuestionCount(), getUserSequence(), and getUserSequenceQuestions().
Here is the caller graph for this function:| ilTestSequence::getFirstSequence | ( | ) |
Definition at line 423 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 436 of file class.ilTestSequence.php.
References getCorrectedSequence().
Here is the call graph for this function:| ilTestSequence::getNextSequence | ( | $sequence | ) |
Definition at line 449 of file class.ilTestSequence.php.
References getCorrectedSequence().
Here is the call graph for this function:| ilTestSequence::getOrderedSequence | ( | ) |
Definition at line 352 of file class.ilTestSequence.php.
| ilTestSequence::getOrderedSequenceQuestions | ( | ) |
| ilTestSequence::getPass | ( | ) |
| ilTestSequence::getPositionOfSequence | ( | $sequence | ) |
Definition at line 333 of file class.ilTestSequence.php.
References getCorrectedSequence().
Here is the call graph for this function:| ilTestSequence::getPreviousSequence | ( | $sequence | ) |
Definition at line 464 of file class.ilTestSequence.php.
References getCorrectedSequence().
Here is the call graph for this function:| ilTestSequence::getQuestionForSequence | ( | $sequence | ) |
Definition at line 499 of file class.ilTestSequence.php.
Referenced by getSequenceSummary(), and getUserSequenceQuestions().
Here is the caller graph for this function:| ilTestSequence::getQuestionIds | ( | ) |
Definition at line 639 of file class.ilTestSequence.php.
Referenced by ilLOTestQuestionAdapter\hideQuestions(), and ilLOTestQuestionAdapter\updateRandomQuestions().
Here is the caller graph for this function:| ilTestSequence::getSequenceForQuestion | ( | $question_id | ) |
Definition at line 418 of file class.ilTestSequence.php.
| & ilTestSequence::getSequenceSummary | ( | $obligationsFilter = false | ) |
Definition at line 512 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 347 of file class.ilTestSequence.php.
References getCorrectedSequence().
Here is the call graph for this function:| ilTestSequence::getUserSequence | ( | ) |
Definition at line 362 of file class.ilTestSequence.php.
References getCorrectedSequence().
Here is the call graph for this function:| ilTestSequence::getUserSequenceQuestions | ( | ) |
Definition at line 367 of file class.ilTestSequence.php.
References getCorrectedSequence(), and getQuestionForSequence().
Here is the call graph for this function:| ilTestSequence::hasHiddenQuestions | ( | ) |
Definition at line 580 of file class.ilTestSequence.php.
| ilTestSequence::hasSequence | ( | ) |
Definition at line 568 of file class.ilTestSequence.php.
| ilTestSequence::hasStarted | ( | ilTestSession | $testSession | ) |
Definition at line 618 of file class.ilTestSequence.php.
References ilTestSession\getLastSequence().
Here is the call graph for this function:
|
private |
Definition at line 597 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 237 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 311 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 69 of file class.ilTestSequence.php.
References $active_id, and $pass.
| ilTestSequence::isHiddenQuestion | ( | $question_id | ) |
Definition at line 258 of file class.ilTestSequence.php.
Referenced by hideQuestion().
Here is the caller graph for this function:| ilTestSequence::isHiddenSequence | ( | $sequence | ) |
Definition at line 285 of file class.ilTestSequence.php.
Referenced by hideSequence().
Here is the caller graph for this function:| ilTestSequence::isPostponedQuestion | ( | $question_id | ) |
Definition at line 245 of file class.ilTestSequence.php.
Referenced by getSequenceSummary(), and postponeQuestion().
Here is the caller graph for this function:| ilTestSequence::isPostponedSequence | ( | $sequence | ) |
Definition at line 271 of file class.ilTestSequence.php.
Referenced by postponeSequence().
Here is the caller graph for this function:| ilTestSequence::isQuestionChecked | ( | $questionId | ) |
Definition at line 328 of file class.ilTestSequence.php.
|
private |
Definition at line 157 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 130 of file class.ilTestSequence.php.
References loadCheckedQuestions(), and loadQuestionSequence().
Here is the call graph for this function:| ilTestSequence::loadQuestions | ( | ilTestQuestionSetConfig | $testQuestionSetConfig = null, |
$taxonomyFilterSelection = array() |
|||
| ) |
Loads the question mapping.
Definition at line 106 of file class.ilTestSequence.php.
|
private |
Definition at line 136 of file class.ilTestSequence.php.
References $ilDB, $result, and $row.
Referenced by loadFromDb().
Here is the caller graph for this function:| ilTestSequence::openQuestionExists | ( | ) |
Definition at line 634 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 487 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 229 of file class.ilTestSequence.php.
References isPostponedQuestion().
Here is the call graph for this function:| ilTestSequence::postponeSequence | ( | $sequence | ) |
Definition at line 299 of file class.ilTestSequence.php.
References isPostponedSequence().
Here is the call graph for this function:| ilTestSequence::questionExists | ( | $questionId | ) |
Definition at line 644 of file class.ilTestSequence.php.
|
private |
@global ilDB $ilDB
Definition at line 215 of file class.ilTestSequence.php.
References $ilDB.
Referenced by saveToDb().
Here is the caller graph for this function:
|
private |
Definition at line 182 of file class.ilTestSequence.php.
References $ilDB.
Referenced by saveToDb().
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 176 of file class.ilTestSequence.php.
References saveNewlyCheckedQuestion(), and saveQuestionSequence().
Referenced by ilLOTestQuestionAdapter\filterQuestions(), hideCorrectAnsweredQuestions(), and ilTestOutputGUI\updateContainerObjectivesWithAnsweredQuestion().
Here is the call graph for this function:
Here is the caller graph for this function:| ilTestSequence::setPass | ( | $pass | ) |
Definition at line 563 of file class.ilTestSequence.php.
References $pass.
| ilTestSequence::setQuestionChecked | ( | $questionId | ) |
Definition at line 323 of file class.ilTestSequence.php.
| ilTestSequence::$active_id |
Definition at line 34 of file class.ilTestSequence.php.
Referenced by getActiveId(), ilTestSequenceRandomQuestionSet\hasRandomQuestionsForPass(), and ilTestSequence().
|
private |
Definition at line 53 of file class.ilTestSequence.php.
| ilTestSequence::$isRandomTest |
Definition at line 48 of file class.ilTestSequence.php.
|
private |
Definition at line 58 of file class.ilTestSequence.php.
| ilTestSequence::$pass |
Definition at line 41 of file class.ilTestSequence.php.
Referenced by getPass(), ilTestSequenceRandomQuestionSet\hasRandomQuestionsForPass(), hideCorrectAnsweredQuestions(), ilTestSequence(), and setPass().
| ilTestSequence::$questions |
Definition at line 27 of file class.ilTestSequence.php.
Referenced by getOrderedSequenceQuestions().
| ilTestSequence::$sequencedata |
Definition at line 20 of file class.ilTestSequence.php.