Exemplo n.º 1
0
 /**
  * Set the database type
  *
  * @param string $dbtype
  */
 public static function setDBtype($dbtype)
 {
     if (self::hasDBEngine($dbtype) == false) {
         throw new Exception('The selected database is not supported: "' . $dbtype . '".');
     }
     self::$_db_type = $dbtype;
 }