1 backup.mysql.inc | public BackupMySql::databaseInfo() |
Get the version info for the given database.
Overrides BackupDatabase::databaseInfo
File
- core/
includes/ backup/ backup.mysql.inc, line 44 - Contains the BackupMySQL class.
Class
- BackupMySql
- Creates and restores backups from a MySQL database source.
Code
public function databaseInfo() {
$database = $this->getDatabaseConnection();
return array(
'type' => 'mysql',
'version' => $database ? $database->version() : t('Unknown'),
);
}