Zend Framework
3.0
|
Public Member Functions | |
getParts () | |
Returns the list of all Zend in the message. | |
setParts ($parts) | |
Sets the given array of Zend as the array for the message. | |
addPart (Part $part) | |
Append a new Zend to the current message. | |
isMultiPart () | |
Check if message needs to be sent as multipart MIME message or if it has only one part. | |
setMime (Mime $mime) | |
Set Zend object for the message. | |
getMime () | |
Returns the Zend object in use by the message. | |
generateMessage ($EOL=Mime::LINEEND) | |
Generate MIME-compliant message from the current configuration. | |
getPartHeadersArray ($partnum) | |
Get the headers of a given part as an array. | |
getPartHeaders ($partnum, $EOL=Mime::LINEEND) | |
Get the headers of a given part as a string. | |
getPartContent ($partnum, $EOL=Mime::LINEEND) | |
Get the (encoded) content of a given part as a string. | |
Static Protected Member Functions | |
static | _disassembleMime ($body, $boundary) |
Explode MIME multipart string into separate parts. | |
Protected Attributes | |
$parts = [] | |
$mime = null | |
|
staticprotected |
Explode MIME multipart string into separate parts.
Parts consist of the header and the body of each MIME part.
string | $body | |
string | $boundary |
Exception\RuntimeException |
addPart | ( | Part | $part | ) |
generateMessage | ( | $EOL = Mime::LINEEND | ) |
Generate MIME-compliant message from the current configuration.
This can be a multipart message if more than one MIME part was added. If only one part is present, the content of this part is returned. If no part had been added, an empty string is returned.
Parts are separated by the mime boundary as defined in Zend. If setMime() has been called before this method, the Zend object set by this call will be used. Otherwise, a new Zend object is generated and used.
string | $EOL | EOL string; defaults to ::LINEEND |
getMime | ( | ) |
Returns the Zend object in use by the message.
If the object was not present, it is created and returned. Can be used to determine the boundary used in this message.
getPartContent | ( | $partnum, | |
$EOL = Mime::LINEEND |
|||
) |
Get the (encoded) content of a given part as a string.
int | $partnum | |
string | $EOL |
getPartHeaders | ( | $partnum, | |
$EOL = Mime::LINEEND |
|||
) |
Get the headers of a given part as a string.
int | $partnum | |
string | $EOL |
getPartHeadersArray | ( | $partnum | ) |
Get the headers of a given part as an array.
int | $partnum |
getParts | ( | ) |
Returns the list of all Zend in the message.
isMultiPart | ( | ) |
Check if message needs to be sent as multipart MIME message or if it has only one part.
setMime | ( | Mime | $mime | ) |
setParts | ( | $parts | ) |
Sets the given array of Zend as the array for the message.
array | $parts |
|
protected |
|
protected |