ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
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 135 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 119 of file class.ilTestDynamicQuestionSetFilterSelection.php.

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

◆ 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  case self::ANSWER_STATUS_FILTER_VALUE_ALL_NON_CORRECT:
76  case self::ANSWER_STATUS_FILTER_VALUE_NON_ANSWERED:
77  case self::ANSWER_STATUS_FILTER_VALUE_WRONG_ANSWERED:
78 
79  return true;
80  }
81 
82  return false;
83  }
+ Here is the call graph for this function:

◆ hasSelectedTaxonomy()

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

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

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

◆ isAnswerStatusSelectionWrongAnswered()

ilTestDynamicQuestionSetFilterSelection::isAnswerStatusSelectionWrongAnswered ( )

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

References getAnswerStatusSelection().

86  {
87  return $this->getAnswerStatusSelection() == self::ANSWER_STATUS_FILTER_VALUE_WRONG_ANSWERED;
88  }
+ 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 127 of file class.ilTestDynamicQuestionSetFilterSelection.php.

References $forcedQuestionIds.

◆ setTaxonomySelection()

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

Definition at line 93 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: