ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
ilTestDynamicQuestionSetFilterSelection Class Reference
+ Collaboration diagram for ilTestDynamicQuestionSetFilterSelection:

Public Member Functions

 setAnswerStatusActiveId ($answerStatusActiveId)
 
 getAnswerStatusActiveId ()
 
 setAnswerStatusSelection ($answerStatusSelection)
 
 getAnswerStatusSelection ()
 
 hasAnswerStatusSelection ()
 
 isAnswerStatusSelectionWrongAnswered ()
 
 setTaxonomySelection ($taxonomySelection)
 
 getTaxonomySelection ()
 
 hasSelectedTaxonomy ($taxonomyId)
 
 getSelectedTaxonomy ($taxonomyId)
 
 setForcedQuestionIds ($forcedQuestionIds)
 
 getForcedQuestionIds ()
 

Data Fields

CONST ANSWER_STATUS_FILTER_VALUE_ALL_NON_CORRECT = 'allNonCorrect'
 
CONST ANSWER_STATUS_FILTER_VALUE_NON_ANSWERED = 'nonAnswered'
 
CONST ANSWER_STATUS_FILTER_VALUE_WRONG_ANSWERED = 'wrongAnswered'
 

Private Attributes

 $answerStatusActiveId = null
 
 $answerStatusSelection = null
 
 $taxonomySelection = array()
 
 $forcedQuestionIds = array()
 

Detailed Description

Member Function Documentation

◆ getAnswerStatusActiveId()

ilTestDynamicQuestionSetFilterSelection::getAnswerStatusActiveId ( )

◆ getAnswerStatusSelection()

ilTestDynamicQuestionSetFilterSelection::getAnswerStatusSelection ( )

◆ getForcedQuestionIds()

ilTestDynamicQuestionSetFilterSelection::getForcedQuestionIds ( )
Returns
array

Definition at line 136 of file class.ilTestDynamicQuestionSetFilterSelection.php.

References $forcedQuestionIds.

Referenced by ilTestDynamicQuestionSet\initFilteredQuestionList().

+ Here is the caller graph for this function:

◆ getSelectedTaxonomy()

ilTestDynamicQuestionSetFilterSelection::getSelectedTaxonomy (   $taxonomyId)
Parameters
integer$taxonomyId
Returns
array

Definition at line 120 of file class.ilTestDynamicQuestionSetFilterSelection.php.

121  {
122  return $this->taxonomySelection[$taxonomyId];
123  }

◆ getTaxonomySelection()

ilTestDynamicQuestionSetFilterSelection::getTaxonomySelection ( )

◆ hasAnswerStatusSelection()

ilTestDynamicQuestionSetFilterSelection::hasAnswerStatusSelection ( )
Returns
bool

Definition at line 72 of file class.ilTestDynamicQuestionSetFilterSelection.php.

References getAnswerStatusSelection().

73  {
74  switch( $this->getAnswerStatusSelection() )
75  {
76  case self::ANSWER_STATUS_FILTER_VALUE_ALL_NON_CORRECT:
77  case self::ANSWER_STATUS_FILTER_VALUE_NON_ANSWERED:
78  case self::ANSWER_STATUS_FILTER_VALUE_WRONG_ANSWERED:
79 
80  return true;
81  }
82 
83  return false;
84  }
+ Here is the call graph for this function:

◆ hasSelectedTaxonomy()

ilTestDynamicQuestionSetFilterSelection::hasSelectedTaxonomy (   $taxonomyId)
Parameters
$taxonomyId
Returns
bool

Definition at line 111 of file class.ilTestDynamicQuestionSetFilterSelection.php.

112  {
113  return isset($this->taxonomySelection[$taxonomyId]);
114  }

◆ isAnswerStatusSelectionWrongAnswered()

ilTestDynamicQuestionSetFilterSelection::isAnswerStatusSelectionWrongAnswered ( )

Definition at line 86 of file class.ilTestDynamicQuestionSetFilterSelection.php.

References getAnswerStatusSelection().

87  {
88  return $this->getAnswerStatusSelection() == self::ANSWER_STATUS_FILTER_VALUE_WRONG_ANSWERED;
89  }
+ Here is the call graph for this function:

◆ setAnswerStatusActiveId()

ilTestDynamicQuestionSetFilterSelection::setAnswerStatusActiveId (   $answerStatusActiveId)
Parameters
int$answerStatusActiveId

Definition at line 40 of file class.ilTestDynamicQuestionSetFilterSelection.php.

References $answerStatusActiveId.

◆ setAnswerStatusSelection()

ilTestDynamicQuestionSetFilterSelection::setAnswerStatusSelection (   $answerStatusSelection)
Parameters
null$answerStatusSelection

Definition at line 56 of file class.ilTestDynamicQuestionSetFilterSelection.php.

References $answerStatusSelection.

◆ setForcedQuestionIds()

ilTestDynamicQuestionSetFilterSelection::setForcedQuestionIds (   $forcedQuestionIds)
Parameters
array$forcedQuestionIds

Definition at line 128 of file class.ilTestDynamicQuestionSetFilterSelection.php.

References $forcedQuestionIds.

◆ setTaxonomySelection()

ilTestDynamicQuestionSetFilterSelection::setTaxonomySelection (   $taxonomySelection)
Parameters
array$taxonomySelection

Definition at line 94 of file class.ilTestDynamicQuestionSetFilterSelection.php.

References $taxonomySelection.

Field Documentation

◆ $answerStatusActiveId

ilTestDynamicQuestionSetFilterSelection::$answerStatusActiveId = null
private

◆ $answerStatusSelection

ilTestDynamicQuestionSetFilterSelection::$answerStatusSelection = null
private

◆ $forcedQuestionIds

ilTestDynamicQuestionSetFilterSelection::$forcedQuestionIds = array()
private

◆ $taxonomySelection

ilTestDynamicQuestionSetFilterSelection::$taxonomySelection = array()
private

◆ ANSWER_STATUS_FILTER_VALUE_ALL_NON_CORRECT

CONST ilTestDynamicQuestionSetFilterSelection::ANSWER_STATUS_FILTER_VALUE_ALL_NON_CORRECT = 'allNonCorrect'

◆ ANSWER_STATUS_FILTER_VALUE_NON_ANSWERED

CONST ilTestDynamicQuestionSetFilterSelection::ANSWER_STATUS_FILTER_VALUE_NON_ANSWERED = 'nonAnswered'

◆ ANSWER_STATUS_FILTER_VALUE_WRONG_ANSWERED

CONST ilTestDynamicQuestionSetFilterSelection::ANSWER_STATUS_FILTER_VALUE_WRONG_ANSWERED = 'wrongAnswered'

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