ILIAS  trunk Revision v12.0_alpha-1540-g00f839d5fa1
interface.iQuestionCondition.php
Go to the documentation of this file.
1<?php
2
27{
28 public const StringResultExpression = '~TEXT~';
29 public const PercentageResultExpression = '%n%';
30 public const NumericResultExpression = '#n#';
31 public const MatchingResultExpression = ';n:m;';
32 public const OrderingResultExpression = '$n,m,o,p$';
33 public const NumberOfResultExpression = '+n+';
34 public const ExclusiveResultExpression = '*n,m,o,p*';
35 public const EmptyAnswerExpression = "?";
36
45 public function getOperators(string $expression): array;
46
52 public function getExpressionTypes(): array;
53
57 public function getUserQuestionResult(int $active_id, int $pass): ilUserQuestionResult;
58
63 public function getAvailableAnswerOptions(?int $index = null);
64}
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.