ILIAS  trunk Revision v11.0_alpha-1753-gb21ca8c4367
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator 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(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...
getOperators(string $expression)
Get all available operations for a specific question.
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
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(?int $index=null)
If index is null, the function returns an array with all anwser options else it returns the specific ...
getUserQuestionResult(int $active_id, int $pass)
Get the user solution for a question by active_id and the test pass.