library/QATools/QATools/PageObject/Url/Builder.php
public function build(array $params = array())
	{
		$final_url = $this->getProtocol() . '://' . $this->getHost() . $this->getPortForBuild() . $this->getPath();
		$final_params = array_merge($this->getParams(), $params);

		list($final_url, $final_params) = $this->unmaskUrl($final_url, $final_params);

		if ( !empty($final_params) ) {
			$final_url .= '?' . http_build_query($final_params);
		}

		if ( $this->getAnchor() != '' ) {
			$final_url .= '#' . $this->getAnchor();
		}

		return $final_url;
	}
public function build(array $params = array())
	{
		$final_url = $this->getProtocol() . '://' . $this->getHost() . $this->getPortForBuild() . $this->getPath();
		$final_params = array_merge($this->getParams(), $params);

		list($final_url, $final_params) = $this->unmaskUrl($final_url, $final_params);

		if ( !empty($final_params) ) {
			$final_url .= '?' . http_build_query($final_params);
		}

		if ( $this->getAnchor() != '' ) {
			$final_url .= '#' . $this->getAnchor();
		}

		return $final_url;
	}
public function build ( array $ params = array ( ) ) { $ final_url = $ this -> getProtocol ( ) . '://' . $ this -> getHost ( ) . $ this -> getPortForBuild ( ) . $ this -> getPath ( ) ; $ final_params = array_merge ( $ this -> getParams ( ) , $ params ) ; list ( $ final_url , $ final_params ) = $ this -> unmaskUrl ( $ final_url , $ final_params ) ; if ( ! empty ( $ final_params ) ) { $ final_url .= '?' . http_build_query ( $ final_params ) ; } if ( $ this -> getAnchor ( ) != '' ) { $ final_url .= '#' . $ this -> getAnchor ( ) ; } return $ final_url ; }
Builds the final url and merges saved params with given via parameter.

@param array $params The additional GET params.

@return string
Builds the final url and merges saved params with given via parameter .