Public Member Functions | Protected Attributes

Zend_View_Helper_ServerUrl Class Reference

Public Member Functions

 __construct ()
 serverUrl ($requestUri=null)
 getHost ()
 setHost ($host)
 getScheme ()
 setScheme ($scheme)

Protected Attributes

 $_scheme
 $_host

Detailed Description

Definition at line 32 of file ServerUrl.php.


Constructor & Destructor Documentation

__construct (  )

Constructor

Returns:
void

Definition at line 53 of file ServerUrl.php.


Member Function Documentation

getHost (  )

Returns host

Returns:
string host

Definition at line 106 of file ServerUrl.php.

getScheme (  )

Returns scheme (typically http or https)

Returns:
string scheme (typically http or https)

Definition at line 128 of file ServerUrl.php.

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

Definition at line 88 of file ServerUrl.php.

setHost ( host )

Sets host

Parameters:
string$hostnew host
Returns:
Zend_View_Helper_ServerUrl fluent interface, returns self

Definition at line 117 of file ServerUrl.php.

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

Definition at line 139 of file ServerUrl.php.


The documentation for this class was generated from the following file: