62         $this->numeric_value = $matches[0][0];
    79         return "#" . $this->numeric_value . 
"#";
    88         return $this->numeric_value . 
" beantwortet ";
    98     public function checkResult($result, $comperator, $index = null): bool
   101         if ($index == null) {
   102             $values = $result->getUserSolutionsByIdentifier(
"value");
   104             foreach ($values as $value) {
   105                 $isTrue = $isTrue || $this->
compare($comperator, $value);
   108             $solution = $result->getSolutionForKey($index);
   109             if($solution !== null) {
   110                 $isTrue = $this->
compare($comperator, $solution[
"value"] ?? 
"");
   117     private function compare($comperator, $value): bool
   119         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)