示例#1
0
 /**
  * Sets up the DooDbUpdater
  * @param array $dbConfig Database connection settings (db_host, db_name, db_user, db_pwd, db_driver, db_connection_cache)
  */
 public function __construct($dbConfig)
 {
     // Load the correct Db Manager adapter based on the db_engine/driver being used
     $this->db = $this->getDbEngineManager($dbConfig[4]);
     // element 4 is the db_driver
     // Configure the database connection settings
     $this->db->setDb($dbConfig);
     $this->db->connect();
 }