ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
ilAssLacAbstractExpression.php
Go to the documentation of this file.
1 <?php
2 
27 {
32  protected function getPattern(): string
33  {
34  return '/-?[0-9\.]+/';
35  }
36 
42  public function parseValue($value): void
43  {
44  $result = array();
45  preg_match_all($this->getPattern(), $value, $result);
46  $this->setMatches($result);
47  }
48 
56  abstract protected function setMatches($matches);
57 }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
parseValue($value)
Parses the delivered Value and sets the relevant information for an Expression as attributes...
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.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...