62 $this->numeric_value = $matches[0][0];
79 return "#" . $this->numeric_value .
"#";
88 return $this->numeric_value .
" beantwortet ";
102 $values = $result->getUserSolutionsByIdentifier(
"value");
104 foreach ($values as $value) {
105 $isTrue = $isTrue || $this->
compare($comperator, $value);
108 $solution = $result->getSolutionForKey(
$index);
109 $isTrue = $this->
compare($comperator, $solution[
"value"]);
115 private function compare($comperator, $value): bool
117 switch ($comperator) {
getDescription()
Get a human readable description of the Composite element.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
getValue()
Get the value of this Expression.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
checkResult($result, $comperator, $index=null)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
setMatches($matches)
Sets the result of the parsed value by a specific expression pattern.
compare($comperator, $value)