ILIAS  Release_5_0_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
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.
 getExpressionTypes ()
 Get all available expression types for a specific question.
 getUserQuestionResult ($active_id, $pass)
 Get the user solution for a question by active_id and the test pass.
 getAvailableAnswerOptions ($index=null)
 If index is null, the function returns an array with all anwser options Else it returns the specific answer option.

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

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.

iQuestionCondition::getExpressionTypes ( )
iQuestionCondition::getOperators (   $expression)
iQuestionCondition::getUserQuestionResult (   $active_id,
  $pass 
)

Get the user solution for a question by active_id and the test pass.

Parameters
int$active_id
int$pass
Returns
ilUserQuestionResult

Implemented in assJavaApplet, and assFlashQuestion.

Field Documentation

const iQuestionCondition::ExclusiveResultExpression = '*n,m,o,p*'
const iQuestionCondition::MatchingResultExpression = ';n:m;'
const iQuestionCondition::OrderingResultExpression = '$n,m,o,p$'
const iQuestionCondition::StringResultExpression = '~TEXT~'

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