3 include_once
"Modules/TestQuestionPool/classes/questions/LogicalAnswerCompare/Expressions/ilAssLacAbstractExpression.php";
4 include_once
"Modules/TestQuestionPool/classes/questions/LogicalAnswerCompare/Expressions/ilAssLacSolutionExpressionInterface.php";
50 return '/;(\d+):(\d+);/';
62 $this->left_numeric_value = $matches[1][0];
63 $this->right_numeric_value = $matches[2][0];
88 return ";" . $this->left_numeric_value .
":" . $this->right_numeric_value .
";";
97 return $this->numeric_value .
" beantwortet ";
109 $solutions =
$result->getSolutions();
111 foreach ($solutions as $solution) {
112 $isTrue = $isTrue || $this->
compare($comperator, $solution[
"key"], $solution[
"value"]);
124 private function compare($comperator, $left, $right)
126 switch ($comperator) {
compare($comperator, $left, $right)
checkResult($result, $comperator, $index=null)
getDescription()
Get a human readable description of the Composite element.
Class AbstractExpression.
setMatches($matches)
Sets the result of the parsed value by a specific expression pattern.
getValue()
Get the value of this Expression.
Class SolutionExpressionInterface.
Class MatchingResultExpression for the expression ;n:m;.