3include_once
"Modules/TestQuestionPool/classes/questions/LogicalAnswerCompare/Expressions/ilAssLacAbstractExpression.php";
4include_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)
113 $isTrue = $isTrue || $this->
compare($comperator, $solution[
"key"], $solution[
"value"]);
125 private function compare($comperator, $left, $right)
Class AbstractExpression.
Class MatchingResultExpression for the expression ;n:m;.
compare($comperator, $left, $right)
getDescription()
Get a human readable description of the Composite element.
getPattern()
Get the Pattern to match relevant informations for an Expression.
checkResult($result, $comperator, $index=null)
setMatches($matches)
Sets the result of the parsed value by a specific expression pattern.
getValue()
Get the value of this Expression.
Class SolutionExpressionInterface.