ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Class iQuestionCondition. More...
Public Member Functions | |
getOperators ($expression) | |
Get all available operations for a specific question. More... | |
getExpressionTypes () | |
Get all available expression types for a specific question. More... | |
getUserQuestionResult ($active_id, $pass) | |
Get the user solution for a question by active_id and the test pass. More... | |
getAvailableAnswerOptions ($index=null) | |
If index is null, the function returns an array with all anwser options Else it returns the specific answer option. More... | |
Data Fields | |
const | StringResultExpression = '~TEXT~' |
const | PercentageResultExpression = '%n%' |
const | NumericResultExpression = '#n#' |
const | MatchingResultExpression = ';n:m;' |
const | OrderingResultExpression = '$n,m,o,p$' |
const | NumberOfResultExpression = '+n+' |
const | ExclusiveResultExpression = '*n,m,o,p*' |
const | EmptyAnswerExpression = "?" |
Class iQuestionCondition.
Date: 02.12.13 Time: 14:02
Definition at line 9 of file interface.iQuestionCondition.php.
iQuestionCondition::getAvailableAnswerOptions | ( | $index = null | ) |
If index is null, the function returns an array with all anwser options Else it returns the specific answer option.
null | int | $index |
Implemented in assClozeTest, assMatchingQuestion, assOrderingQuestion, assFormulaQuestion, assMultipleChoice, assErrorText, assSingleChoice, assImagemapQuestion, assJavaApplet, assTextSubset, assOrderingHorizontal, assFlashQuestion, and assNumeric.
iQuestionCondition::getExpressionTypes | ( | ) |
Get all available expression types for a specific question.
Implemented in assClozeTest, assMatchingQuestion, assOrderingQuestion, assFormulaQuestion, assMultipleChoice, assErrorText, assSingleChoice, assJavaApplet, assImagemapQuestion, assTextSubset, assFlashQuestion, assOrderingHorizontal, and assNumeric.
iQuestionCondition::getOperators | ( | $expression | ) |
Get all available operations for a specific question.
$expression |
Implemented in assClozeTest, assMatchingQuestion, assOrderingQuestion, assFormulaQuestion, assMultipleChoice, assErrorText, assSingleChoice, assJavaApplet, assImagemapQuestion, assTextSubset, assFlashQuestion, assOrderingHorizontal, and assNumeric.
iQuestionCondition::getUserQuestionResult | ( | $active_id, | |
$pass | |||
) |
Get the user solution for a question by active_id and the test pass.
int | $active_id | |
int | $pass |
Implemented in assJavaApplet, and assFlashQuestion.
Referenced by assNumeric\getExpressionTypes(), assOrderingHorizontal\getExpressionTypes(), assTextSubset\getExpressionTypes(), assImagemapQuestion\getExpressionTypes(), assSingleChoice\getExpressionTypes(), assErrorText\getExpressionTypes(), assMultipleChoice\getExpressionTypes(), assFormulaQuestion\getExpressionTypes(), assOrderingQuestion\getExpressionTypes(), assMatchingQuestion\getExpressionTypes(), and assClozeTest\getExpressionTypes().
const iQuestionCondition::EmptyAnswerExpression = "?" |
Definition at line 18 of file interface.iQuestionCondition.php.
Referenced by ilAssLacLegendGUI\getAvailableExpressionTypes(), assNumeric\getExpressionTypes(), assFlashQuestion\getExpressionTypes(), assTextSubset\getExpressionTypes(), assImagemapQuestion\getExpressionTypes(), assJavaApplet\getExpressionTypes(), assSingleChoice\getExpressionTypes(), assErrorText\getExpressionTypes(), assMultipleChoice\getExpressionTypes(), assFormulaQuestion\getExpressionTypes(), assOrderingQuestion\getExpressionTypes(), assMatchingQuestion\getExpressionTypes(), and assClozeTest\getExpressionTypes().
Definition at line 17 of file interface.iQuestionCondition.php.
Referenced by ilAssLacLegendGUI\getAvailableExpressionTypes(), assImagemapQuestion\getExpressionTypes(), assErrorText\getExpressionTypes(), and assMultipleChoice\getExpressionTypes().
const iQuestionCondition::MatchingResultExpression = ';n:m;' |
Definition at line 14 of file interface.iQuestionCondition.php.
Referenced by ilAssLacLegendGUI\getAvailableExpressionTypes(), and assMatchingQuestion\getExpressionTypes().
const iQuestionCondition::NumberOfResultExpression = '+n+' |
Definition at line 16 of file interface.iQuestionCondition.php.
Referenced by ilAssLacLegendGUI\getAvailableExpressionTypes(), assImagemapQuestion\getExpressionTypes(), assSingleChoice\getExpressionTypes(), assErrorText\getExpressionTypes(), assMultipleChoice\getExpressionTypes(), and assClozeTest\getExpressionTypes().
const iQuestionCondition::NumericResultExpression = '#n#' |
Definition at line 13 of file interface.iQuestionCondition.php.
Referenced by ilAssLacLegendGUI\getAvailableExpressionTypes(), assNumeric\getExpressionTypes(), assOrderingHorizontal\getExpressionTypes(), assFlashQuestion\getExpressionTypes(), assTextSubset\getExpressionTypes(), assFormulaQuestion\getExpressionTypes(), assOrderingQuestion\getExpressionTypes(), assMatchingQuestion\getExpressionTypes(), and assClozeTest\getExpressionTypes().
const iQuestionCondition::OrderingResultExpression = '$n,m,o,p$' |
Definition at line 15 of file interface.iQuestionCondition.php.
Referenced by ilAssLacLegendGUI\getAvailableExpressionTypes(), assOrderingHorizontal\getExpressionTypes(), and assOrderingQuestion\getExpressionTypes().
const iQuestionCondition::PercentageResultExpression = '%n%' |
Definition at line 12 of file interface.iQuestionCondition.php.
Referenced by ilAssLacLegendGUI\getAvailableExpressionTypes(), assNumeric\getExpressionTypes(), assOrderingHorizontal\getExpressionTypes(), assFlashQuestion\getExpressionTypes(), assTextSubset\getExpressionTypes(), assImagemapQuestion\getExpressionTypes(), assJavaApplet\getExpressionTypes(), assSingleChoice\getExpressionTypes(), assErrorText\getExpressionTypes(), assMultipleChoice\getExpressionTypes(), assFormulaQuestion\getExpressionTypes(), assOrderingQuestion\getExpressionTypes(), assMatchingQuestion\getExpressionTypes(), and assClozeTest\getExpressionTypes().
const iQuestionCondition::StringResultExpression = '~TEXT~' |
Definition at line 11 of file interface.iQuestionCondition.php.
Referenced by ilAssLacLegendGUI\getAvailableExpressionTypes(), assOrderingHorizontal\getExpressionTypes(), assTextSubset\getExpressionTypes(), and assClozeTest\getExpressionTypes().