Zend_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_HttpTestCase |
Alias keys for request parameters
Base path of request
Base URL of request
Instance parameters
Allowed parameter sources
PATH_INFO
Raw request body
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
If a $uri is passed, the object will attempt to populate itself using that information.
Alias to __get
Retrieve an alias
Retrieve the actual key represented by the alias $name.
Retrieve the list of all aliases
Everything in REQUEST_URI before PATH_INFO not including the filename <img src="<?=$basePath?>/images/zend.png"/>
Everything in REQUEST_URI before PATH_INFO <form action="<?=$baseUrl?>/news/submit" method="POST"/>
Get the client's IP addres
Retrieve a member of the $_COOKIE superglobal
If no $key is passed, returns the entire $_COOKIE array.
Retrieve a member of the $_ENV superglobal
If no $key is passed, returns the entire $_ENV array.
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.
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.
Return the method by which the request was made
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.
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).
Get list of allowed parameter sources
Returns everything between the BaseUrl and QueryString.
This value is calculated instead of reading PATH_INFO directly from $_SERVER due to cross-platform differences.
Retrieve a member of the $_POST superglobal
If no $key is passed, returns the entire $_POST array.
Retrieve a member of the $_GET superglobal
If no $key is passed, returns the entire $_GET array.
Return the raw body of the request, if present
Returns the REQUEST_URI taking into account platform differences between Apache and IIS
Get the request URI scheme
Retrieve a member of the $_SERVER superglobal
If no $key is passed, returns the entire $_SERVER array.
Alias to __isset()
Was the request made by DELETE?
Is this a Flash request?
Was the request made by GET?
Was the request made by HEAD?
Was the request made by OPTIONS?
Was the request made by POST?
Was the request made by PUT?
Is https secure request
Is the request a Javascript XMLHttpRequest?
Should work with Prototype/Script.aculo.us, possibly others.
Alias to __set()
Set a key alias
Set an alias used for key lookups. $name specifies the alias, $target specifies the actual key to use.
Set the base path for the URL
Set the base URL of the request; i.e., the segment leading to the script name
E.g.:
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.
Set parameters
Set one or more parameters. Parameters are set as userland parameters, using the keys specified in the array.
Set allowed parameter sources
Can be empty array, or contain one or more of '_GET' or '_POST'.
Set the PATH_INFO string
Set POST values
Set GET values
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'].
Access values contained in the superglobals as public members Order of precedence: 1. GET, 2. POST, 3. COOKIE, 4. SERVER, 5. ENV
Check to see if a property is set
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