ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
ilTestRandomQuestionCollectionSubsetApplication Class Reference
+ Inheritance diagram for ilTestRandomQuestionCollectionSubsetApplication:
+ Collaboration diagram for ilTestRandomQuestionCollectionSubsetApplication:

Public Member Functions

 getApplicantId ()
 
 setApplicantId ($applicantId)
 
 getRequiredAmount ()
 
 setRequiredAmount ($requiredAmount)
 
 hasRequiredAmountLeft ()
 
 decrementRequiredAmount ()
 decrements the amount required by applicant More...
 
 hasQuestion ($questionId)
 
 getQuestion ($questionId)
 
- Public Member Functions inherited from ilTestRandomQuestionSetQuestionCollection
 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)
 

Protected Attributes

 $applicantId
 
 $requiredAmount
 

Detailed Description

Member Function Documentation

◆ decrementRequiredAmount()

ilTestRandomQuestionCollectionSubsetApplication::decrementRequiredAmount ( )

decrements the amount required by applicant

Definition at line 67 of file class.ilTestRandomQuestionCollectionSubsetApplication.php.

References getRequiredAmount(), and setRequiredAmount().

+ Here is the call graph for this function:

◆ getApplicantId()

ilTestRandomQuestionCollectionSubsetApplication::getApplicantId ( )

◆ getQuestion()

ilTestRandomQuestionCollectionSubsetApplication::getQuestion (   $questionId)
Returns
ilTestRandomQuestionSetQuestion

Definition at line 83 of file class.ilTestRandomQuestionCollectionSubsetApplication.php.

Referenced by hasQuestion().

84  {
85  foreach ($this as $question) {
86  if ($question->getQuestionId() != $questionId) {
87  continue;
88  }
89 
90  return $question;
91  }
92 
93  return null;
94  }
+ Here is the caller graph for this function:

◆ getRequiredAmount()

ilTestRandomQuestionCollectionSubsetApplication::getRequiredAmount ( )

◆ hasQuestion()

ilTestRandomQuestionCollectionSubsetApplication::hasQuestion (   $questionId)
Returns
bool

Definition at line 75 of file class.ilTestRandomQuestionCollectionSubsetApplication.php.

References getQuestion().

76  {
77  return $this->getQuestion($questionId) !== null;
78  }
+ Here is the call graph for this function:

◆ hasRequiredAmountLeft()

ilTestRandomQuestionCollectionSubsetApplication::hasRequiredAmountLeft ( )

Definition at line 59 of file class.ilTestRandomQuestionCollectionSubsetApplication.php.

References getRequiredAmount().

+ Here is the call graph for this function:

◆ setApplicantId()

ilTestRandomQuestionCollectionSubsetApplication::setApplicantId (   $applicantId)
Parameters
int$applicantId

Definition at line 35 of file class.ilTestRandomQuestionCollectionSubsetApplication.php.

References $applicantId.

◆ setRequiredAmount()

ilTestRandomQuestionCollectionSubsetApplication::setRequiredAmount (   $requiredAmount)
Parameters
int$requiredAmount

Definition at line 51 of file class.ilTestRandomQuestionCollectionSubsetApplication.php.

References $requiredAmount.

Referenced by decrementRequiredAmount().

+ Here is the caller graph for this function:

Field Documentation

◆ $applicantId

ilTestRandomQuestionCollectionSubsetApplication::$applicantId
protected

◆ $requiredAmount

ilTestRandomQuestionCollectionSubsetApplication::$requiredAmount
protected

The documentation for this class was generated from the following file: