__invoke()
getHost()
getPort()
getScheme()
getView()
setHost()
setPort()
setScheme()
setUseProxy()
setView()
detectHost()
detectPort()
detectScheme()
setHostFromProxy()
setPortFromProxy()
setSchemeFromProxy()
$host
$port
$scheme
$useProxy
$view
Helper for returning the current server URL (optionally with request URI)
__invoke(string | bool $requestUri) : string
stringbool[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.
stringserver urlgetHost() : string
stringhostgetPort() : int | null
intnull
getScheme() : string
stringscheme (typically http or https)getView() : null | \Zend\View\Renderer\RendererInterface
| inherited_from | \Zend\View\Helper\AbstractHelper::getView() |
|---|
setScheme(string $scheme) : \Zend\View\Helper\ServerUrl
stringnew scheme (typically http or https)
\Zend\View\Helper\ServerUrlfluent interface, returns selfsetUseProxy(bool $useProxy) : \Zend\View\Helper\ServerUrl
setView(\Zend\View\Renderer\RendererInterface $view) : \Zend\View\Helper\AbstractHelper
| inherited_from | \Zend\View\Helper\AbstractHelper::setView() |
|---|
detectHost() : void
detectPort() : null
nulldetectScheme() : null
nullsetHostFromProxy() : bool
boolsetPortFromProxy() : bool
boolsetSchemeFromProxy() : bool
bool$host : string
$port : int
$scheme : string
$useProxy : bool
$view : \Zend\View\Renderer\RendererInterface
| inherited_from | \Zend\View\Helper\AbstractHelper::$$view |
|---|