[ Index ]

PHP Cross Reference of moodle-2.8

title

Body

[close]

/lib/zend/Zend/Mime/ -> Decode.php (summary)

Zend Framework LICENSE

Copyright: Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
License: http://framework.zend.com/license/new-bsd New BSD License
Version: $Id$
File Size: 244 lines (9 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

Zend_Mime_Decode:: (6 methods):
  splitMime()
  splitMessageStruct()
  splitMessage()
  splitContentType()
  splitHeaderField()
  decodeQuotedPrintable()


Class: Zend_Mime_Decode  - X-Ref


splitMime($body, $boundary)   X-Ref
Explode MIME multipart string into seperate parts

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

param: string $body     raw body of message
param: string $boundary boundary as found in content-type
return: array parts with content of each part, empty if no parts found

splitMessageStruct($message, $boundary, $EOL = Zend_Mime::LINEEND)   X-Ref
decodes a mime encoded String and returns a
struct of parts with header and body

param: string $message  raw message content
param: string $boundary boundary as found in content-type
param: string $EOL EOL string; defaults to {@link Zend_Mime::LINEEND}
return: array|null parts as array('header' => array(name => value), 'body' => content), null if no parts found

splitMessage($message, &$headers, &$body, $EOL = Zend_Mime::LINEEND)   X-Ref
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.

param: string $message raw message with header and optional content
param: array  $headers output param, array with headers as array(name => value)
param: string $body    output param, content of message
param: string $EOL EOL string; defaults to {@link Zend_Mime::LINEEND}
return: null

splitContentType($type, $wantedPart = null)   X-Ref
split a content type in its different parts

param: string $type       content-type
param: string $wantedPart the wanted part, else an array with all parts is returned
return: string|array wanted part or all parts as array('type' => content-type, partname => value)

splitHeaderField($field, $wantedPart = null, $firstName = 0)   X-Ref
split a header field like content type in its different parts

param: string $type       header field
param: string $wantedPart the wanted part, else an array with all parts is returned
param: string $firstName  key name for the first part
return: string|array wanted part or all parts as array($firstName => firstPart, partname => value)

decodeQuotedPrintable($string)   X-Ref
decode a quoted printable encoded string

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

param: string encoded string
return: string decoded string



Generated: Fri Nov 28 20:29:05 2014 Cross-referenced by PHPXref 0.7.1