1 backup.mysql.inc protected BackupMySql::getDatabaseConnection()

Get the db connection for the specified db.

Overrides BackupDatabase::getDatabaseConnection

File

core/includes/backup/backup.mysql.inc, line 397
Contains the BackupMySQL class.

Class

BackupMySql
Creates and restores backups from a MySQL database source.

Code

protected function getDatabaseConnection() {
  if (!$this->connection) {
    $this->connection = parent::getDatabaseConnection();
  }
  return $this->connection;
}