[ Index ] |
|
Code source de Horde 3.1.3 |
[Code source] [Imprimer] [Statistiques]
(pas de description)
Poids: | 448 lignes (15 kb) |
Inclus ou requis: | 0 fois |
Référencé: | 0 fois |
Nécessite: | 0 fichiers |
MIME_Structure:: (8 méthodes):
parse()
_parse()
_setInfo()
_getParameters()
_addMultipartInfo()
parseTextMIMEMessage()
_convertMimeDecodeData()
parseMIMEHeaders()
Classe: MIME_Structure - X-Ref
$Horde: framework/MIME/MIME/Structure.php,v 1.87.10.19 2006/05/04 18:03:25 slusarz Exp $parse($body) X-Ref |
Given the results of imap_fetchstructure(), parse the structure of the message, figuring out correct bodypart numbers, etc. param: stdClass $body The result of imap_fetchstructure(). return: &MIME_Message The message parsed into a MIME_Message object. |
_parse($body, $ref = 0) X-Ref |
Given the results of imap_fetchstructure(), parse the structure of the message, figuring out correct bodypart numbers, etc. param: stdClass $body The result of imap_fetchstructure(). param: string $ref The current bodypart. return: MIME_Part A MIME_Part object. |
_setInfo($part, &$ob, $ref) X-Ref |
Given a mime part from imap_fetchstructure(), munge it into a useful form and make sure that any parameters which are missing are given default values. To specify the default character set, define the global variable $GLOBALS['mime_strucutre']['default_charset']. param: stdClass $part The original part info. param: MIME_Part &$ob A MIME_Part object. param: string $ref The ID of this part. |
_getParameters($part, $type) X-Ref |
Get all parameters for a given portion of a message. param: stdClass $part The original part info. param: integer $type The parameter type to retrieve. return: array An array of parameter key/value pairs. |
_addMultipartInfo(&$parts, $info = array() X-Ref |
Set the special information for certain MIME types. param: array &$parts The list of parts contained within the multipart param: array $info Information about the multipart structure. |
parseTextMIMEMessage($text) X-Ref |
Attempts to build a MIME_Message object from a text message. param: string $text The text of the MIME message. return: MIME_Message A MIME_Message object, or false on error. |
_convertMimeDecodeData(&$ob) X-Ref |
Convert the output from mimeDecode::decode() into a structure that matches imap_fetchstructure() output. param: stdClass &$ob The output from mimeDecode::decode(). |
parseMIMEHeaders($headers, $decode = true, $lowercase = false) X-Ref |
Builds an array consisting of MIME header/value pairs. param: string $headers A text string containing the headers (e.g. param: boolean $decode Should the headers be decoded? param: boolean $lowercase Should the keys be in lowercase? return: array An array consisting of the header name as the key and |
Généré le : Sun Feb 25 18:01:28 2007 | par Balluche grâce à PHPXref 0.7 |