3 include_once
"Modules/TestQuestionPool/classes/questions/LogicalAnswerCompare/Expressions/ilAssLacAbstractExpression.php";
4 include_once
"Modules/TestQuestionPool/classes/questions/LogicalAnswerCompare/Expressions/ilAssLacSolutionExpressionInterface.php";
59 $this->text = $matches[1][0];
76 return "~" . $this->text .
'~';
85 return $this->text .
" beantwortet ";
100 $values =
$result->getUserSolutionsByIdentifier(
"value");
102 foreach($values as $value)
104 $isTrue = $isTrue || $this->
compare($comperator, $value);
109 $solution =
$result->getSolutionForKey($index);
110 $isTrue = $this->
compare($comperator, $solution[
"value"]);
127 return $this->
getText() == $value;
130 return $this->
getText() != $value;
getValue()
Get the value of this Expression.
Class StringResultExpression for the expression ~TEXT~.
getDescription()
Get a human readable description of the Composite element.
checkResult($result, $comperator, $index=null)
Class AbstractExpression.
compare($comperator, $value)
Class SolutionExpressionInterface.
getPattern()
Get the Pattern to match relevant informations for an Expression.
setMatches($matches)
Sets the result of the parsed value by a specific expression pattern.