Request parser that uses an e-mail message to populate an ezcMvcRequest object.
Source for this file: /MvcMailTiein/src/request_parsers/mail.php
ezcMvcRequestParser | --ezcMvcMailRequestParser
Version: | //autogentag// |
From ezcMvcRequestParser | |
---|---|
protected |
ezcMvcRequestParser::$properties
|
protected |
ezcMvcRequestParser::$request
|
public void |
addFile(
$context
, $mailFile
)
Adds a found attachment to the request structure. |
public ezcMvcRequest |
createRequest(
[ $mailMessage
= null] )
Uses stdin, or the provided data in $mailMessage. |
public void |
getBody(
$context
, $mailText
)
Sets the request body to the text of the $mailText if the body is empty. |
protected void |
processAcceptHeaders(
)
Does really nothing, as Mail doesn't have those bits. |
protected void |
processFiles(
$mail
)
Processes file attachments. |
protected void |
processStandardHeaders(
$mail
)
Processes the standard headers that are not subdivided into other structs. |
protected void |
processUserAgentHeaders(
$mail
)
Processes the User Agent header into the ezcMvcRequestUserAgent struct. |
From ezcMvcRequestParser | |
---|---|
public ezcMvcRequestParser |
ezcMvcRequestParser::__construct()
Constructs a new request parser |
public abstract ezcMvcRequest |
ezcMvcRequestParser::createRequest()
Reads the raw request data with what ever means necessary and constructs an ezcMvcRequest object. |
Adds a found attachment to the request structure.
Name | Type | Description |
---|---|---|
$context |
ezcMailPartWalkContext | |
$mailFile |
ezcMailFile |
Uses stdin, or the provided data in $mailMessage.
Name | Type | Description |
---|---|---|
$mailMessage |
string |
Method | Description |
---|---|
ezcMvcRequestParser::createRequest() |
Reads the raw request data with what ever means necessary and constructs an ezcMvcRequest object. |
Sets the request body to the text of the $mailText if the body is empty.
Name | Type | Description |
---|---|---|
$context |
ezcMailPartWalkContext | |
$mailText |
ezcMailText |
Does really nothing, as Mail doesn't have those bits.
Processes file attachments.
Name | Type | Description |
---|---|---|
$mail |
ezcMail |
Processes the standard headers that are not subdivided into other structs.
Name | Type | Description |
---|---|---|
$mail |
ezcMail |
Processes the User Agent header into the ezcMvcRequestUserAgent struct.
Name | Type | Description |
---|---|---|
$mail |
ezcMail |