function db_installer_object

db_installer_object($driver)

Returns a database installer object.

Parameters

$driver: The name of the driver.

File

includes/install.inc, line 1336
API functions for installing modules and themes.

Code

function db_installer_object($driver) {
  Database::loadDriverFile($driver, array('install.inc'));
  $task_class = 'DatabaseTasks_' . $driver;
  return new $task_class();
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/includes!install.inc/function/db_installer_object/7.x