db =& ConnectionManager::getDataSource('default'); $c = $this->db->config; return "{$c['driver']}://{$c['login']}:{$c['password']}@{$c['host']}/{$c['database']}"; } //end getDSN() } //end class ?>