Zend Framework
3.0
|
Helper for returning the current server URL (optionally with request URI) More...
Public Member Functions | |
__invoke ($requestUri=null) | |
View helper entry point: Returns the current host's URL like http://site.com. | |
setHost ($host) | |
Sets host. | |
getHost () | |
Returns host. | |
setPort ($port) | |
Set server port. | |
getPort () | |
Retrieve the server port. | |
setScheme ($scheme) | |
Sets scheme (typically http or https) | |
getScheme () | |
Returns scheme (typically http or https) | |
setUseProxy ($useProxy=false) | |
Set flag indicating whether or not to query proxy servers. | |
Public Member Functions inherited from AbstractHelper | |
setView (Renderer $view) | |
Set the View object. | |
getView () | |
Get the view object. | |
Protected Member Functions | |
detectHost () | |
Detect the host based on headers. | |
detectPort () | |
Detect the port. | |
detectScheme () | |
Detect the scheme. | |
isReversedProxy () | |
setHostFromProxy () | |
Detect if a proxy is in use, and, if so, set the host based on it. | |
setPortFromProxy () | |
Set port based on detected proxy headers. | |
setSchemeFromProxy () | |
Set the current scheme based on detected proxy headers. | |
Protected Attributes | |
$host | |
$port | |
$scheme | |
$useProxy = false | |
Protected Attributes inherited from AbstractHelper | |
$view = null | |
Helper for returning the current server URL (optionally with request URI)
__invoke | ( | $requestUri = null | ) |
View helper entry point: Returns the current host's URL like http://site.com.
string | bool | $requestUri | [optional] if true, the request URI found in $_SERVER will be appended as a path. If a string is given, it will be appended as a path. Default is to not append any path. |
|
protected |
Detect the host based on headers.
|
protected |
Detect the port.
|
protected |
Detect the scheme.
getHost | ( | ) |
Returns host.
getPort | ( | ) |
Retrieve the server port.
getScheme | ( | ) |
Returns scheme (typically http or https)
|
protected |
setHost | ( | $host | ) |
|
protected |
Detect if a proxy is in use, and, if so, set the host based on it.
setPort | ( | $port | ) |
|
protected |
Set port based on detected proxy headers.
setScheme | ( | $scheme | ) |
|
protected |
Set the current scheme based on detected proxy headers.
setUseProxy | ( | $useProxy = false | ) |
Set flag indicating whether or not to query proxy servers.
bool | $useProxy |
|
protected |
|
protected |
|
protected |
|
protected |