ILIAS
Release_4_2_x_branch Revision 61807
|
Test sequence handler. More...
Public Member Functions | |
ilTestSequence ($active_id, $pass, $randomtest) | |
ilTestSequence constructor | |
getActiveId () | |
createNewSequence ($max, $shuffle) | |
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 () |
getPass () | |
setPass ($pass) | |
hasSequence () | |
hasHiddenQuestions () | |
clearHiddenQuestions () |
Data Fields | |
$sequencedata | |
$questions | |
$active_id | |
$pass | |
$isRandomTest |
Protected Member Functions | |
getCorrectedSequence ($with_hidden_questions=FALSE) |
Private Member Functions | |
loadQuestions () | |
Loads the question mapping. | |
loadFromDb () | |
Loads the sequence data for a given active id. |
Test sequence handler.
This class manages the sequence settings for a given user
Definition at line 33 of file class.ilTestSequence.php.
ilTestSequence::clearHiddenQuestions | ( | ) |
Definition at line 562 of file class.ilTestSequence.php.
ilTestSequence::createNewSequence | ( | $max, | |
$shuffle | |||
) |
Definition at line 98 of file class.ilTestSequence.php.
References pcArrayShuffle().
ilTestSequence::getActiveId | ( | ) |
Definition at line 93 of file class.ilTestSequence.php.
References $active_id.
|
protected |
Definition at line 355 of file class.ilTestSequence.php.
Referenced by getFirstSequence(), getLastSequence(), getNextSequence(), getPositionOfSequence(), getPreviousSequence(), getSequenceSummary(), getUserQuestionCount(), getUserSequence(), and getUserSequenceQuestions().
ilTestSequence::getFirstSequence | ( | ) |
Definition at line 400 of file class.ilTestSequence.php.
References getCorrectedSequence().
ilTestSequence::getLastSequence | ( | ) |
Definition at line 413 of file class.ilTestSequence.php.
References getCorrectedSequence().
ilTestSequence::getNextSequence | ( | $sequence | ) |
Definition at line 426 of file class.ilTestSequence.php.
References getCorrectedSequence().
ilTestSequence::getOrderedSequence | ( | ) |
Definition at line 329 of file class.ilTestSequence.php.
ilTestSequence::getOrderedSequenceQuestions | ( | ) |
Definition at line 334 of file class.ilTestSequence.php.
References $questions.
ilTestSequence::getPass | ( | ) |
ilTestSequence::getPositionOfSequence | ( | $sequence | ) |
Definition at line 310 of file class.ilTestSequence.php.
References getCorrectedSequence().
ilTestSequence::getPreviousSequence | ( | $sequence | ) |
Definition at line 441 of file class.ilTestSequence.php.
References getCorrectedSequence().
ilTestSequence::getQuestionForSequence | ( | $sequence | ) |
Definition at line 476 of file class.ilTestSequence.php.
Referenced by getSequenceSummary(), and getUserSequenceQuestions().
ilTestSequence::getSequenceForQuestion | ( | $question_id | ) |
Definition at line 395 of file class.ilTestSequence.php.
& ilTestSequence::getSequenceSummary | ( | ) |
Definition at line 489 of file class.ilTestSequence.php.
References $pass, $row, ilObjTest\_getSolvedQuestions(), ilObjTest\_instanciateQuestion(), getCorrectedSequence(), getQuestionForSequence(), and isPostponedQuestion().
ilTestSequence::getUserQuestionCount | ( | ) |
Definition at line 324 of file class.ilTestSequence.php.
References getCorrectedSequence().
ilTestSequence::getUserSequence | ( | ) |
Definition at line 339 of file class.ilTestSequence.php.
References getCorrectedSequence().
ilTestSequence::getUserSequenceQuestions | ( | ) |
Definition at line 344 of file class.ilTestSequence.php.
References getCorrectedSequence(), and getQuestionForSequence().
ilTestSequence::hasHiddenQuestions | ( | ) |
Definition at line 550 of file class.ilTestSequence.php.
ilTestSequence::hasSequence | ( | ) |
Definition at line 538 of file class.ilTestSequence.php.
ilTestSequence::hideQuestion | ( | $question_id | ) |
Definition at line 224 of file class.ilTestSequence.php.
References isHiddenQuestion().
ilTestSequence::hideSequence | ( | $sequence | ) |
Definition at line 298 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 79 of file class.ilTestSequence.php.
References $active_id, $pass, loadFromDb(), and loadQuestions().
ilTestSequence::isHiddenQuestion | ( | $question_id | ) |
Definition at line 245 of file class.ilTestSequence.php.
Referenced by hideQuestion().
ilTestSequence::isHiddenSequence | ( | $sequence | ) |
Definition at line 272 of file class.ilTestSequence.php.
Referenced by hideSequence().
ilTestSequence::isPostponedQuestion | ( | $question_id | ) |
Definition at line 232 of file class.ilTestSequence.php.
Referenced by getSequenceSummary(), and postponeQuestion().
ilTestSequence::isPostponedSequence | ( | $sequence | ) |
Definition at line 258 of file class.ilTestSequence.php.
Referenced by postponeSequence().
|
private |
Loads the sequence data for a given active id.
Definition at line 160 of file class.ilTestSequence.php.
References $ilDB, $result, and $row.
Referenced by ilTestSequence().
|
private |
Loads the question mapping.
private
Definition at line 117 of file class.ilTestSequence.php.
References $data, $ilDB, and $result.
Referenced by ilTestSequence().
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 464 of file class.ilTestSequence.php.
References $result.
Referenced by createNewSequence().
ilTestSequence::postponeQuestion | ( | $question_id | ) |
Definition at line 216 of file class.ilTestSequence.php.
References isPostponedQuestion().
ilTestSequence::postponeSequence | ( | $sequence | ) |
Definition at line 286 of file class.ilTestSequence.php.
References isPostponedSequence().
ilTestSequence::saveToDb | ( | ) |
Saves the sequence data for a given pass to the database.
public
Definition at line 186 of file class.ilTestSequence.php.
References $ilDB.
ilTestSequence::setPass | ( | $pass | ) |
ilTestSequence::$active_id |
Definition at line 54 of file class.ilTestSequence.php.
Referenced by getActiveId(), and ilTestSequence().
ilTestSequence::$isRandomTest |
Definition at line 68 of file class.ilTestSequence.php.
ilTestSequence::$pass |
Definition at line 61 of file class.ilTestSequence.php.
Referenced by getPass(), getSequenceSummary(), ilTestSequence(), and setPass().
ilTestSequence::$questions |
Definition at line 47 of file class.ilTestSequence.php.
Referenced by getOrderedSequenceQuestions().
ilTestSequence::$sequencedata |
Definition at line 40 of file class.ilTestSequence.php.