UrlHelper
in package
UrlHelper Class
Table of Contents
- getUrlProtocol() : string
- Get the site current protocol
- prepUrl() : string
- Prepare the URL to have the right protocol set
- setUrl() : string
- Set a new anchor HTML tag with the provided data
Methods
getUrlProtocol()
Get the site current protocol
public
static getUrlProtocol() : string
Return values
string —prepUrl()
Prepare the URL to have the right protocol set
public
static prepUrl([string $url = '' ]) : string
Parameters
- $url : string = ''
Return values
string —setUrl()
Set a new anchor HTML tag with the provided data
public
static setUrl(string $hyperlink, string $text[, string $title = '' ][, string $attributes = '' ]) : string
Parameters
- $hyperlink : string
- $text : string
- $title : string = ''
- $attributes : string = ''