/** * Returns a string representing the type of connection used * * @param PMA_DrizzleCon $link connection object * * @return string type of connection used */ public function getHostInfo($link) { $str = $link->port() ? $link->host() . ':' . $link->port() . ' via TCP/IP' : 'Localhost via UNIX socket'; return $str; }