Exemplo n.º 1
0
 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);
     }
 }
Exemplo n.º 2
0
 /**
  * Name of the current used database.
  * @return string
  */
 public function getDatabaseName()
 {
     return $this->dsn->getDatabaseName();
 }