public function FrxSyntaxEngine::__construct in Forena Reports 7
Same name and namespace in other branches
- 6.2 FrxSyntaxEngine.inc \FrxSyntaxEngine::__construct()
- 6 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 23 - 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) {
$this->tpattern = $regexp;
$this->trim_chars = $trim;
if (is_object($formatter)) {
$this->formatter = $formatter;
}
$this->data_stack = array();
$this->data_sources = array();
}