4 require_once
'Modules/Test/classes/class.ilTestRandomQuestionCollectionSubsetApplication.php';
38 if (!isset($this->collectionSubsetApplications[$applicantId])) {
42 return $this->collectionSubsetApplications[$applicantId];
58 $this->collectionSubsetApplications[$collectionSubsetApplication->
getApplicantId()] = $collectionSubsetApplication;
104 return current($this->collectionSubsetApplications);
109 return next($this->collectionSubsetApplications);
114 return key($this->collectionSubsetApplications);
119 return key($this->collectionSubsetApplications) !== null;
124 return reset($this->collectionSubsetApplications);
132 $questionReservationRequired =
false;
134 foreach ($this as $collectionSubsetApplication) {
135 if (!$collectionSubsetApplication->hasQuestion($question->
getQuestionId())) {
139 if ($collectionSubsetApplication->hasRequiredAmountLeft()) {
140 $questionReservationRequired =
true;
141 $collectionSubsetApplication->decrementRequiredAmount();
145 if ($questionReservationRequired) {
157 foreach ($this as $collectionSubsetApplication) {
158 $applicationsNonReservedQstCollection = $collectionSubsetApplication->getRelativeComplementCollection(
162 $availableQuestionCollection->mergeQuestionCollection($applicationsNonReservedQstCollection);
165 $nonReservedQuestionCollection = $availableQuestionCollection->getUniqueQuestionCollection();
167 return $nonReservedQuestionCollection->getQuestionAmount();
setCollectionSubsetApplications($collectionSubsetApplications)
resetCollectionSubsetApplicants()
resetter for collectionSubsetApplicants
handleQuestionRequest(ilTestRandomQuestionSetQuestion $question)
$reservedQuestionCollection
__construct()
ilTestRandomQuestionCollectionSubsetApplicantList constructor.
getNonReservedQuestionAmount()
addCollectionSubsetApplication(ilTestRandomQuestionCollectionSubsetApplication $collectionSubsetApplication)
getReservedQuestionCollection()
setReservedQuestionCollection($reservedQuestionCollection)
Create styles array
The data for the language used.
addReservedQuestion(ilTestRandomQuestionSetQuestion $reservedQuestion)
getCollectionSubsetApplication($applicantId)
getCollectionSubsetApplications()
$collectionSubsetApplications