public function getHost()
{
return isset($this->_params['host']) ? $this->_params['host'] : null;
}
public function getDsn() { $driver = $this->connection->getDriver()->getName(); $user = $this->connection->getUsername(); $pass = $this->connection->getPassword(); $host = $this->connection->getHost(); $db = $this->connection->getDatabase(); return "{$driver}://{$user}:{$pass}@{$host}/{$db}"; }