/** * Method to create a new database. * * @param JDatabaseDriver $db JDatabase object. * @param JObject $options JObject coming from "initialise" function to pass user * and database name to database driver. * @param boolean $utf True if the database supports the UTF-8 character set. * * @return boolean True on success. * * @since 3.1 */ public function createDb($db, $options, $utf) { // Build the create database query. try { // Run the create database query. $db->createDatabase($options, $utf); } catch (RuntimeException $e) { // If an error occurred return false. return false; } return true; }