Class Zend_Mime_Decode

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

Located in /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 224)

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 170)

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 184)

split a header field like content type in its different parts

  • return: wanted part or all parts as array($firstName => firstPart, partname => value)
  • throws: Zend_Exception
  • access: public
static string|array splitHeaderField ( $field, [string $wantedPart = null], [string $firstName = 0], 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
  • throws: Zend_Exception
  • access: public
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
  • throws: Zend_Exception
  • access: public
static array splitMime (string $body, string $boundary)
  • string $body: raw body of message
  • string $boundary: boundary as found in content-type

Documentation generated on Sun, 27 May 2007 23:22:30 -0700 by phpDocumentor 1.3.2