You are here

public function SQLReplacer::__construct in Forena Reports 7.5

Same name and namespace in other branches
  1. 8 src/Token/SQLReplacer.php \Drupal\forena\Token\SQLReplacer::__construct()

Parameters

$formatter: SQL Data replacer

Overrides TokenReplacerBase::__construct

File

src/Token/SQLReplacer.php, line 18

Class

SQLReplacer

Namespace

Drupal\forena\Token

Code

public function __construct($formatter = NULL) {
  parent::__construct(FRX_SQL_TOKEN, ':');
  if ($formatter) {
    $this
      ->setFormatter($formatter);
  }
}