ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
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 = [];
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...
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.
parseValue($value)
Parses the delivered Value and sets the relevant information for an Expression as attributes.
getPattern()
Get the Pattern to match relevant informations for an Expression.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...