Class Zend_Mime_Decode

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

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 (string $type, [string $wantedPart = null], [string $firstName = 0])
 static void splitMessage (string $message,  &$headers,  &$body, [string $EOL = Zend_Mime::LINEEND], mixed $headers,, mixed $body,)
 static array splitMessageStruct (string $message, string $boundary, [string $EOL = Zend_Mime::LINEEND])
 static array splitMime (string $body, string $boundary)
Methods
static decodeQuotedPrintable (line 319)

decode a quoted printable encoded string

  • return: decoded string
  • access: public
static string decodeQuotedPrintable (string $string)
  • string $string: encoded string
static splitContentType (line 277)

split a content type in its different parts - maybe that could get a more generic name and code as many fields use this format

  • return: wanted part or all parts
  • 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 291)

split a header field like content type in its different parts

  • return: wanted part or all parts
  • access: public
static string|array splitHeaderField (string $type, [string $wantedPart = null], string $firstName)
  • string $type: header field
  • string $wantedPart: the wanted part, else an array with all parts is returned
  • string $firstName: key name for the first field
static splitMessage (line 214)

split a message in header and body part, if no header or an invalid header is found $headers is empty

  • access: public
static void splitMessage (string $message,  &$headers,  &$body, [string $EOL = Zend_Mime::LINEEND], mixed $headers,, mixed $body,)
  • string $message
  • mixed $headers,: output param, out type is array
  • mixed $body,: output param, out type is string
  • string $EOL: EOL string; defaults to Zend_Mime::LINEEND
  • &$headers
  • &$body
static splitMessageStruct (line 190)

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

  • access: public
static array splitMessageStruct (string $message, string $boundary, [string $EOL = Zend_Mime::LINEEND])
  • string $message
  • string $boundary
  • string $EOL: EOL string; defaults to Zend_Mime::LINEEND
static splitMime (line 146)

Explode MIME multipart string into seperate parts

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

  • access: public
static array splitMime (string $body, string $boundary)
  • string $body
  • string $boundary

Documentation generated on Thu, 18 Jan 2007 10:00:46 -0800 by phpDocumentor 1.3.1