ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
interface.iQuestionCondition.php
Go to the documentation of this file.
1 <?php
9 interface iQuestionCondition {
10 
11  const StringResultExpression = '~TEXT~';
13  const NumericResultExpression = '#n#';
14  const MatchingResultExpression = ';n:m;';
15  const OrderingResultExpression = '$n,m,o,p$';
16  const NumberOfResultExpression = '+n+';
17  const ExclusiveResultExpression = '*n,m,o,p*';
18  const EmptyAnswerExpression = "?";
19 
28  public function getOperators($expression);
29 
35  public function getExpressionTypes();
36 
45  public function getUserQuestionResult($active_id, $pass);
46 
55  public function getAvailableAnswerOptions($index = null);
56 }
Class iQuestionCondition.
getOperators($expression)
Get all available operations for a specific question.
getUserQuestionResult($active_id, $pass)
Get the user solution for a question by active_id and the test pass.
getExpressionTypes()
Get all available expression types for a specific question.
getAvailableAnswerOptions($index=null)
If index is null, the function returns an array with all anwser options Else it returns the specific ...