public static function phpwsDSNLoader($dsn, $table_prefix = null) { $dsn_array = self::parseDSN($dsn); extract($dsn_array); self::setDefaultDSN(self::newDSN($dbtype, $dbuser, $dbpass, $dbname, $dbhost, $dbport)); if ($table_prefix) { self::$default_dsn->setTablePrefix($table_prefix); } }
/** * Name of the current used database. * @return string */ public function getDatabaseName() { return $this->dsn->getDatabaseName(); }