Zend Framework  1.12
Public Member Functions | Protected Attributes | List of all members
Zend_View_Helper_ServerUrl Class Reference

Public Member Functions

 __construct ()
 Constructor.
 
 serverUrl ($requestUri=null)
 View helper entry point: Returns the current host's URL like http://site.com.
 
 getHost ()
 Returns host.
 
 setHost ($host)
 Sets host.
 
 getScheme ()
 Returns scheme (typically http or https)
 
 setScheme ($scheme)
 Sets scheme (typically http or https)
 

Protected Attributes

 $_scheme
 
 $_host
 

Constructor & Destructor Documentation

__construct ( )

Constructor.

Returns
void

Member Function Documentation

getHost ( )

Returns host.

Returns
string host
getScheme ( )

Returns scheme (typically http or https)

Returns
string scheme (typically http or https)
serverUrl (   $requestUri = null)

View helper entry point: Returns the current host's URL like http://site.com.

Parameters
string | boolean$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.
Returns
string server url
setHost (   $host)

Sets host.

Parameters
string$hostnew host
Returns
Zend_View_Helper_ServerUrl fluent interface, returns self
setScheme (   $scheme)

Sets scheme (typically http or https)

Parameters
string$schemenew scheme (typically http or https)
Returns
Zend_View_Helper_ServerUrl fluent interface, returns self

Member Data Documentation

$_host
protected
$_scheme
protected