english/libraries/joomla/application/router.php
/**
	 * Create a uri based on a full or partial url string
	 *
	 * @param   string   $url  The URI
	 *
	 * @return  JURI           A JURI object
	 * @since   11.1
	 */
Create a uri based on a full or partial url string
@param   string   $url  The URI

@return  JURI           A JURI object
@since   11.1
Create a uri based on a full or partial url string @param string $url The URI @return JURI A JURI object @since 11 . 1
protected function _createURI($url)
	{
		if (substr($url, 0, 1) == '&') {
			$vars = array();
			if (strpos($url, '&amp;') !== false) {
				$url = str_replace('&amp;','&',$url);
			}
			parse_str($url, $vars);
			$vars = array_merge($this->getVars(), $vars);
			foreach($vars as $key => $var) {
				if ($var == "") {
					unset($vars[$key]);
				}
			}
			$url = 'index.php?'.JURI::buildQuery($vars);
		}
		return new JURI($url);
	}
protected function _createURI ( $ url ) { if ( substr ( $ url , 0 , 1 ) == '&' ) { $ vars = array ( ) ; if ( strpos ( $ url , '&amp;' ) !== false ) { $ url = str_replace ( '&amp;' , '&' , $ url ) ; } parse_str ( $ url , $ vars ) ; $ vars = array_merge ( $ this -> getVars ( ) , $ vars ) ; foreach ( $ vars as $ key => $ var ) { if ( $ var == " " ) { unset ( $ vars [ $ key ] ) ; } } $ url = 'index.php?' . JURI :: buildQuery ( $ vars ) ; } return new JURI ( $ url ) ; }
Create a uri based on a full or partial url string
 @param   string   $url  The URI
Create a uri based on a full or partial url string @param string $url The URI
// Create full URL if we are only appending variables to it // Decompose link into url component parts