public function buildQuery(array $params, $includeCurrent = true)
    {
        if ($includeCurrent == true) {
            $params = array_replace_recursive($this->getQuery(), $params);
        }

        return $this->serialize($params);
    }
public function buildQuery(array $params, $includeCurrent = true)
    {
        if ($includeCurrent == true) {
            $params = array_replace_recursive($this->getQuery(), $params);
        }

        return $this->serialize($params);
    }
public function buildQuery ( array $ params , $ includeCurrent = true ) { if ( $ includeCurrent == true ) { $ params = array_replace_recursive ( $ this -> getQuery ( ) , $ params ) ; } return $ this -> serialize ( $ params ) ; }
Builds query string

@param array $params
@param boolean $includeCurrent Whether to include current data from query string
@return array
Builds query string