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) {
56 $this->ordering[] = $match;
74 return "$" . join(
",", $this->ordering) .
"$";
83 return join(
",", $this->ordering) .
" beantwortet ";
96 $keys = array_filter(
$keys,
function ($element) {
97 return $element !=
null;
100 switch ($comperator) {
An exception for terminatinating execution or to throw for unit testing.
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.