3include_once
"Modules/TestQuestionPool/classes/questions/LogicalAnswerCompare/Expressions/ilAssLacAbstractExpression.php";
4include_once
"Modules/TestQuestionPool/classes/questions/LogicalAnswerCompare/Expressions/ilAssLacSolutionExpressionInterface.php";
25 public static $pattern =
'/\$[0-9]+(?:,[0-9]+)*\$/';
53 $this->ordering = array();
55 foreach($matches[0] as $match)
57 $this->ordering[] = $match;
75 return "$" . join(
",", $this->ordering) .
"$";
84 return join(
",", $this->ordering) .
" beantwortet ";
96 $keys =
$result->getUserSolutionsByIdentifier(
"key");
97 $keys = array_filter($keys,
function($element) {
98 return $element !=
null;
Class AbstractExpression.
Class OrderingResultExpression for the expression $a,..,n,m$.
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.
getDescription()
Get a human readable description of the Composite element.
getValue()
Get the value of this Expression.
checkResult($result, $comperator, $index=null)
Class SolutionExpressionInterface.