trait WithURL

Methods

static string
getServerURL()

No description

static int
getPort()

No description

static string
getServerName()

No description

static string
getScheme()

No description

static bool
isHTTPS()

No description

static URL
createLocalURL(string $query = "", int $encodeMode = URL::ENCODE_RFC3986_SLASH_EXCEPTED)

Create a URL object, using the current request server URL for protocol and domain name.

Details

at line 14
static string getServerURL()

No description

Return Value

string

at line 37
static int getPort()

No description

Return Value

int

at line 41
static string getServerName()

No description

Return Value

string

at line 45
static string getScheme()

No description

Return Value

string

at line 57
static bool isHTTPS()

No description

Return Value

bool

at line 95
static URL createLocalURL(string $query = "", int $encodeMode = URL::ENCODE_RFC3986_SLASH_EXCEPTED)

Create a URL object, using the current request server URL for protocol and domain name.

Parameters

string $query

The query part of the URL [facultative]

int $encodeMode

Encoding to use for the query [facultative]

Return Value

URL