38 public static $pattern =
'/\$[0-9]+(?:,[0-9]+)*\$/';
68 foreach ($matches[0] as $match) {
69 $this->ordering[] = $match;
87 return "$" . join(
",", $this->ordering) .
"$";
96 return join(
",", $this->ordering) .
" beantwortet ";
106 public function checkResult($result, $comperator, $index =
null): bool
108 $keys = $result->getUserSolutionsByIdentifier(
"key");
109 $keys = array_filter($keys,
function ($element) {
110 return $element !=
null;
113 switch ($comperator) {
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
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)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...