ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
iQuestionCondition Interface Reference

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. 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

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.

ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.

If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning 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 25 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

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

◆ getExpressionTypes()

iQuestionCondition::getExpressionTypes ( )

◆ getOperators()

iQuestionCondition::getOperators (   $expression)

Get all available operations for a specific question.

Parameters
$expression

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

◆ getUserQuestionResult()

iQuestionCondition::getUserQuestionResult (   $active_id,
  $pass 
)

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: