TestConnection(); } return $result; } /** * Create array config. * * @param string $type - Adapter type. * @param string $user - Adapter user. * @param string $password - Adapter password. * @param string $name - Adapter name. * @param string $hostname - Adapter hostname. * @param string $base_prefix - Adapter base_prefix. * @param bool $is_ssl - Set if connection is SSL encrypted. * @param bool $is_cc - Set if connection has client certificates. * @param string $ssl_ca - Certificate Authority. * @param string $ssl_cert - Client Certificate. * @param string $ssl_key - Client Key. * @return array config */ public static function GetConfigArray( $type, $user, $password, $name, $hostname, $base_prefix, $is_ssl, $is_cc, $ssl_ca, $ssl_cert, $ssl_key ) { return array( 'type' => $type, 'user' => $user, 'password' => $password, 'name' => $name, 'hostname' => $hostname, 'base_prefix' => $base_prefix, 'is_ssl' => $is_ssl, 'is_cc' => $is_cc, 'ssl_ca' => $ssl_ca, 'ssl_cert' => $ssl_cert, 'ssl_key' => $ssl_key, ); } }