ILIAS
Release_4_4_x_branch Revision 61816
|
Test sequence handler. More...
Public Member Functions | |
ilTestSequence ($active_id, $pass, $randomtest) | |
ilTestSequence constructor | |
getActiveId () | |
createNewSequence ($max, $shuffle) | |
loadQuestions (ilTestQuestionSetConfig $testQuestionSetConfig=null, $taxonomyFilterSelection=array()) | |
Loads the question mapping. | |
loadFromDb () | |
Loads the sequence data for a given active id. | |
saveToDb () | |
Saves the sequence data for a given pass to the database. | |
postponeQuestion ($question_id) | |
hideQuestion ($question_id) | |
isPostponedQuestion ($question_id) | |
isHiddenQuestion ($question_id) | |
isPostponedSequence ($sequence) | |
isHiddenSequence ($sequence) | |
postponeSequence ($sequence) | |
hideSequence ($sequence) | |
getPositionOfSequence ($sequence) | |
getUserQuestionCount () | |
getOrderedSequence () | |
getOrderedSequenceQuestions () | |
getUserSequence () | |
getUserSequenceQuestions () | |
getSequenceForQuestion ($question_id) | |
getFirstSequence () | |
getLastSequence () | |
getNextSequence ($sequence) | |
getPreviousSequence ($sequence) | |
pcArrayShuffle ($array) | |
Shuffles the values of a given array. | |
getQuestionForSequence ($sequence) | |
& | getSequenceSummary ($obligationsFilter=false) |
getPass () | |
setPass ($pass) | |
hasSequence () | |
hasHiddenQuestions () | |
clearHiddenQuestions () | |
hasStarted (ilTestSession $testSession) | |
openQuestionExists () | |
questionExists ($questionId) |
Data Fields | |
$sequencedata | |
$questions | |
$active_id | |
$pass | |
$isRandomTest |
Protected Member Functions | |
getCorrectedSequence ($with_hidden_questions=FALSE) |
Private Member Functions | |
hideCorrectAnsweredQuestions (ilObjTest $testOBJ, $activeId, $pass) |
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 544 of file class.ilTestSequence.php.
ilTestSequence::createNewSequence | ( | $max, | |
$shuffle | |||
) |
Definition at line 76 of file class.ilTestSequence.php.
References pcArrayShuffle().
ilTestSequence::getActiveId | ( | ) |
Definition at line 71 of file class.ilTestSequence.php.
References $active_id.
|
protected |
Definition at line 330 of file class.ilTestSequence.php.
Referenced by getFirstSequence(), getLastSequence(), getNextSequence(), getPositionOfSequence(), getPreviousSequence(), getSequenceSummary(), getUserQuestionCount(), getUserSequence(), and getUserSequenceQuestions().
ilTestSequence::getFirstSequence | ( | ) |
Definition at line 375 of file class.ilTestSequence.php.
References getCorrectedSequence().
Referenced by hasStarted(), and openQuestionExists().
ilTestSequence::getLastSequence | ( | ) |
Definition at line 388 of file class.ilTestSequence.php.
References getCorrectedSequence().
ilTestSequence::getNextSequence | ( | $sequence | ) |
Definition at line 401 of file class.ilTestSequence.php.
References getCorrectedSequence().
ilTestSequence::getOrderedSequence | ( | ) |
Definition at line 304 of file class.ilTestSequence.php.
ilTestSequence::getOrderedSequenceQuestions | ( | ) |
Definition at line 309 of file class.ilTestSequence.php.
References $questions.
ilTestSequence::getPass | ( | ) |
ilTestSequence::getPositionOfSequence | ( | $sequence | ) |
Definition at line 285 of file class.ilTestSequence.php.
References getCorrectedSequence().
ilTestSequence::getPreviousSequence | ( | $sequence | ) |
Definition at line 416 of file class.ilTestSequence.php.
References getCorrectedSequence().
ilTestSequence::getQuestionForSequence | ( | $sequence | ) |
Definition at line 451 of file class.ilTestSequence.php.
Referenced by getSequenceSummary(), and getUserSequenceQuestions().
ilTestSequence::getSequenceForQuestion | ( | $question_id | ) |
Definition at line 370 of file class.ilTestSequence.php.
& ilTestSequence::getSequenceSummary | ( | $obligationsFilter = false | ) |
Definition at line 464 of file class.ilTestSequence.php.
References $pass, $row, ilObjTest\_getSolvedQuestions(), ilObjTest\_instanciateQuestion(), getCorrectedSequence(), getQuestionForSequence(), isPostponedQuestion(), and ilObjTest\isQuestionObligatory().
ilTestSequence::getUserQuestionCount | ( | ) |
Definition at line 299 of file class.ilTestSequence.php.
References getCorrectedSequence().
ilTestSequence::getUserSequence | ( | ) |
Definition at line 314 of file class.ilTestSequence.php.
References getCorrectedSequence().
ilTestSequence::getUserSequenceQuestions | ( | ) |
Definition at line 319 of file class.ilTestSequence.php.
References getCorrectedSequence(), and getQuestionForSequence().
ilTestSequence::hasHiddenQuestions | ( | ) |
Definition at line 532 of file class.ilTestSequence.php.
ilTestSequence::hasSequence | ( | ) |
Definition at line 520 of file class.ilTestSequence.php.
ilTestSequence::hasStarted | ( | ilTestSession | $testSession | ) |
Definition at line 570 of file class.ilTestSequence.php.
References getFirstSequence(), and ilTestSession\getLastSequence().
|
private |
Definition at line 549 of file class.ilTestSequence.php.
References $pass, $result, ilObjTest\getTestResult(), hideQuestion(), and saveToDb().
ilTestSequence::hideQuestion | ( | $question_id | ) |
Definition at line 199 of file class.ilTestSequence.php.
References isHiddenQuestion().
Referenced by hideCorrectAnsweredQuestions().
ilTestSequence::hideSequence | ( | $sequence | ) |
Definition at line 273 of file class.ilTestSequence.php.
References isHiddenSequence().
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 public |
Definition at line 59 of file class.ilTestSequence.php.
References $active_id, and $pass.
ilTestSequence::isHiddenQuestion | ( | $question_id | ) |
Definition at line 220 of file class.ilTestSequence.php.
Referenced by hideQuestion().
ilTestSequence::isHiddenSequence | ( | $sequence | ) |
Definition at line 247 of file class.ilTestSequence.php.
Referenced by hideSequence().
ilTestSequence::isPostponedQuestion | ( | $question_id | ) |
Definition at line 207 of file class.ilTestSequence.php.
Referenced by getSequenceSummary(), and postponeQuestion().
ilTestSequence::isPostponedSequence | ( | $sequence | ) |
Definition at line 233 of file class.ilTestSequence.php.
Referenced by postponeSequence().
ilTestSequence::loadFromDb | ( | ) |
Loads the sequence data for a given active id.
Definition at line 135 of file class.ilTestSequence.php.
ilTestSequence::loadQuestions | ( | ilTestQuestionSetConfig | $testQuestionSetConfig = null , |
$taxonomyFilterSelection = array() |
|||
) |
Loads the question mapping.
Definition at line 93 of file class.ilTestSequence.php.
References $result.
ilTestSequence::openQuestionExists | ( | ) |
Definition at line 586 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 439 of file class.ilTestSequence.php.
References $result.
Referenced by createNewSequence().
ilTestSequence::postponeQuestion | ( | $question_id | ) |
Definition at line 191 of file class.ilTestSequence.php.
References isPostponedQuestion().
ilTestSequence::postponeSequence | ( | $sequence | ) |
Definition at line 261 of file class.ilTestSequence.php.
References isPostponedSequence().
ilTestSequence::questionExists | ( | $questionId | ) |
Definition at line 591 of file class.ilTestSequence.php.
ilTestSequence::saveToDb | ( | ) |
Saves the sequence data for a given pass to the database.
public
Definition at line 161 of file class.ilTestSequence.php.
Referenced by hideCorrectAnsweredQuestions().
ilTestSequence::setPass | ( | $pass | ) |
ilTestSequence::$active_id |
Definition at line 34 of file class.ilTestSequence.php.
Referenced by getActiveId(), ilTestSequenceRandomQuestionSet\hasRandomQuestionsForPass(), and ilTestSequence().
ilTestSequence::$isRandomTest |
Definition at line 48 of file class.ilTestSequence.php.
ilTestSequence::$pass |
Definition at line 41 of file class.ilTestSequence.php.
Referenced by getPass(), getSequenceSummary(), 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.