3 include_once
"Modules/TestQuestionPool/classes/questions/LogicalAnswerCompare/Expressions/ilAssLacAbstractExpression.php";
4 include_once
"Modules/TestQuestionPool/classes/questions/LogicalAnswerCompare/Expressions/ilAssLacSolutionExpressionInterface.php";
49 $this->numeric_value = $matches[0][0];
66 return "#" . $this->numeric_value .
"#";
75 return $this->numeric_value .
" beantwortet ";
90 $values =
$result->getUserSolutionsByIdentifier(
"value");
92 foreach($values as $value)
94 $isTrue = $isTrue || $this->
compare($comperator, $value);
99 $solution =
$result->getSolutionForKey($index);
100 $isTrue = $this->
compare($comperator, $solution[
"value"]);
getDescription()
Get a human readable description of the Composite element.
Class AbstractExpression.
getValue()
Get the value of this Expression.
Class NumericResultExpression for the expression n#.
checkResult($result, $comperator, $index=null)
Class SolutionExpressionInterface.
setMatches($matches)
Sets the result of the parsed value by a specific expression pattern.
compare($comperator, $value)