You are here

public function FrxDrupal::searchTables in Forena Reports 8

Method to return an array of tables that start with the string indicated in $str

Parameters

string $str : Partial table Name to search.

Return value

array Array of tables to search. :

Overrides DriverBase::searchTables

File

src/FrxPlugin/Driver/FrxDrupal.php, line 49
Provides data blocks for native drupal connections using the default drupal connections.

Class

FrxDrupal
Class FrxDrupal

Namespace

Drupal\forena\FrxPlugin\Driver

Code

public function searchTables($str) {
  $str .= '%';
  $rs = db_query($this
    ->searchTablesSQL(), array(
    ':str' => $str,
  ));
  if ($rs) {
    return $rs
      ->fetchCol();
  }
  else {
    return NULL;
  }
}