1 backup.mysql.inc | protected BackupMySql::getViewNames() |
Get a list of views in the database.
Return value
string[]: An array of all view names, numerically indexed.
Overrides BackupDatabase::getViewNames
File
- core/
includes/ backup/ backup.mysql.inc, line 196 - Contains the BackupMySQL class.
Class
- BackupMySql
- Creates and restores backups from a MySQL database source.
Code
protected function getViewNames() {
if (empty($this->viewNames)) {
$this->viewNames = $this->query("SHOW FULL TABLES WHERE Table_Type = 'VIEW'")
->fetchCol();
}
return $this->viewNames;
}