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 ";
102 $isTrue = $isTrue || $this->
compare($comperator, $value);
106 $isTrue = $this->
compare($comperator, $solution[
"value"]);
120 switch ($comperator) {
122 return $this->
getText() == $value;
125 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.