72         $this->text = $matches[1][0];
    89         return "~" . $this->text . 
'~';
    98         return $this->text . 
" beantwortet ";
   108     public function checkResult($result, $comperator, $index = null): bool
   111         if ($index == null) {
   112             $values = $result->getUserSolutionsByIdentifier(
"value");
   114             foreach ($values as $value) {
   115                 $isTrue = $isTrue || $this->
compare($comperator, $value);
   118             $solution = $result->getSolutionForKey($index);
   119             $isTrue = $this->
compare($comperator, $solution[
"value"] ?? 
"");
   131     private function compare($comperator, $value): bool
   133         switch ($comperator) {
   135                 return $this->
getText() == $value;
   138                 return $this->
getText() != $value;
 
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...
 
getDescription()
Get a human readable description of the Composite element. 
 
checkResult($result, $comperator, $index=null)
 
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
 
compare($comperator, $value)
 
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.