Path

ez components / documentation / api reference / 2009.2.1 / mvctools


eZ Components 2009.2.1

MvcTools: ezcMvcRequestParser

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

Class: ezcMvcRequestParser

The interface that should be implemented by all request parsers. [source]
A request parser takes the raw request - protocol dependent - and creates an abstract ezcMvcRequest object of this.

Descendents

Child Class Description
ezcMvcHttpRequestParser Request parser that uses HTTP headers to populate an ezcMvcRequest object.
ezcMvcMailRequestParser Request parser that uses an e-mail message to populate an ezcMvcRequest object.

Properties

string read/write  $prefix
The prefix in the URL that should be stripped from URL properties.

Member Variables

protected array(string=>mixed) $properties = array()
Holds the properties of this class.
protected ezcMvcRequest $request
Contains the request struct

Method Summary

public ezcMvcRequestParser __construct( )
Constructs a new request parser
public abstract ezcMvcRequest createRequest( )
Reads the raw request data with what ever means necessary and constructs an ezcMvcRequest object.

Methods

__construct

ezcMvcRequestParser __construct( )
Constructs a new request parser

createRequest

ezcMvcRequest createRequest( )
Reads the raw request data with what ever means necessary and constructs an ezcMvcRequest object.

Redefined in descendants as

Method Description
ezcMvcHttpRequestParser::createRequest() Uses the data from the superglobals.
ezcMvcMailRequestParser::createRequest() Uses stdin, or the provided data in $mailMessage.

Last updated: Tue, 23 Mar 2010