You are here

class SQLReplacer in Forena Reports 7.5

Same name and namespace in other branches
  1. 8 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/Driver/FrxDrupal.php
Provides data blocks for native drupal connections using the default drupal connections.
FrxMSSQL.php in src/Driver/FrxMSSQL.php
Oracle specific driver that takes advantage of oracles native XML support
FrxOracle.php in src/Driver/FrxOracle.php
Oracle specific driver that takes advantage of oracles native XML support
FrxPDO.php in src/Driver/FrxPDO.php
General database engine used to do sql queries.
FrxPostgres.php in src/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
SQLReplacer::__construct public function Overrides TokenReplacerBase::__construct
TokenReplacerBase::$data private property
TokenReplacerBase::$formatter private property
TokenReplacerBase::$tpattern private property
TokenReplacerBase::$trim_chars private 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.
TokenReplacerBase::object_to_array public function Convert an object into an array
TokenReplacerBase::replace public function 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