Class HTTPRequest is an implementation of Request for HTTP Requests
It saves all information that is transmitted by the client in a single Request. Such as request headers, the requested method which is used to call the appropriate Service function and of course any data transmitted by the requesting client.
Request inherits from ValueObject and registers the transmitted data to the internal data storage to avoid direct access to the PHP superglobals.
On PUT requests a client must send the Content-Type of the transmitted data as a request header. The PUT data is then transformed from the incoming Content-Type into an array and saved to the ValueObject.
Supported Content-Types by now are:
Located in /httprequest.php (line 37)
PHOOL | --ValueObject | --Request | --HTTPRequest
The request headers transmitted by the client
The HTTP Request method
The real directory space where the main script is located.
The referring URL of this request
The HTTP server root
The URI subspace behind the domain root
The HTTP Request URI
Inherited from Request
Request::$meta
Request::$type
Inherited from ValueObject
ValueObject::$data
Inherited from PHOOL
PHOOL::$debug
PHOOL::$errorlabels
PHOOL::$errorlevels
PHOOL::$errors
PHOOL::$exists
PHOOL::$logdir
PHOOL::$loglevel
PHOOL::$objname
Creates a new Request object and registers all needed information
Converts a StdClass object into an array
The json_decode function normally creates an object of type StdClass. This function converts that object into an array to fit into the whole concept.
Shift first position from subspace (used for routing or by gateways)
Inherited From Request
Request::Request()
Request::type()
Inherited From ValueObject
ValueObject::ValueObject()
ValueObject::clear()
ValueObject::erase()
ValueObject::get()
ValueObject::get_all()
ValueObject::get_keys()
ValueObject::get_size()
ValueObject::get_type()
ValueObject::has()
ValueObject::set()
ValueObject::set_all()
Inherited From PHOOL
PHOOL::PHOOL()
PHOOL::debug()
PHOOL::error()
PHOOL::get_errors()
PHOOL::handle_error()
PHOOL::has_error()
PHOOL::log_error()
PHOOL::set_debug()
PHOOL::set_logdir()
PHOOL::set_loglevel()
Inherited from Request
Request::DS
Request::PS
Inherited from PHOOL
PHOOL::ERROR
PHOOL::UNKNOWN
PHOOL::USER
PHOOL::WARNING
Documentation generated on Tue, 12 May 2009 23:09:39 +0200 by phpDocumentor 1.4.1