You are here

class SQLReplacer in Forena Reports 8

Same name and namespace in other branches
  1. 7.5 src/Token/SQLReplacer.php \Drupal\forena\Token\SQLReplacer

Hierarchy

Expanded class hierarchy of SQLReplacer

5 files declare their use of SQLReplacer
FrxDrupal.php in src/FrxPlugin/Driver/FrxDrupal.php
Provides data blocks for native drupal connections using the default drupal connections.
FrxMSSQL.php in src/FrxPlugin/Driver/FrxMSSQL.php
Oracle specific driver that takes advantage of oracles native XML support
FrxOracle.php in src/FrxPlugin/Driver/FrxOracle.php
Oracle specific driver that takes advantage of oracles native XML support
FrxPDO.php in src/FrxPlugin/Driver/FrxPDO.php
General database engine used to do sql queries.
FrxPostgres.php in src/FrxPlugin/Driver/FrxPostgres.php
Postgres specific driver that takes advantage of native XML support

File

src/Token/SQLReplacer.php, line 12

Namespace

Drupal\forena\Token
View source
class SQLReplacer extends TokenReplacerBase {

  /**
   * @param $formatter
   * SQL Data replacer
   */
  public function __construct($formatter = NULL) {
    parent::__construct(FRX_SQL_TOKEN, ':');
    if ($formatter) {
      $this
        ->setFormatter($formatter);
    }
  }

}

Members

Namesort descending Modifiers Type Description Overrides
FrxAPI::app public function Returns containing application service
FrxAPI::currentDataContext public function Get the current data context.
FrxAPI::currentDataContextArray public function
FrxAPI::dataManager public function Returns the data manager service
FrxAPI::dataService public function Return Data Service
FrxAPI::documentManager public function Returns the fornea document manager
FrxAPI::error public function Report an error
FrxAPI::getDataContext public function Get the context of a specific id.
FrxAPI::getDocument public function Get the current document
FrxAPI::getReportFileContents public function Load the contents of a file in the report file system.
FrxAPI::innerXML function Enter description here... 1
FrxAPI::popData public function Pop data off of the stack.
FrxAPI::pushData public function Push data onto the Stack
FrxAPI::report public function Run a report with a particular format. 1
FrxAPI::reportFileSystem public function Get the current report file system.
FrxAPI::setDataContext public function Set Data context by id.
FrxAPI::setDocument public function Change to a specific document type.
FrxAPI::skins public function Get list of skins.
SQLReplacer::__construct public function Overrides TokenReplacerBase::__construct
TokenReplacerBase::$formatter protected property
TokenReplacerBase::$tpattern private property
TokenReplacerBase::$trim_chars protected property
TokenReplacerBase::get_value protected function Get the value from the data. This is used by token_replace method to extract the data based on the path provided. 1
TokenReplacerBase::object_to_array public function Convert an object into an array
TokenReplacerBase::replace public function Replace the text in a report. Overrides TokenReplacerInterface::replace
TokenReplacerBase::setFormatter public function
TokenReplacerBase::test public function Test for TRUE/FALSE for conditions that are able to be represented using bind parameters Note that & are used to separate the different conditions and these are to be OR'd together. Overrides TokenReplacerInterface::test
TokenReplacerBase::tokens public function List all of the tokens used in a piece of text, ignoring duplicates. Overrides TokenReplacerInterface::tokens