Zend Framework
3.0
|
Static Public Member Functions | |
static | splitMime ($body, $boundary) |
Explode MIME multipart string into separate parts. | |
static | splitMessageStruct ($message, $boundary, $EOL=Mime::LINEEND) |
decodes a mime encoded String and returns a struct of parts with header and body | |
static | splitMessage ($message, &$headers, &$body, $EOL=Mime::LINEEND, $strict=false) |
split a message in header and body part, if no header or an invalid header is found $headers is empty | |
static | splitContentType ($type, $wantedPart=null) |
split a content type in its different parts | |
static | splitHeaderField ($field, $wantedPart=null, $firstName= '0') |
split a header field like content type in its different parts | |
static | decodeQuotedPrintable ($string) |
decode a quoted printable encoded string | |
|
static |
decode a quoted printable encoded string
The charset of the returned string depends on your iconv settings.
string | $string | encoded string |
|
static |
split a content type in its different parts
string | $type | content-type |
string | $wantedPart | the wanted part, else an array with all parts is returned |
|
static |
split a header field like content type in its different parts
string | $field | header field |
string | $wantedPart | the wanted part, else an array with all parts is returned |
string | $firstName | key name for the first part |
Exception\RuntimeException |
|
static |
split a message in header and body part, if no header or an invalid header is found $headers is empty
The charset of the returned headers depend on your iconv settings.
string | Headers | $message | raw message with header and optional content |
Headers | $headers | output param, headers container |
string | $body | output param, content of message |
string | $EOL | EOL string; defaults to ::LINEEND |
bool | $strict | enable strict mode for parsing message |
|
static |
decodes a mime encoded String and returns a struct of parts with header and body
string | $message | raw message content |
string | $boundary | boundary as found in content-type |
string | $EOL | EOL string; defaults to ::LINEEND |
Exception\RuntimeException |
|
static |
Explode MIME multipart string into separate parts.
Parts consist of the header and the body of each MIME part.
string | $body | raw body of message |
string | $boundary | boundary as found in content-type |
Exception\RuntimeException |