UrlUtility
in package
implements
UrlUtilityInterface
Table of Contents
Interfaces
Methods
- convertUrlToLink() : string
- getFromUserName() : array<string|int, mixed>
- isAbsoluteUrl() : bool
- check if the current url is a absolute url or not.
- makeApiFullUrl() : string
- makeApiMobileResourceUrl() : string
- makeApiMobileUrl() : string
- makeApiResourceFullUrl() : string
- makeApiResourceUrl() : string
- makeApiUrl() : string
Methods
convertUrlToLink()
public
convertUrlToLink(string $url[, bool $isMobile = false ]) : string
Parameters
- $url : string
- $isMobile : bool = false
Return values
stringgetFromUserName()
public
getFromUserName(string $userName) : array<string|int, mixed>
Parameters
- $userName : string
Return values
array<string|int, mixed>isAbsoluteUrl()
check if the current url is a absolute url or not.
public
isAbsoluteUrl(string $url) : bool
Parameters
- $url : string
Return values
boolmakeApiFullUrl()
public
makeApiFullUrl(string $uri) : string
Parameters
- $uri : string
Return values
stringmakeApiMobileResourceUrl()
public
makeApiMobileResourceUrl(string $resourceName, int $resourceId) : string
Parameters
- $resourceName : string
- $resourceId : int
Return values
stringmakeApiMobileUrl()
public
makeApiMobileUrl(string $route) : string
Parameters
- $route : string
Return values
stringmakeApiResourceFullUrl()
public
makeApiResourceFullUrl(string $resourceName, int $resourceId) : string
Parameters
- $resourceName : string
- $resourceId : int
Return values
stringmakeApiResourceUrl()
public
makeApiResourceUrl(string $resourceName, int $resourceId) : string
Parameters
- $resourceName : string
- $resourceId : int
Return values
stringmakeApiUrl()
public
makeApiUrl(string $route) : string
Parameters
- $route : string