Path

ez components / documentation / api reference / latest / mvctools


eZ Components latest

MvcTools: ezcMvcHttpRawRequest

[ Tutorial ] [ Class tree ] [ Element index ] [ ChangeLog ] [ Credits ]

Class: ezcMvcHttpRawRequest

Class that encapsulates a semi-parsed HTTP request by using PHP's super globals to extract information. [source]

Parents

ezcBaseStruct
   |
   --ezcMvcHttpRawRequest

Member Variables

public string $body
Contains the request body (read from php://stdin if available).
public array(string $headers
Contains an array of headers, where the key is the original HTTP header name, and the value extracted from the $_SERVER superglobal.

Method Summary

public ezcMvcHttpRawRequest __construct( [$headers = null], [$body = ''] )
Constructs a new ezcMvcHttpRawRequest.
public static ezcMvcHttpRawRequest __set_state( $array )
Returns a new instance of this class with the data specified by $array.

Methods

__construct

ezcMvcHttpRawRequest __construct( [array(string $headers = null], [string $body = ''] )
Constructs a new ezcMvcHttpRawRequest.

Parameters

Name Type Description
$headers array(string  
$body string  

__set_state

ezcMvcHttpRawRequest __set_state( $array )
Returns a new instance of this class with the data specified by $array.
$array contains all the data members of this class in the form: array('member_name'=>value).
__set_state makes this class exportable with var_export. var_export() generates code, that calls this method when it is parsed with PHP.

Parameters

Name Type Description
$array array(string=>mixed)  

Last updated: Mon, 21 Dec 2009