public static function getAdapter(\ADOConnection $adoConnection)
    {
        $adoConnectionDriver = strtolower(get_class($adoConnection));
        switch ($adoConnectionDriver) {
            //case 'adodb_mysqlt':
            case 'adodb_mysqli':
                $connectionId = self::getADOConnectionId($adoConnection);
                $adapter = Mysqli::getAdapter($connectionId);
                break;
            case 'adodb_pdo':
            case 'adodb_pdo_mysql':
                $connectionId = self::getADOConnectionId($adoConnection);
                $adapter = PDO::getAdapter($connectionId);
                break;
            default:
                throw new Exception\UnsupportedDriverException(__METHOD__ . ". Driver '$adoConnectionDriver' not supported");
        }
        return $adapter;
    }
public static function getAdapter(\ADOConnection $adoConnection)
    {
        $adoConnectionDriver = strtolower(get_class($adoConnection));
        switch ($adoConnectionDriver) {
            //case 'adodb_mysqlt':
            case 'adodb_mysqli':
                $connectionId = self::getADOConnectionId($adoConnection);
                $adapter = Mysqli::getAdapter($connectionId);
                break;
            case 'adodb_pdo':
            case 'adodb_pdo_mysql':
                $connectionId = self::getADOConnectionId($adoConnection);
                $adapter = PDO::getAdapter($connectionId);
                break;
            default:
                throw new Exception\UnsupportedDriverException(__METHOD__ . ". Driver '$adoConnectionDriver' not supported");
        }
        return $adapter;
    }
public static function getAdapter ( \ ADOConnection $ adoConnection ) { $ adoConnectionDriver = strtolower ( get_class ( $ adoConnection ) ) ; switch ( $ adoConnectionDriver ) { //case 'adodb_mysqlt': case 'adodb_mysqli' : $ connectionId = self :: getADOConnectionId ( $ adoConnection ) ; $ adapter = Mysqli :: getAdapter ( $ connectionId ) ; break ; case 'adodb_pdo' : case 'adodb_pdo_mysql' : $ connectionId = self :: getADOConnectionId ( $ adoConnection ) ; $ adapter = PDO :: getAdapter ( $ connectionId ) ; break ; default : throw new Exception \ UnsupportedDriverException ( __METHOD__ . ". Driver '$adoConnectionDriver' not supported" ) ; } return $ adapter ; }
Return a Zend\Db\Adapter\Adapter connection from an existing ADODb connection

@throws Exception\UnsupportedDriverException
@throws Exception\AdoNotConnectedException when connection is not initialized

@param \ADOConnection $adoConnection
@return Adapter
Return a Zend \ Db \ Adapter \ Adapter connection from an existing ADODb connection