|
ILIAS
Release_3_10_x_branch Revision 61812
|
Test sequence handler. More...
Collaboration diagram for ilTestSequence: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 () | |
| getUserSequence () | |
| 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 568 of file class.ilTestSequence.php.
| ilTestSequence::createNewSequence | ( | $max, | |
| $shuffle | |||
| ) |
Definition at line 108 of file class.ilTestSequence.php.
References pcArrayShuffle().
Here is the call graph for this function:| ilTestSequence::getActiveId | ( | ) |
Definition at line 103 of file class.ilTestSequence.php.
References $active_id.
|
protected |
Definition at line 352 of file class.ilTestSequence.php.
Referenced by getFirstSequence(), getLastSequence(), getNextSequence(), getPositionOfSequence(), getPreviousSequence(), getSequenceSummary(), getUserQuestionCount(), and getUserSequence().
Here is the caller graph for this function:| ilTestSequence::getFirstSequence | ( | ) |
Definition at line 397 of file class.ilTestSequence.php.
References getCorrectedSequence().
Here is the call graph for this function:| ilTestSequence::getLastSequence | ( | ) |
Definition at line 410 of file class.ilTestSequence.php.
References getCorrectedSequence().
Here is the call graph for this function:| ilTestSequence::getNextSequence | ( | $sequence | ) |
Definition at line 423 of file class.ilTestSequence.php.
References getCorrectedSequence().
Here is the call graph for this function:| ilTestSequence::getOrderedSequence | ( | ) |
Definition at line 342 of file class.ilTestSequence.php.
| ilTestSequence::getPass | ( | ) |
| ilTestSequence::getPositionOfSequence | ( | $sequence | ) |
Definition at line 323 of file class.ilTestSequence.php.
References getCorrectedSequence().
Here is the call graph for this function:| ilTestSequence::getPreviousSequence | ( | $sequence | ) |
Definition at line 438 of file class.ilTestSequence.php.
References getCorrectedSequence().
Here is the call graph for this function:| ilTestSequence::getQuestionForSequence | ( | $sequence | ) |
Definition at line 482 of file class.ilTestSequence.php.
Referenced by getSequenceSummary().
Here is the caller graph for this function:| ilTestSequence::getSequenceForQuestion | ( | $question_id | ) |
Definition at line 392 of file class.ilTestSequence.php.
| & ilTestSequence::getSequenceSummary | ( | ) |
Definition at line 495 of file class.ilTestSequence.php.
References $pass, ilObjTest\_getSolvedQuestions(), ilObjTest\_instanciateQuestion(), getCorrectedSequence(), getQuestionForSequence(), and isPostponedQuestion().
Here is the call graph for this function:| ilTestSequence::getUserQuestionCount | ( | ) |
Definition at line 337 of file class.ilTestSequence.php.
References getCorrectedSequence().
Here is the call graph for this function:| ilTestSequence::getUserSequence | ( | ) |
Definition at line 347 of file class.ilTestSequence.php.
References getCorrectedSequence().
Here is the call graph for this function:| ilTestSequence::hasHiddenQuestions | ( | ) |
Definition at line 556 of file class.ilTestSequence.php.
| ilTestSequence::hasSequence | ( | ) |
Definition at line 544 of file class.ilTestSequence.php.
| ilTestSequence::hideQuestion | ( | $question_id | ) |
Definition at line 237 of file class.ilTestSequence.php.
References isHiddenQuestion().
Here is the call 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 public |
Definition at line 89 of file class.ilTestSequence.php.
References $active_id, $pass, loadFromDb(), and loadQuestions().
Here is the call graph for this function:| 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:
|
private |
Loads the sequence data for a given active id.
Returns the filesystem path of the certificate
Definition at line 175 of file class.ilTestSequence.php.
References $result.
Referenced by ilTestSequence().
Here is the caller graph for this function:
|
private |
Loads the question mapping.
Loads the question mapping
private
Definition at line 129 of file class.ilTestSequence.php.
References $data, and $result.
Referenced by ilTestSequence().
Here is the caller 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 public |
Definition at line 461 of file class.ilTestSequence.php.
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::saveToDb | ( | ) |
Saves the sequence data for a given pass to the database.
Saves the sequence data for a given pass to the database
public
Definition at line 204 of file class.ilTestSequence.php.
References $result.
| ilTestSequence::setPass | ( | $pass | ) |
| ilTestSequence::$active_id |
Definition at line 60 of file class.ilTestSequence.php.
Referenced by getActiveId(), and ilTestSequence().
| ilTestSequence::$isRandomTest |
Definition at line 78 of file class.ilTestSequence.php.
| ilTestSequence::$pass |
Definition at line 69 of file class.ilTestSequence.php.
Referenced by getPass(), getSequenceSummary(), ilTestSequence(), and setPass().
| ilTestSequence::$questions |
Definition at line 51 of file class.ilTestSequence.php.
| ilTestSequence::$sequencedata |
Definition at line 42 of file class.ilTestSequence.php.