ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
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(string $expression): array;
45
51 public function getExpressionTypes(): array;
52
56 public function getUserQuestionResult(int $active_id, int $pass): ilUserQuestionResult;
57
62 public function getAvailableAnswerOptions(?int $index = null);
63}
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
getAvailableAnswerOptions(?int $index=null)
If index is null, the function returns an array with all anwser options else it returns the specific ...
getOperators(string $expression)
Get all available operations for a specific question.
getExpressionTypes()
Get all available expression types for a specific question.
getUserQuestionResult(int $active_id, int $pass)
Get the user solution for a question by active_id and the test pass.