Zend_Controller_Request_HttpZend_Controller_Request_Http
HTTP request object for use with Zend_Controller family.
Located in /Controller/Request/Http.php (line 37)
Zend_Controller_Request_Abstract | --Zend_Controller_Request_Http
| Class | Description |
|---|---|
Zend_Controller_Request_Apache404
|
Zend_Controller_Request_Apache404 |
Zend_Controller_Request_HttpTestCase
|
Zend_Controller_Request_HttpTestCase |
array
$_aliases
= array() (line 97)
Alias keys for request parameters
string
$_basePath
= null (line 73)
Base path of request
string
$_baseUrl
= null (line 67)
Base URL of request
array
$_params
= array() (line 85)
Instance parameters
array
$_paramSources
= array('_GET', '_POST') (line 55)
Allowed parameter sources
string
$_pathInfo
= '' (line 79)
PATH_INFO
string|false
$_rawBody
(line 91)
Raw request body
string;
$_requestUri
(line 61)
REQUEST_URI
Inherited from Zend_Controller_Request_Abstract
Zend_Controller_Request_Abstract::$_action
Zend_Controller_Request_Abstract::$_actionKey
Zend_Controller_Request_Abstract::$_controller
Zend_Controller_Request_Abstract::$_controllerKey
Zend_Controller_Request_Abstract::$_dispatched
Zend_Controller_Request_Abstract::$_module
Zend_Controller_Request_Abstract::$_moduleKey
Constructor __construct (line 109)
Constructor
If a $uri is passed, the object will attempt to populate itself using that information.
get (line 170)
Alias to __get
getAlias (line 799)
Retrieve an alias
Retrieve the actual key represented by the alias $name.
getAliases (line 813)
Retrieve the list of all aliases
getBasePath (line 597)
Everything in REQUEST_URI before PATH_INFO not including the filename <img src="<?=$basePath?>/images/zend.png"/>
getBaseUrl (line 548)
Everything in REQUEST_URI before PATH_INFO <form action="<?=$baseUrl?>/news/submit" method="POST"/>
getClientIp (line 1041)
Get the client's IP addres
getCookie (line 336)
Retrieve a member of the $_COOKIE superglobal
If no $key is passed, returns the entire $_COOKIE array.
getEnv (line 372)
Retrieve a member of the $_ENV superglobal
If no $key is passed, returns the entire $_ENV array.
getHeader (line 973)
Return the value of the given HTTP header. Pass the header name as the plain, HTTP-specified header name. Ex.: Ask for 'Accept' to get the Accept header, 'Accept-Encoding' to get the Accept-Encoding header.
getHttpHost (line 1017)
Get the HTTP host.
"Host" ":" host [ ":" port ] ; Section 3.2.2 Note the HTTP Host header is not the same as the URI host. It includes the port while the URI host doesn't.
getMethod (line 823)
Return the method by which the request was made
getParam (line 714)
Retrieve a parameter
Retrieves a parameter from the instance. Priority is in the order of userland parameters (see setParam()), $_GET, $_POST. If a parameter matching the $key is not found, null is returned.
If the $key is an alias, the actual key aliased will be used.
getParams (line 739)
Retrieve an array of parameters
Retrieves a merged array of parameters, with precedence of userland params (see setParam()), $_GET, $_POST (i.e., values in the userland params will take precedence over all others).
getParamSources (line 679)
Get list of allowed parameter sources
getPathInfo (line 651)
Returns everything between the BaseUrl and QueryString.
This value is calculated instead of reading PATH_INFO directly from $_SERVER due to cross-platform differences.
getPost (line 317)
Retrieve a member of the $_POST superglobal
If no $key is passed, returns the entire $_POST array.
getQuery (line 275)
Retrieve a member of the $_GET superglobal
If no $key is passed, returns the entire $_GET array.
getRawBody (line 950)
Return the raw body of the request, if present
getRequestUri (line 440)
Returns the REQUEST_URI taking into account platform differences between Apache and IIS
getScheme (line 1003)
Get the request URI scheme
getServer (line 354)
Retrieve a member of the $_SERVER superglobal
If no $key is passed, returns the entire $_SERVER array.
has (line 237)
Alias to __isset()
isDelete (line 875)
Was the request made by DELETE?
isFlashRequest (line 929)
Is this a Flash request?
isGet (line 847)
Was the request made by GET?
isHead (line 889)
Was the request made by HEAD?
isOptions (line 903)
Was the request made by OPTIONS?
isPost (line 833)
Was the request made by POST?
isPut (line 861)
Was the request made by PUT?
isSecure (line 940)
Is https secure request
isXmlHttpRequest (line 919)
Is the request a Javascript XMLHttpRequest?
Should work with Prototype/Script.aculo.us, possibly others.
set (line 200)
Alias to __set()
setAlias (line 785)
Set a key alias
Set an alias used for key lookups. $name specifies the alias, $target specifies the actual key to use.
setBasePath (line 563)
Set the base path for the URL
setBaseUrl (line 469)
Set the base URL of the request; i.e., the segment leading to the script name
E.g.:
setParam (line 694)
Set a userland parameter
Uses $key to set a userland parameter. If $key is an alias, the actual key will be retrieved and used to set the parameter.
setParams (line 767)
Set parameters
Set one or more parameters. Parameters are set as userland parameters, using the keys specified in the array.
setParamSources (line 668)
Set allowed parameter sources
Can be empty array, or contain one or more of '_GET' or '_POST'.
setPathInfo (line 612)
Set the PATH_INFO string
setPost (line 291)
Set POST values
setQuery (line 249)
Set GET values
setRequestUri (line 390)
Set the REQUEST_URI on which the instance operates
If no request URI is passed, uses the value in $_SERVER['REQUEST_URI'], $_SERVER['HTTP_X_REWRITE_URL'], or $_SERVER['ORIG_PATH_INFO'] + $_SERVER['QUERY_STRING'].
__get (line 140)
Access values contained in the superglobals as public members Order of precedence: 1. GET, 2. POST, 3. COOKIE, 4. SERVER, 5. ENV
__isset (line 211)
Check to see if a property is set
__set (line 187)
Set values
In order to follow __get(), which operates on a number of superglobals, setting values through overloading is not allowed and will raise an exception. Use setParam() instead.
Inherited From Zend_Controller_Request_Abstract
Zend_Controller_Request_Abstract::clearParams()
Zend_Controller_Request_Abstract::getActionKey()
Zend_Controller_Request_Abstract::getActionName()
Zend_Controller_Request_Abstract::getControllerKey()
Zend_Controller_Request_Abstract::getControllerName()
Zend_Controller_Request_Abstract::getModuleKey()
Zend_Controller_Request_Abstract::getModuleName()
Zend_Controller_Request_Abstract::getParam()
Zend_Controller_Request_Abstract::getParams()
Zend_Controller_Request_Abstract::getUserParam()
Zend_Controller_Request_Abstract::getUserParams()
Zend_Controller_Request_Abstract::isDispatched()
Zend_Controller_Request_Abstract::setActionKey()
Zend_Controller_Request_Abstract::setActionName()
Zend_Controller_Request_Abstract::setControllerKey()
Zend_Controller_Request_Abstract::setControllerName()
Zend_Controller_Request_Abstract::setDispatched()
Zend_Controller_Request_Abstract::setModuleKey()
Zend_Controller_Request_Abstract::setModuleName()
Zend_Controller_Request_Abstract::setParam()
Zend_Controller_Request_Abstract::setParams()
Documentation generated on Mon, 21 Jun 2010 15:27:25 -0400 by phpDocumentor 1.4.3