IMP_ContentsThe IMP_Contents:: class extends the MIME_Contents:: class and contains all functions related to handling the content and output of mail messages in IMP.
$Horde: imp/lib/MIME/Contents.php,v 1.153.4.61 2009/01/06 15:24:09 jan Exp $
Copyright 2002-2009 The Horde Project (http://www.horde.org/)
See the enclosed file COPYING for license information (GPL). If you did not receive this file, see http://www.fsf.org/copyleft/gpl.html.
Located in /lib/MIME/Contents.php (line 32)
MIME_Contents | --IMP_Contents
string
urlView
(MIME_Part &$mime_part, integer $actionID, [array $params = array()], [boolean $dload = false])
string
$_body
= '' (line 39)
The text of the body of the message.
array
$_bodypart
= array() (line 55)
The text of various MIME body parts.
integer
$_body_id
(line 48)
The MIME part id of the message body.
array
$_downloads
= null (line 85)
List of all downloadable parts.
integer
$_index
(line 62)
The IMAP index of the message.
string
$_mailbox
(line 69)
The mailbox of the current message.
boolean
$_strip
= false (line 76)
Should attachment stripping links be generated?
Constructor IMP_Contents (line 137)
Constructor.
attachmentCount (line 866)
Return the attachment count.
buildMessagePart (line 567)
Processes a MIME_Part and stores the display information in the internal class variables.
findBody (line 682)
Finds the main "body" text part (if any) in a message.
"Body" data is the first text part in the base MIME part.
formatStatusMsg (line 663)
Prints out the status message for a given MIME Part.
fullMessageText (line 346)
Returns the full message text.
getBody (line 178)
Returns the entire body of the message.
getBodyPart (line 196)
Gets the raw text for one section of the message.
getDownloadAllLink (line 543)
Generate a download all link, if possible.
getDownloadAllList (line 500)
Generate the list of MIME IDs to use for download all.
getFromAddress (line 486)
Get the from address of the message.
getMessageIndex (line 371)
Returns the IMAP index for the current message.
getMessageMailbox (line 383)
Returns the IMAP mailbox for the current message.
getRawMIMEPart (line 799)
Fetch part of a MIME message.
linkView (line 316)
Generate a link to the view.php page.
partSummary (line 232)
Returns an array summarizing a part of a MIME message.
rebuildMessage (line 400)
Rebuild the MIME_Part structure of a message from IMAP data.
This will store IMAP data in all parts of the message - for example, all data for a multipart/mixed part will be stored in the base part, and each part will contain its own data. Note that if you want to build a message string from the MIME_Part data after calling rebuildMessage(), you should use IMP_Contents::toString() instead of MIME_Part::toString().
removeAtcEntry (line 849)
Remove all attachment entries for the given part.
TODO: This is a total hack to tide us over to Horde 4.0.
renderMIMEPart (line 443)
Render a MIME Part.
setStripLink (line 214)
Allow attachments to be stripped by providing a link in summary view?
singleton (line 102)
Attempts to return a reference to a concrete IMP_Contents instance.
If an IMP_Contents object is currently stored in the local cache, recreate that object. Else, create a new instance. Ensures that only one IMP_Contents instance for any given message is available at any one time.
This method must be invoked as: $imp_contents = &IMP_Contents::singleton($in);
toString (line 821)
Create a message string from a MIME message that has used rebuildMessage() to build the data from the IMAP server.
urlView (line 293)
Return the URL to the view.php page.
Documentation generated on Sun, 30 Jan 2011 05:28:10 +0000 by phpDocumentor 1.4.3