\URL

URL

Common methods for handling URLs.

Summary

Methods
Properties
Constants
__construct()
getUrls()
reduceUrl()
getBaseUrl()
getCurrentProtocole()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

__construct()

__construct() : 

URL

Returns

getUrls()

getUrls(  field) : mixed||string|int

grab URLs from provided db field value

Function does: unserialize(base64_decode($field))

Parameters

field

Returns

mixed||string|int —

reduceUrl()

reduceUrl(  text,   limit = FALSE) : 

reduce the size of long URL to keep web browser display tidy

Parameters

text
limit

Default is FALSE

Returns

getBaseUrl()

getBaseUrl() : 

Return the base url of the current website seen by the visitor

Returns

getCurrentProtocole()

getCurrentProtocole() : 

Return the base url of the current website seen by the visitor

Returns