public function TokenReplacerBase::__construct in Forena Reports 7.5
Same name and namespace in other branches
- 8 src/Token/TokenReplacerBase.php \Drupal\forena\Token\TokenReplacerBase::__construct()
Class for doing syntax replacements;
Parameters
$regexp:
$trim Trim characgers:
$data Data object to be used for resolving contexts.:
Return value
unknown_type
2 calls to TokenReplacerBase::__construct()
- ReportReplacer::__construct in src/
Token/ ReportReplacer.php - Class for doing syntax replacements;
- SQLReplacer::__construct in src/
Token/ SQLReplacer.php
2 methods override TokenReplacerBase::__construct()
- ReportReplacer::__construct in src/
Token/ ReportReplacer.php - Class for doing syntax replacements;
- SQLReplacer::__construct in src/
Token/ SQLReplacer.php
File
- src/
Token/ TokenReplacerBase.php, line 24 - 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
Namespace
Drupal\forena\TokenCode
public function __construct($regexp, $trim, $formatter = NULL, $data = NULL) {
$this->tpattern = $regexp;
$this->trim_chars = $trim;
if (is_object($formatter)) {
$this->formatter = $formatter;
}
if ($data) {
$this->data = $data;
}
else {
$this->data = \Frx::Data();
}
}