public function backup_migrate_source_db_mysql::_db_info in Backup and Migrate 7.3
Same name and namespace in other branches
- 8.3 includes/sources.db.mysql.inc \backup_migrate_source_db_mysql::_db_info()
- 6.3 includes/sources.db.mysql.inc \backup_migrate_source_db_mysql::_db_info()
Get the version info for the given DB.
Overrides backup_migrate_source_db::_db_info
1 call to backup_migrate_source_db_mysql::_db_info()
- backup_migrate_source_db_mysql::_get_sql_file_header in includes/
sources.db.mysql.inc - The header for the top of the sql dump file. These commands set the connection character encoding to help prevent encoding conversion issues.
File
- includes/
sources.db.mysql.inc, line 583 - Functions to handle the direct to database source.
Class
- backup_migrate_source_db_mysql
- A source type for backing up from database server.
Code
public function _db_info() {
$db = $this
->_get_db_connection();
return array(
'type' => 'mysql',
'version' => $db ? $db
->version() : t('Unknown'),
);
}