62         $this->numeric_value = $matches[0][0];
    79         return '+' . $this->numeric_value . 
"+";
    88         return "Anwort " . $this->numeric_value . 
" beantwortet ";
    98     public function checkResult($result, $comperator, $index = null): bool
   101         if ($index == null) {
   102             $values = $result->getUserSolutionsByIdentifier(
"key");
   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) {
 
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...
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
compare($comperator, $value)
 
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...
 
checkResult($result, $comperator, $index=null)
 
setMatches($matches)
Sets the result of the parsed value by a specific expression pattern.