public function FrxSyntaxEngine::__construct in Forena Reports 6.2
Same name and namespace in other branches
- 6 FrxSyntaxEngine.inc \FrxSyntaxEngine::__construct()
- 7 FrxSyntaxEngine.inc \FrxSyntaxEngine::__construct()
- 7.2 FrxSyntaxEngine.inc \FrxSyntaxEngine::__construct()
- 7.3 FrxSyntaxEngine.inc \FrxSyntaxEngine::__construct()
- 7.4 FrxSyntaxEngine.inc \FrxSyntaxEngine::__construct()
Class for doing syntax replacements;
Parameters
$regexp:
Return value
unknown_type
File
- ./
FrxSyntaxEngine.inc, line 22 - FrXSytnaxEngine defines how regular expression procesing/token substitution takes place. It includes support for passing in a formatter oobject that will escape strings properly before substituting them.
Class
Code
public function __construct($regexp, $trim, $formatter = NULL, $frxObject = NULL) {
$this->tpattern = $regexp;
$this->trim_chars = $trim;
if (is_object($formatter)) {
$this->formatter = $formatter;
}
if ($frxObject) {
$this->frxData = $frxObject;
}
else {
$this->frxData = FrxData::instance();
}
}