HumHub Documentation (unofficial)

Uri
in package

Table of Contents

Methods

appendPath()  : mixed
mergeUrls()  : array<string|int, mixed>
Merges the passed $add argument onto $base.
retrieveHost()  : mixed
retrieveUri()  : string
Retrieve /path?query#fragment part of URL

Methods

appendPath()

public static appendPath(mixed $url, mixed $path) : mixed
Parameters
$url : mixed
$path : mixed

mergeUrls()

Merges the passed $add argument onto $base.

public static mergeUrls(string $baseUri, string $uri) : array<string|int, mixed>

If a relative URL is passed as the 'path' part of the $add url array, the relative URL is mapped using the base 'path' part as its base.

Parameters
$baseUri : string

the base URL

$uri : string

the URL to merge

Return values
array<string|int, mixed>

the merged array

retrieveHost()

public static retrieveHost(mixed $url) : mixed
Parameters
$url : mixed

retrieveUri()

Retrieve /path?query#fragment part of URL

public static retrieveUri(mixed $url) : string
Parameters
$url : mixed
Return values
string

        
On this page

Search results