Zend Framework
3.0
|
Public Member Functions | |
setMethod ($method) | |
Set the method for this request. | |
getMethod () | |
Return the method for this request. | |
setUri ($uri) | |
Set the URI/URL for this request, this can be a string or an instance of Zend. | |
getUri () | |
Return the URI for this request object. | |
getUriString () | |
Return the URI for this request object as a string. | |
setQuery (ParametersInterface $query) | |
Provide an alternate Parameter Container implementation for query parameters in this object, (this is NOT the primary API for value setting, for that see getQuery()) | |
getQuery ($name=null, $default=null) | |
Return the parameter container responsible for query parameters or a single query parameter. | |
setPost (ParametersInterface $post) | |
Provide an alternate Parameter Container implementation for post parameters in this object, (this is NOT the primary API for value setting, for that see getPost()) | |
getPost ($name=null, $default=null) | |
Return the parameter container responsible for post parameters or a single post parameter. | |
getCookie () | |
Return the Cookie header, this is the same as calling $request->getHeaders()->get('Cookie');. | |
setFiles (ParametersInterface $files) | |
Provide an alternate Parameter Container implementation for file parameters in this object, (this is NOT the primary API for value setting, for that see getFiles()) | |
getFiles ($name=null, $default=null) | |
Return the parameter container responsible for file parameters or a single file. | |
getHeaders ($name=null, $default=false) | |
Return the header container responsible for headers or all headers of a certain name/type. | |
getHeader ($name, $default=false) | |
Get all headers of a certain name/type. | |
isOptions () | |
Is this an OPTIONS method request? | |
isPropFind () | |
Is this a PROPFIND method request? | |
isGet () | |
Is this a GET method request? | |
isHead () | |
Is this a HEAD method request? | |
isPost () | |
Is this a POST method request? | |
isPut () | |
Is this a PUT method request? | |
isDelete () | |
Is this a DELETE method request? | |
isTrace () | |
Is this a TRACE method request? | |
isConnect () | |
Is this a CONNECT method request? | |
isPatch () | |
Is this a PATCH method request? | |
isXmlHttpRequest () | |
Is the request a Javascript XMLHttpRequest? | |
isFlashRequest () | |
Is this a Flash request? | |
renderRequestLine () | |
Return the formatted request line (first line) for this http request. | |
toString () | |
getAllowCustomMethods () | |
setAllowCustomMethods ($strictMethods) | |
Static Public Member Functions | |
static | fromString ($string, $allowCustomMethods=true) |
A factory that produces a Request object from a well-formed Http Request string. | |
Public Attributes | |
const | METHOD_OPTIONS = 'OPTIONS' |
#@+ string METHOD constant names | |
const | METHOD_GET = 'GET' |
const | METHOD_HEAD = 'HEAD' |
const | METHOD_POST = 'POST' |
const | METHOD_PUT = 'PUT' |
const | METHOD_DELETE = 'DELETE' |
const | METHOD_TRACE = 'TRACE' |
const | METHOD_CONNECT = 'CONNECT' |
const | METHOD_PATCH = 'PATCH' |
const | METHOD_PROPFIND = 'PROPFIND' |
Protected Attributes | |
$method = self::METHOD_GET | |
$allowCustomMethods = true | |
$uri = null | |
$queryParams = null | |
$postParams = null | |
$fileParams = null | |
|
static |
getAllowCustomMethods | ( | ) |
getCookie | ( | ) |
Return the Cookie header, this is the same as calling $request->getHeaders()->get('Cookie');.
$request->getHeaders()->get('Cookie');
getFiles | ( | $name = null , |
|
$default = null |
|||
) |
Return the parameter container responsible for file parameters or a single file.
string | null | $name | Parameter name to retrieve, or null to get the whole container. |
mixed | null | $default | Default value to use when the parameter is missing. |
getHeader | ( | $name, | |
$default = false |
|||
) |
Get all headers of a certain name/type.
string | null | $name | Header name to retrieve, or null to get the whole container. |
mixed | null | $default | Default value to use when the requested header is missing. |
getHeaders | ( | $name = null , |
|
$default = false |
|||
) |
Return the header container responsible for headers or all headers of a certain name/type.
string | null | $name | Header name to retrieve, or null to get the whole container. |
mixed | null | $default | Default value to use when the requested header is missing. |
getMethod | ( | ) |
Return the method for this request.
getPost | ( | $name = null , |
|
$default = null |
|||
) |
Return the parameter container responsible for post parameters or a single post parameter.
string | null | $name | Parameter name to retrieve, or null to get the whole container. |
mixed | null | $default | Default value to use when the parameter is missing. |
getQuery | ( | $name = null , |
|
$default = null |
|||
) |
Return the parameter container responsible for query parameters or a single query parameter.
string | null | $name | Parameter name to retrieve, or null to get the whole container. |
mixed | null | $default | Default value to use when the parameter is missing. |
getUri | ( | ) |
Return the URI for this request object.
getUriString | ( | ) |
Return the URI for this request object as a string.
isConnect | ( | ) |
Is this a CONNECT method request?
isDelete | ( | ) |
Is this a DELETE method request?
isFlashRequest | ( | ) |
Is this a Flash request?
isGet | ( | ) |
Is this a GET method request?
isHead | ( | ) |
Is this a HEAD method request?
isOptions | ( | ) |
Is this an OPTIONS method request?
isPatch | ( | ) |
Is this a PATCH method request?
isPost | ( | ) |
Is this a POST method request?
isPropFind | ( | ) |
Is this a PROPFIND method request?
isPut | ( | ) |
Is this a PUT method request?
isTrace | ( | ) |
Is this a TRACE method request?
isXmlHttpRequest | ( | ) |
Is the request a Javascript XMLHttpRequest?
Should work with Prototype/Script.aculo.us, possibly others.
renderRequestLine | ( | ) |
Return the formatted request line (first line) for this http request.
setAllowCustomMethods | ( | $strictMethods | ) |
boolean | $strictMethods |
setFiles | ( | ParametersInterface | $files | ) |
Provide an alternate Parameter Container implementation for file parameters in this object, (this is NOT the primary API for value setting, for that see getFiles())
ParametersInterface | $files |
setMethod | ( | $method | ) |
Set the method for this request.
string | $method |
Exception\InvalidArgumentException |
setPost | ( | ParametersInterface | $post | ) |
setQuery | ( | ParametersInterface | $query | ) |
Provide an alternate Parameter Container implementation for query parameters in this object, (this is NOT the primary API for value setting, for that see getQuery())
\Zend\Stdlib\ParametersInterface | $query |
setUri | ( | $uri | ) |
toString | ( | ) |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
const METHOD_CONNECT = 'CONNECT' |
const METHOD_DELETE = 'DELETE' |
const METHOD_GET = 'GET' |
const METHOD_HEAD = 'HEAD' |
const METHOD_OPTIONS = 'OPTIONS' |
#@+ string METHOD constant names
const METHOD_PATCH = 'PATCH' |
const METHOD_POST = 'POST' |
const METHOD_PROPFIND = 'PROPFIND' |
const METHOD_PUT = 'PUT' |
const METHOD_TRACE = 'TRACE' |