void doRedirect(
string
$url)
|
|
Redirects to a given URL via Location: header and exits the script
A separate method is mostly needed for creating mocks of this class during testing.
Parameters:
string resolveRelativeURL(
string
$url)
|
|
Resolves relative URL using current page's URL as base
The method follows procedure described in section 4 of RFC 1808 and passes the examples provided in section 5 of said RFC. Values from $_SERVER array are used for calculation of "current URL"
Parameters: