ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
interface.iQuestionCondition.php
Go to the documentation of this file.
1 <?php
26 {
27  public const StringResultExpression = '~TEXT~';
28  public const PercentageResultExpression = '%n%';
29  public const NumericResultExpression = '#n#';
30  public const MatchingResultExpression = ';n:m;';
31  public const OrderingResultExpression = '$n,m,o,p$';
32  public const NumberOfResultExpression = '+n+';
33  public const ExclusiveResultExpression = '*n,m,o,p*';
34  public const EmptyAnswerExpression = "?";
35 
44  public function getOperators($expression): array;
45 
51  public function getExpressionTypes(): array;
52 
61  public function getUserQuestionResult($active_id, $pass): ilUserQuestionResult;
62 
69  public function getAvailableAnswerOptions($index = null);
70 }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
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.
$index
Definition: metadata.php:145
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
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 ...