|
Moodle
2.2.1
http://www.collinsharper.com
|
Static Public Member Functions | |
| static | splitMime ($body, $boundary) |
| static | splitMessageStruct ($message, $boundary, $EOL=Zend_Mime::LINEEND) |
| static | splitMessage ($message, &$headers, &$body, $EOL=Zend_Mime::LINEEND) |
| static | splitContentType ($type, $wantedPart=null) |
| static | splitHeaderField ($field, $wantedPart=null, $firstName=0) |
| static | decodeQuotedPrintable ($string) |
Definition at line 33 of file Decode.php.
| static decodeQuotedPrintable | ( | $ | string | ) | [static] |
decode a quoted printable encoded string
The charset of the returned string depends on your iconv settings.
| string | encoded string |
Definition at line 240 of file Decode.php.
| static splitContentType | ( | $ | type, |
| $ | wantedPart = null |
||
| ) | [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 |
Definition at line 176 of file Decode.php.

| static splitHeaderField | ( | $ | field, |
| $ | wantedPart = null, |
||
| $ | firstName = 0 |
||
| ) | [static] |
split a header field like content type in its different parts
| 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 |
| Zend_Exception |
Definition at line 190 of file Decode.php.

| static splitMessage | ( | $ | message, |
| &$ | headers, | ||
| &$ | body, | ||
| $ | EOL = Zend_Mime::LINEEND |
||
| ) | [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 | $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 |
Definition at line 117 of file Decode.php.

| static splitMessageStruct | ( | $ | message, |
| $ | boundary, | ||
| $ | EOL = Zend_Mime::LINEEND |
||
| ) | [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 Zend_Mime::LINEEND |
| Zend_Exception |
Definition at line 90 of file Decode.php.


| static splitMime | ( | $ | body, |
| $ | boundary | ||
| ) | [static] |
Explode MIME multipart string into seperate 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 |
| Zend_Exception |
Definition at line 45 of file Decode.php.
