ILIAS
trunk Revision v11.0_alpha-1702-gfd3ecb7f852
|
Public Member Functions | |
setQuestions (array $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 = [] | |
Definition at line 28 of file class.ilTestRandomQuestionSetQuestionCollection.php.
ilTestRandomQuestionSetQuestionCollection::addQuestion | ( | ilTestRandomQuestionSetQuestion | $question | ) |
Definition at line 44 of file class.ilTestRandomQuestionSetQuestionCollection.php.
Referenced by getIntersectionCollection(), and getRelativeComplementCollection().
ilTestRandomQuestionSetQuestionCollection::current | ( | ) |
Definition at line 49 of file class.ilTestRandomQuestionSetQuestionCollection.php.
References null.
ilTestRandomQuestionSetQuestionCollection::getIntersectionCollection | ( | self | $questionCollection | ) |
Definition at line 153 of file class.ilTestRandomQuestionSetQuestionCollection.php.
References addQuestion(), and getQuestions().
ilTestRandomQuestionSetQuestionCollection::getInvolvedQuestionIds | ( | ) |
Definition at line 176 of file class.ilTestRandomQuestionSetQuestionCollection.php.
References getQuestions().
ilTestRandomQuestionSetQuestionCollection::getMissingCount | ( | $requiredAmount | ) |
int | $requiredAmount |
Definition at line 89 of file class.ilTestRandomQuestionSetQuestionCollection.php.
ilTestRandomQuestionSetQuestionCollection::getQuestionAmount | ( | ) |
Definition at line 170 of file class.ilTestRandomQuestionSetQuestionCollection.php.
References getQuestions().
ilTestRandomQuestionSetQuestionCollection::getQuestions | ( | ) |
Definition at line 39 of file class.ilTestRandomQuestionSetQuestionCollection.php.
References $questions.
Referenced by getIntersectionCollection(), getInvolvedQuestionIds(), getQuestionAmount(), getRelativeComplementCollection(), and getUniqueQuestionCollection().
|
private |
Definition at line 200 of file class.ilTestRandomQuestionSetQuestionCollection.php.
Referenced by getRandomQuestionCollection().
ilTestRandomQuestionSetQuestionCollection::getRandomQuestionCollection | ( | $requiredAmount | ) |
Definition at line 187 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 126 of file class.ilTestRandomQuestionSetQuestionCollection.php.
References addQuestion(), and getQuestions().
ilTestRandomQuestionSetQuestionCollection::getUniqueQuestionCollection | ( | ) |
Definition at line 108 of file class.ilTestRandomQuestionSetQuestionCollection.php.
References getQuestions(), and setQuestions().
ilTestRandomQuestionSetQuestionCollection::isGreaterThan | ( | $amount | ) |
Definition at line 76 of file class.ilTestRandomQuestionSetQuestionCollection.php.
ilTestRandomQuestionSetQuestionCollection::isSmallerThan | ( | $amount | ) |
Definition at line 81 of file class.ilTestRandomQuestionSetQuestionCollection.php.
ilTestRandomQuestionSetQuestionCollection::key | ( | ) |
Definition at line 60 of file class.ilTestRandomQuestionSetQuestionCollection.php.
Referenced by valid().
ilTestRandomQuestionSetQuestionCollection::mergeQuestionCollection | ( | self | $questionCollection | ) |
Definition at line 103 of file class.ilTestRandomQuestionSetQuestionCollection.php.
ilTestRandomQuestionSetQuestionCollection::next | ( | ) |
Definition at line 55 of file class.ilTestRandomQuestionSetQuestionCollection.php.
ilTestRandomQuestionSetQuestionCollection::rewind | ( | ) |
Definition at line 70 of file class.ilTestRandomQuestionSetQuestionCollection.php.
ilTestRandomQuestionSetQuestionCollection::setQuestions | ( | array | $questions | ) |
Definition at line 34 of file class.ilTestRandomQuestionSetQuestionCollection.php.
References $questions.
Referenced by getUniqueQuestionCollection().
ilTestRandomQuestionSetQuestionCollection::shuffleQuestions | ( | ) |
Definition at line 98 of file class.ilTestRandomQuestionSetQuestionCollection.php.
Referenced by ilTestRandomQuestionSetBuilder\handleQuestionOrdering().
ilTestRandomQuestionSetQuestionCollection::valid | ( | ) |
Definition at line 65 of file class.ilTestRandomQuestionSetQuestionCollection.php.
|
private |
Definition at line 32 of file class.ilTestRandomQuestionSetQuestionCollection.php.
Referenced by getQuestions(), and setQuestions().