You are here

public function TokenReplacerBase::setFormatter in Forena Reports 8

Same name and namespace in other branches
  1. 7.5 src/Token/TokenReplacerBase.php \Drupal\forena\Token\TokenReplacerBase::setFormatter()

Parameters

$formatter: Building

2 calls to TokenReplacerBase::setFormatter()
ReportReplacer::__construct in src/Token/ReportReplacer.php
SQLReplacer::__construct in src/Token/SQLReplacer.php

File

src/Token/TokenReplacerBase.php, line 44
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\Token

Code

public function setFormatter($formatter) {
  $this->formatter = $formatter;
}