protected function renderDsnForMySQL()
    {
        $h = $this->getHost();
        $p = $this->getPort();
        $s = $this->getUnixSocket();
        $c = $this->getCharset();
        $b = $this->getDbName();
        return self::DRIVER_MYSQL . $this->renderDsnParts([
                    'host' => !empty($h) ? $h : NULL,
                    'port' => !empty($p) ? $p : NULL,
                    'unix_socket' => !empty($s) ? $s : NULL,
                    'dbname' => !empty($b) ? $b : NULL,
                    'username' => $this->getUsername(),
                    'password' => $this->getPassword(),
                    'charset' => !empty($c) ? $c : NULL,
                        ], ';');
    }
protected function renderDsnForMySQL()
    {
        $h = $this->getHost();
        $p = $this->getPort();
        $s = $this->getUnixSocket();
        $c = $this->getCharset();
        $b = $this->getDbName();
        return self::DRIVER_MYSQL . $this->renderDsnParts([
                    'host' => !empty($h) ? $h : NULL,
                    'port' => !empty($p) ? $p : NULL,
                    'unix_socket' => !empty($s) ? $s : NULL,
                    'dbname' => !empty($b) ? $b : NULL,
                    'username' => $this->getUsername(),
                    'password' => $this->getPassword(),
                    'charset' => !empty($c) ? $c : NULL,
                        ], ';');
    }
protected function renderDsnForMySQL ( ) { $ h = $ this -> getHost ( ) ; $ p = $ this -> getPort ( ) ; $ s = $ this -> getUnixSocket ( ) ; $ c = $ this -> getCharset ( ) ; $ b = $ this -> getDbName ( ) ; return self :: DRIVER_MYSQL . $ this -> renderDsnParts ( [ 'host' => ! empty ( $ h ) ? $ h : NULL , 'port' => ! empty ( $ p ) ? $ p : NULL , 'unix_socket' => ! empty ( $ s ) ? $ s : NULL , 'dbname' => ! empty ( $ b ) ? $ b : NULL , 'username' => $ this -> getUsername ( ) , 'password' => $ this -> getPassword ( ) , 'charset' => ! empty ( $ c ) ? $ c : NULL , ] , ';' ) ; }
Render a DSN for MySQL
@return string
Render a DSN for MySQL