XBRL-Global.php
public static function createPathFromUrl( $url, $cacheLocation )
	{
		$parts = parse_url( $url );

		$path = str_replace( '\\', '/', rtrim( $cacheLocation, '\\/' ) );

		if ( isset( $parts['scheme'] ) ) $path .= "/{$parts['scheme']}";
		if ( isset( $parts['host'] ) ) $path .= "/{$parts['host']}";
		if ( isset( $parts['path'] ) ) $path .= "/{$parts['path']}";

		return $path;
	}
public static function createPathFromUrl( $url, $cacheLocation )
	{
		$parts = parse_url( $url );

		$path = str_replace( '\\', '/', rtrim( $cacheLocation, '\\/' ) );

		if ( isset( $parts['scheme'] ) ) $path .= "/{$parts['scheme']}";
		if ( isset( $parts['host'] ) ) $path .= "/{$parts['host']}";
		if ( isset( $parts['path'] ) ) $path .= "/{$parts['path']}";

		return $path;
	}
public static function createPathFromUrl ( $ url , $ cacheLocation ) { $ parts = parse_url ( $ url ) ; $ path = str_replace ( '\\' , '/' , rtrim ( $ cacheLocation , '\\/' ) ) ; if ( isset ( $ parts [ 'scheme' ] ) ) $ path .= "/{$parts['scheme']}" ; if ( isset ( $ parts [ 'host' ] ) ) $ path .= "/{$parts['host']}" ; if ( isset ( $ parts [ 'path' ] ) ) $ path .= "/{$parts['path']}" ; return $ path ; }
Create a path to the parallel folder for a url
@param string $url
@param string $cacheLocation
@return string
Create a path to the parallel folder for a url