public function FrxPDO::searchTables in Forena Reports 7.5
Method to return an array of tables that start with the string indicated in $str
Parameters
$str Name of tables.:
Return value
multitype:
Overrides FrxDataSource::searchTables
File
- src/
Driver/ FrxPDO.php, line 224 - General database engine used to do sql queries.
Class
Namespace
Drupal\forena\DriverCode
public function searchTables($str) {
$str .= '%';
$sql = $this
->searchTablesSQL();
if ($sql) {
$st = $this->db
->prepare($sql);
if ($st) {
$st
->execute(array(
':str' => $str,
));
}
if ($st) {
return $st
->fetchAll(\PDO::FETCH_COLUMN, 0);
}
}
}