ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
class.ilOperatorsExpressionMapping.php
Go to the documentation of this file.
1<?php
2
3require_once "./Modules/TestQuestionPool/interfaces/interface.iQuestionCondition.php";
4
13{
14
18 private static $mappings = array(
19 iQuestionCondition::PercentageResultExpression => array("<", "<=", "=", ">=", ">", "<>"),
20 iQuestionCondition::NumericResultExpression => array("<", "<=", "=", ">=", ">", "<>"),
27 );
28
34 public static function getOperatorsByExpression($expression)
35 {
36 return self::$mappings[$expression];
37 }
38
39 public static function getAll()
40 {
41 return self::$mappings;
42 }
43}
An exception for terminatinating execution or to throw for unit testing.
Class ilOperatorsExpressionMapping.