private function _buildQueryUrl($url, $query)
    {
        $url .= (strstr($url, '?') === false) ? '?' : '&';
        $url .= $query;
        return $url;
    }
private function _buildQueryUrl($url, $query)
    {
        $url .= (strstr($url, '?') === false) ? '?' : '&';
        $url .= $query;
        return $url;
    }
private function _buildQueryUrl ( $ url , $ query ) { $ url .= ( strstr ( $ url , '?' ) === false ) ? '?' : '&' ; $ url .= $ query ; return $ url ; }
This method is used to append query parameters to an url. Since the url
might already contain parameter it has to be detected and to build a proper
URL

@param string $url   base url to add the query params to
@param string $query params in query form with & separated

@return url with query params
This method is used to append query parameters to an url . Since the url might already contain parameter it has to be detected and to build a proper URL