/** * Helper function for connecting to the database server * * @param PMA_Drizzle $drizzle * @param string $host * @param int $port * @param string $uds * @param string $user * @param string $password * @param string $db * @param int $options * @return PMA_DrizzleCon */ function PMA_DBI_real_connect($drizzle, $host, $port, $uds, $user, $password, $db = null, $options = DRIZZLE_CON_NONE) { if ($uds) { $con = $drizzle->addUds($uds, $user, $password, $db, $options); } else { $con = $drizzle->addTcp($host, $port, $user, $password, $db, $options); } return $con; }
/** * Helper function for connecting to the database server * * @param PMA_Drizzle $drizzle connection handle * @param string $host Drizzle host * @param integer $port Drizzle port * @param string $uds server socket * @param string $user username * @param string $password password * @param string $db database name * @param integer $options connection options * * @return PMA_DrizzleCon */ private function _realConnect($drizzle, $host, $port, $uds, $user, $password, $db = null, $options = 0) { if ($uds) { $con = $drizzle->addUds($uds, $user, $password, $db, $options); } else { $con = $drizzle->addTcp($host, $port, $user, $password, $db, $options); } return $con; }