ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
Public Member Functions | |
setQuestions ($questions) | |
getQuestions () | |
addQuestion (ilTestRandomQuestionSetQuestion $question) | |
current () | |
next () | |
key () | |
valid () | |
rewind () | |
isGreaterThan ($amount) | |
isSmallerThan ($amount) | |
getMissingCount ($requiredAmount) | |
shuffleQuestions () | |
mergeQuestionCollection (self $questionCollection) | |
getUniqueQuestionCollection () | |
getRelativeComplementCollection (self $questionCollection) | |
getIntersectionCollection (self $questionCollection) | |
getQuestionAmount () | |
getInvolvedQuestionIds () | |
getRandomQuestionCollection ($requiredAmount) | |
Private Member Functions | |
getRandomArrayKeys ($array, $numKeys) | |
Private Attributes | |
$questions = array() | |
Definition at line 13 of file class.ilTestRandomQuestionSetQuestionCollection.php.
ilTestRandomQuestionSetQuestionCollection::addQuestion | ( | ilTestRandomQuestionSetQuestion | $question | ) |
Definition at line 29 of file class.ilTestRandomQuestionSetQuestionCollection.php.
ilTestRandomQuestionSetQuestionCollection::current | ( | ) |
Definition at line 36 of file class.ilTestRandomQuestionSetQuestionCollection.php.
ilTestRandomQuestionSetQuestionCollection::getIntersectionCollection | ( | self | $questionCollection | ) |
ilTestRandomQuestionSetQuestionCollection | $questionCollection |
Definition at line 145 of file class.ilTestRandomQuestionSetQuestionCollection.php.
References getQuestions().
ilTestRandomQuestionSetQuestionCollection::getInvolvedQuestionIds | ( | ) |
Definition at line 171 of file class.ilTestRandomQuestionSetQuestionCollection.php.
References array, and getQuestions().
ilTestRandomQuestionSetQuestionCollection::getMissingCount | ( | $requiredAmount | ) |
int | $requiredAmount |
Definition at line 76 of file class.ilTestRandomQuestionSetQuestionCollection.php.
ilTestRandomQuestionSetQuestionCollection::getQuestionAmount | ( | ) |
Definition at line 165 of file class.ilTestRandomQuestionSetQuestionCollection.php.
References getQuestions().
ilTestRandomQuestionSetQuestionCollection::getQuestions | ( | ) |
Definition at line 24 of file class.ilTestRandomQuestionSetQuestionCollection.php.
References $questions.
Referenced by getIntersectionCollection(), getInvolvedQuestionIds(), getQuestionAmount(), getRelativeComplementCollection(), and getUniqueQuestionCollection().
|
private |
Definition at line 195 of file class.ilTestRandomQuestionSetQuestionCollection.php.
References array.
Referenced by getRandomQuestionCollection().
ilTestRandomQuestionSetQuestionCollection::getRandomQuestionCollection | ( | $requiredAmount | ) |
Definition at line 182 of file class.ilTestRandomQuestionSetQuestionCollection.php.
References getRandomArrayKeys().
Referenced by ilTestRandomQuestionSetBuilder\fetchQuestionsFromStageRandomly().
ilTestRandomQuestionSetQuestionCollection::getRelativeComplementCollection | ( | self | $questionCollection | ) |
actually i would like to consider $this as quantity A passed $questionCollection is should be considered as quantity B
–> relative complement usually means all element from B missing in A
indeed we are considering $questionCollection as A and $this as B currently (!) when changing, do not forget to switch caller and param for all usages (!)
Definition at line 113 of file class.ilTestRandomQuestionSetQuestionCollection.php.
References getQuestions().
ilTestRandomQuestionSetQuestionCollection::getUniqueQuestionCollection | ( | ) |
Definition at line 95 of file class.ilTestRandomQuestionSetQuestionCollection.php.
References array, and getQuestions().
ilTestRandomQuestionSetQuestionCollection::isGreaterThan | ( | $amount | ) |
Definition at line 62 of file class.ilTestRandomQuestionSetQuestionCollection.php.
ilTestRandomQuestionSetQuestionCollection::isSmallerThan | ( | $amount | ) |
Definition at line 67 of file class.ilTestRandomQuestionSetQuestionCollection.php.
ilTestRandomQuestionSetQuestionCollection::key | ( | ) |
Definition at line 46 of file class.ilTestRandomQuestionSetQuestionCollection.php.
Referenced by valid().
ilTestRandomQuestionSetQuestionCollection::mergeQuestionCollection | ( | self | $questionCollection | ) |
Definition at line 90 of file class.ilTestRandomQuestionSetQuestionCollection.php.
ilTestRandomQuestionSetQuestionCollection::next | ( | ) |
Definition at line 41 of file class.ilTestRandomQuestionSetQuestionCollection.php.
ilTestRandomQuestionSetQuestionCollection::rewind | ( | ) |
Definition at line 56 of file class.ilTestRandomQuestionSetQuestionCollection.php.
ilTestRandomQuestionSetQuestionCollection::setQuestions | ( | $questions | ) |
Definition at line 19 of file class.ilTestRandomQuestionSetQuestionCollection.php.
References $questions.
ilTestRandomQuestionSetQuestionCollection::shuffleQuestions | ( | ) |
Definition at line 85 of file class.ilTestRandomQuestionSetQuestionCollection.php.
Referenced by ilTestRandomQuestionSetBuilder\handleQuestionOrdering().
ilTestRandomQuestionSetQuestionCollection::valid | ( | ) |
Definition at line 51 of file class.ilTestRandomQuestionSetQuestionCollection.php.
References key().
|
private |
Definition at line 17 of file class.ilTestRandomQuestionSetQuestionCollection.php.
Referenced by getQuestions(), and setQuestions().