获取链接唯一hash
string Module_Database_Driver::_get_connection_hash( string $hostname , int $port , string $username )
参数列表
参数 类型 描述 默认值 $hostname
string
$hostname $port
int
$port $username
string
$username
string
protected function _get_connection_hash($hostname, $port, $username)
{
$hash = sha1(get_class($this) . '_' . $hostname . '_' . $port . '_' . $username);
Database_Driver::$_hash_to_hostname[$hash] = array
(
'hostname' => $hostname,
'port' => $port,
'username' => $username
);
return $hash;
}