PMA\libraries\dbi\DBIExtension::getHostInfo PHP Method

getHostInfo() public method

Returns a string representing the type of connection used
public getHostInfo ( resource $link ) : string
$link resource mysql link
return string type of connection used
    public function getHostInfo($link);

Usage Example

Exemplo n.º 1
0
 /**
  * Returns a string representing the type of connection used
  *
  * @param object $link mysql link
  *
  * @return string type of connection used
  */
 public function getHostInfo($link = null)
 {
     $link = $this->getLink($link);
     if ($link === false) {
         return false;
     }
     return $this->_extension->getHostInfo($link);
 }