## Zend_Mime_Decode

Description

- license: New BSD License
- copyright: Copyright (c) 2005-2007 Zend Technologies USA Inc. (http://www.zend.com)

Located in /Zend/Mime/Decode.php (line 32)

Method Summary
static string decodeQuotedPrintable (string $string)
static string|array splitContentType (string $type, [string $wantedPart = null])
static string|array splitHeaderField ( $field, [string $wantedPart = null], [string $firstName = 0], string $type)
static null splitMessage (string $message, &$headers, &$body, [string $EOL = Zend_Mime::LINEEND], array $headers, string $body)
static array|null splitMessageStruct (string $message, string $boundary, [string $EOL = Zend_Mime::LINEEND])
static array splitMime (string $body, string $boundary)
Methods
static decodeQuotedPrintable (line 223)

decode a quoted printable encoded string

The charset of the returned string depends on your iconv settings.

- return: decoded string
- access: public

static string decodeQuotedPrintable (string $string)

- string $string: encoded string

static splitContentType (line 169)

split a content type in its different parts

- return: wanted part or all parts as array('type' => content-type, partname => value)
- access: public

static string|array splitContentType (string $type, [string $wantedPart = null])

- string $type: content-type
- string $wantedPart: the wanted part, else an array with all parts is returned

static splitHeaderField (line 183)

split a header field like content type in its different parts

- return: wanted part or all parts as array($firstName => firstPart, partname => value)
- access: public
- throws: Zend_Exception

static string|array splitHeaderField ( $field, [string $wantedPart = null], string $firstName, string $type)

- string $type: header field
- string $wantedPart: the wanted part, else an array with all parts is returned
- string $firstName: key name for the first part
- $field

static splitMessage (line 116)

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.

- access: public

static null splitMessage (string $message, &$headers, &$body, [string $EOL = Zend_Mime::LINEEND], array $headers, string $body)

- string $message: raw message with header and optional content
- array $headers: output param, array with headers as array(name => value)
- string $body: output param, content of message
- string $EOL: EOL string; defaults to Zend_Mime::LINEEND
- &$headers
- &$body

static splitMessageStruct (line 89)

decodes a mime encoded String and returns a struct of parts with header and body

- return: parts as array('header' => array(name => value), 'body' => content), null if no parts found
- access: public
- throws: Zend_Exception

static array|null splitMessageStruct (string $message, string $boundary, [string $EOL = Zend_Mime::LINEEND])

- string $message: raw message content
- string $boundary: boundary as found in content-type
- string $EOL: EOL string; defaults to Zend_Mime::LINEEND

static splitMime (line 44)

Explode MIME multipart string into seperate parts

Parts consist of the header and the body of each MIME part.

- return: parts with content of each part, empty if no parts found
- access: public
- throws: Zend_Exception

static array splitMime (string $body, string $boundary)

- string $body: raw body of message
- string $boundary: boundary as found in content-type

Documentation generated on Wed, 21 Feb 2007 11:46:53 -0800 by phpDocumentor 1.3.1