1 backup.mysql.inc | protected BackupMySql::getTableData() |
Get a list of table and view data from the database.
File
- core/
includes/ backup/ backup.mysql.inc, line 231 - Contains the BackupMySQL class.
Class
- BackupMySql
- Creates and restores backups from a MySQL database source.
Code
protected function getTableData() {
if (empty($this->tableData)) {
$tables = $this->query('SHOW TABLE STATUS')
->fetchAll(PDO::FETCH_ASSOC);
foreach ($tables as $table) {
// Lowercase the keys because between Drupal 7.12 and 7.13/14 the
// default query behavior was changed.
// See: http://drupal.org/node/1171866
$table = array_change_key_case($table);
$this->tableData[$table['name']] = $table;
}
}
return $this->tableData;
}