API Documentation

View/Helper/ServerUrl.php

Classes 
category
Zend
copyright
Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
license
http://framework.zend.com/license/new-bsd New BSD License
package
Zend_View
subpackage
Helper
version
$Id: ServerUrl.php 20096 2010-01-06 02:05:09Z bkarwin $
Classes
Zend_View_Helper_ServerUrl

Description

Zend Framework

LICENSE

This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to license@zend.com so we can send you a copy immediately.

Zend_View_Helper_ServerUrl

category
Zend
copyright
Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
license
http://framework.zend.com/license/new-bsd New BSD License
package
Zend_View
subpackage
Helper
Properties
$_scheme
$_host
Methods
__construct
serverUrl
getHost
setHost
getScheme
setScheme

Description

Helper for returning the current server URL (optionally with request URI)

Properties

$_host

string $_host = ''

Host (including port)

Details

$_host
string
visibility
protected
default
final
false
static
false

$_scheme

string $_scheme = ''

Scheme

Details

$_scheme
string
visibility
protected
default
final
false
static
false

Methods

__construct

__construct( ) : void

Constructor

Details
visibility
public
final
false
static
false

getHost

getHost( ) : string

Returns host

Output
string
host
Details
visibility
public
final
false
static
false

getScheme

getScheme( ) : string

Returns scheme (typically http or https)

Output
string
scheme (typically http or https)
Details
visibility
public
final
false
static
false

serverUrl

serverUrl( string|boolean $requestUri = null ) : string

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

Arguments
$requestUri
stringboolean
[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.
Output
string
server url
Details
visibility
public
final
false
static
false

setHost

setHost( string $host ) : Zend_View_Helper_ServerUrl

Sets host

Arguments
$host
string
new host
Output
Zend_View_Helper_ServerUrl
fluent interface, returns self
Details
visibility
public
final
false
static
false

setScheme

setScheme( string $scheme ) : Zend_View_Helper_ServerUrl

Sets scheme (typically http or https)

Arguments
$scheme
string
new scheme (typically http or https)
Output
Zend_View_Helper_ServerUrl
fluent interface, returns self
Details
visibility
public
final
false
static
false
Documentation was generated by DocBlox.