class SQLReplacer in Forena Reports 8
Same name and namespace in other branches
- 7.5 src/Token/SQLReplacer.php \Drupal\forena\Token\SQLReplacer
Hierarchy
- class \Drupal\forena\Token\TokenReplacerBase implements TokenReplacerInterface uses FrxAPI- class \Drupal\forena\Token\SQLReplacer
 
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\TokenView 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
| Name   | Modifiers | Type | Description | Overrides | 
|---|---|---|---|---|
| FrxAPI:: | public | function | Returns containing application service | |
| FrxAPI:: | public | function | Get the current data context. | |
| FrxAPI:: | public | function | ||
| FrxAPI:: | public | function | Returns the data manager service | |
| FrxAPI:: | public | function | Return Data Service | |
| FrxAPI:: | public | function | Returns the fornea document manager | |
| FrxAPI:: | public | function | Report an error | |
| FrxAPI:: | public | function | Get the context of a specific id. | |
| FrxAPI:: | public | function | Get the current document | |
| FrxAPI:: | public | function | Load the contents of a file in the report file system. | |
| FrxAPI:: | function | Enter description here... | 1 | |
| FrxAPI:: | public | function | Pop data off of the stack. | |
| FrxAPI:: | public | function | Push data onto the Stack | |
| FrxAPI:: | public | function | Run a report with a particular format. | 1 | 
| FrxAPI:: | public | function | Get the current report file system. | |
| FrxAPI:: | public | function | Set Data context by id. | |
| FrxAPI:: | public | function | Change to a specific document type. | |
| FrxAPI:: | public | function | Get list of skins. | |
| SQLReplacer:: | public | function | Overrides TokenReplacerBase:: | |
| TokenReplacerBase:: | protected | property | ||
| TokenReplacerBase:: | private | property | ||
| TokenReplacerBase:: | protected | property | ||
| TokenReplacerBase:: | 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:: | public | function | Convert an object into an array | |
| TokenReplacerBase:: | public | function | Replace the text in a report. Overrides TokenReplacerInterface:: | |
| TokenReplacerBase:: | public | function | ||
| TokenReplacerBase:: | 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:: | |
| TokenReplacerBase:: | public | function | List all of the tokens used in a piece of text, ignoring duplicates. Overrides TokenReplacerInterface:: | 
