public function TokenReplacerBase::__construct in Forena Reports 8
Same name and namespace in other branches
- 7.5 src/Token/TokenReplacerBase.php \Drupal\forena\Token\TokenReplacerBase::__construct()
Parameters
$regexp: Regular expression used to find the tokens.
string $trim: Characters used to remove from the regular expression.
null $formatter: Object contaning the formatter method.
2 calls to TokenReplacerBase::__construct()
- ReportReplacer::__construct in src/
Token/ ReportReplacer.php - SQLReplacer::__construct in src/
Token/ SQLReplacer.php
2 methods override TokenReplacerBase::__construct()
- ReportReplacer::__construct in src/
Token/ ReportReplacer.php - SQLReplacer::__construct in src/
Token/ SQLReplacer.php
File
- src/
Token/ TokenReplacerBase.php, line 32 - 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
- TokenReplacerBase
- Base class for token replacements. @package Drupal\forena\Token
Namespace
Drupal\forena\TokenCode
public function __construct($regexp, $trim, $formatter = NULL) {
$this->tpattern = $regexp;
$this->trim_chars = $trim;
if (is_object($formatter)) {
$this->formatter = $formatter;
}
}