function _SQLConnect($dbtype, $dbhost, $dbuser, $dbpass, $dbname, &$conn) { parent::_setError(ERRORINFO, -1, -1, __METHOD__ . ' start', false); $return = false; if ($this->_validateSupportedDatabase($dbtype)) { $dsn = "{$dbtype}://{$dbuser}:{$dbpass}@{$dbhost}/{$dbname}"; $conn = ADONewConnection($dsn); if (is_object($conn)) { $return = true; } } return $return; }