ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
iQuestionCondition Interface Reference

Class iQuestionCondition. More...

+ Inheritance diagram for iQuestionCondition:
+ Collaboration diagram for iQuestionCondition:

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 = "?"
 

Detailed Description

Class iQuestionCondition.

Date: 02.12.13 Time: 14:02

Author
Thomas Joußen tjous.nosp@m.sen@.nosp@m.datab.nosp@m.ay.d.nosp@m.e

Definition at line 9 of file interface.iQuestionCondition.php.

Member Function Documentation

◆ getAvailableAnswerOptions()

iQuestionCondition::getAvailableAnswerOptions (   $index = null)

If index is null, the function returns an array with all anwser options Else it returns the specific answer option.

Parameters
null | int$index
Returns
array|ASS_AnswerSimple

Implemented in assClozeTest, assMatchingQuestion, assOrderingQuestion, assFormulaQuestion, assMultipleChoice, assErrorText, assSingleChoice, assImagemapQuestion, assJavaApplet, assTextSubset, assOrderingHorizontal, assFlashQuestion, and assNumeric.

◆ getExpressionTypes()

iQuestionCondition::getExpressionTypes ( )

◆ getOperators()

iQuestionCondition::getOperators (   $expression)

◆ getUserQuestionResult()

Field Documentation

◆ EmptyAnswerExpression

◆ ExclusiveResultExpression

◆ MatchingResultExpression

const iQuestionCondition::MatchingResultExpression = ';n:m;'

◆ NumberOfResultExpression

◆ NumericResultExpression

◆ OrderingResultExpression

const iQuestionCondition::OrderingResultExpression = '$n,m,o,p$'

◆ PercentageResultExpression

◆ StringResultExpression


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