API documentation :: Docs For Class arbitHttpRequestParser
Packages:Interfaces:
Classes:
|
Core::arbitHttpRequestParserClass arbitHttpRequestParserThe HTTP request class extends the ase request class by user submitted information on accepted languages and content types. The HTTP request class extends the ase request class by user submitted information on accepted languages and content types. ezcMvcRequestParser | --arbitHttpRequestParserAuthor(s):
Member Variables
Method Summary
MethodscreateRequest
ezcMvcRequest
createRequest(
)
Uses the data from the superglobals. Uses the data from the superglobals. parseAcceptHeader
array
parseAcceptHeader(
string
$header
)
Parse HTTP Accept headers Parse the typical HTTP accept headers and return an array with the extracted information sorted by priority. like: array( array( 'value' => (string), 'priority' => (float), 'country' => (string | null), ), . Parse HTTP Accept headers Parse the typical HTTP accept headers and return an array with the extracted information sorted by priority. The returned array will look like: array( array( 'value' => (string), 'priority' => (float), 'country' => (string | null), ), ... ) Parameters:
parseUrl
void
parseUrl(
string
$url
)
Parse a URL Parse the given URL and return a set of controller, action and optional parameters to be handled in the application. arbitRequest object, which (besides other optional information) contains the name of the controller, action and the paramters of the request. Parse a URL Parse the given URL and return a set of controller, action and optional parameters to be handled in the application. The result should be a arbitRequest object, which (besides other optional information) contains the name of the controller, action and the paramters of the request. Parameters:
processAcceptHeaders
void
processAcceptHeaders(
)
Process HTTP accept headers Process HTTP accept headers sanitizeUrl
string
sanitizeUrl(
string
$url
)
Remove basepath from url If arbit resides in a subdirectory, and not in the htdocs folder itself, remove the preceeding irrelevant stuff from the URL and store it for the URL serialitzation. Remove basepath from url If arbit resides in a subdirectory, and not in the htdocs folder itself, remove the preceeding irrelevant stuff from the URL and store it for the URL serialitzation. Parameters:
Documentation generated on Mon, 05 Apr 2010 14:02:10 +0200 by phpDocumentor 1.4.3
|