public function addParams(array $addParams)
    {
        $parts = $this->split($this->url);

        parse_str($parts['query'], $params);
        $params = array_merge($params, $addParams);
        $parts['query'] = http_build_query($params);

        return $this->join($parts);
    }
public function addParams(array $addParams)
    {
        $parts = $this->split($this->url);

        parse_str($parts['query'], $params);
        $params = array_merge($params, $addParams);
        $parts['query'] = http_build_query($params);

        return $this->join($parts);
    }
public function addParams ( array $ addParams ) { $ parts = $ this -> split ( $ this -> url ) ; parse_str ( $ parts [ 'query' ] , $ params ) ; $ params = array_merge ( $ params , $ addParams ) ; $ parts [ 'query' ] = http_build_query ( $ params ) ; return $ this -> join ( $ parts ) ; }
Adds parameters to an url.
@param array $addParams [name => value] parameters to add
@return string result url
Adds parameters to an url .