public getVirtualTables ( string $db ) : array | ||
$db | string | Database name to look in |
return | array | $views Set of VIEWs inside the database |
public function getVirtualTables($db)
{
$tables_full = $this->getTablesFull($db);
$views = array();
foreach ($tables_full as $table => $tmp) {
$_table = $this->getTable($db, $table);
if ($_table->isView()) {
$views[] = $table;
}
}
return $views;
}