original_string: function factory($type)
  	{
  		include_once(ADODB_DIR."/drivers/adodb-$type.inc.php");
  		$obj = NewADOConnection($type);
  		if (!is_object($obj)) $obj = new PEAR_Error('Unknown Database Driver: '.$dsninfo['phptype'],-1);
  		return $obj;
  	}
code: function factory($type)
  	{
  		include_once(ADODB_DIR."/drivers/adodb-$type.inc.php");
  		$obj = NewADOConnection($type);
  		if (!is_object($obj)) $obj = new PEAR_Error('Unknown Database Driver: '.$dsninfo['phptype'],-1);
  		return $obj;
  	}
code_tokens: function factory ( $ type ) { include_once ( ADODB_DIR . "/drivers/adodb-$type.inc.php" ) ; $ obj = NewADOConnection ( $ type ) ; if ( ! is_object ( $ obj ) ) $ obj = new PEAR_Error ( 'Unknown Database Driver: ' . $ dsninfo [ 'phptype' ] , - 1 ) ; return $ obj ; }
docstring: Create a new DB object for the specified database type
  
  @param $type string database type, for example "mysql"
  
  @return object a newly created DB object, or a DB error code on
  error
docstring_tokens: Create a new DB object for the specified database type