![]()  | 
  
    TYPO3
    7.6
    
   | 
 
  
 Public Member Functions | |
| getNestingLevel () | |
| getContentType () | |
| getId () | |
| getChildren () | |
| setChildren (array $children) | |
| getHeaders () | |
| getBody () | |
| setBody ($body, $contentType=null) | |
| toString () | |
| toByteStream (Swift_InputByteStream $is) | |
  Public Member Functions inherited from Swift_Mime_CharsetObserver | |
| charsetChanged ($charset) | |
  Public Member Functions inherited from Swift_Mime_EncodingObserver | |
| encoderChanged (Swift_Mime_ContentEncoder $encoder) | |
Public Attributes | |
| const | LEVEL_TOP = 16 | 
| const | LEVEL_MIXED = 256 | 
| const | LEVEL_ALTERNATIVE = 4096 | 
| const | LEVEL_RELATED = 65536 | 
A MIME entity, such as an attachment.
Definition at line 16 of file MimeEntity.php.
| getBody | ( | ) | 
Get the body content of this entity as a string.
Returns NULL if no body has been set.
Implemented in Swift_Mime_SimpleMimeEntity.
Referenced by Swift_Mime_SimpleMessage\_becomeMimePart(), Swift_Message\saveMessage(), Swift_Mime_SimpleMessage\toByteStream(), and Swift_Mime_SimpleMessage\toString().
| getChildren | ( | ) | 
Get all children nested inside this entity.
These are not just the immediate children, but all children.
Implemented in Swift_Mime_SimpleMimeEntity.
Referenced by Swift_Mime_SimpleMessage\_getTopNestingLevel(), Swift_Plugins_DecoratorPlugin\_restoreMessage(), Swift_Mime_SimpleMessage\attach(), Swift_Mime_SimpleMessage\detach(), Swift_Message\saveMessage(), Swift_Mime_SimpleMessage\toByteStream(), and Swift_Mime_SimpleMessage\toString().
| getContentType | ( | ) | 
Get the qualified content-type of this mime entity.
Implemented in Swift_Mime_SimpleMimeEntity.
| getHeaders | ( | ) | 
Get the collection of Headers in this Mime entity.
Implemented in Swift_Mime_SimpleMimeEntity.
Referenced by Swift_Mime_SimpleMessage\__construct(), Swift_Mime_SimpleMessage\_becomeMimePart(), Swift_Plugins_DecoratorPlugin\_restoreMessage(), Swift_Plugins_RedirectingPlugin\_restoreMessage(), Swift_Message\doSign(), Swift_Message\restoreHeaders(), Swift_Message\saveHeaders(), MailMessage\send(), Swift_Transport_MailTransport\send(), Swift_Mime_SimpleMessage\setBcc(), Swift_Mime_SimpleMessage\setCc(), Swift_Mime_SimpleMessage\setDate(), Swift_Mime_SimpleMessage\setFrom(), Swift_Mime_SimpleMessage\setPriority(), Swift_Mime_SimpleMessage\setReadReceiptTo(), Swift_Mime_SimpleMessage\setReplyTo(), Swift_Mime_SimpleMessage\setReturnPath(), Swift_Mime_SimpleMessage\setSender(), Swift_Mime_SimpleMessage\setSubject(), and Swift_Mime_SimpleMessage\setTo().
| getId | ( | ) | 
Returns a unique ID for this entity.
For most entities this will likely be the Content-ID, though it has no explicit semantic meaning and can be considered an identifier for programming logic purposes.
If a Content-ID header is present, this value SHOULD match the value of the header.
Implemented in Swift_Mime_SimpleMimeEntity.
Referenced by Swift_Mime_SimpleMessage\__construct().
| getNestingLevel | ( | ) | 
Get the level at which this entity shall be nested in final document.
The lower the value, the more outermost the entity will be nested.
Implemented in Swift_Mime_MimePart, Swift_Mime_SimpleMimeEntity, Swift_Mime_SimpleMessage, Swift_Mime_Attachment, and Swift_Mime_EmbeddedFile.
| setBody | ( | $body, | |
$contentType = null  | 
        |||
| ) | 
Set the body content of this entity as a string.
| string | $body | |
| string | $contentType | optional | 
Implemented in Swift_Mime_SimpleMimeEntity.
Referenced by Swift_Plugins_DecoratorPlugin\_restoreMessage().
| setChildren | ( | array | $children | ) | 
Set all children nested inside this entity.
This includes grandchildren.
| Swift_Mime_MimeEntity[] | $children | 
Referenced by Swift_Mime_SimpleMessage\attach(), Swift_Mime_SimpleMessage\detach(), Swift_Message\restoreMessage(), Swift_Message\saveMessage(), Swift_Mime_SimpleMessage\toByteStream(), and Swift_Mime_SimpleMessage\toString().
| toByteStream | ( | Swift_InputByteStream | $is | ) | 
Get this entire entity as a ByteStream.
| Swift_InputByteStream | $is | to write to | 
Implemented in Swift_Mime_SimpleMessage, Swift_Mime_SimpleMimeEntity, and Swift_Message.
Referenced by Swift_Transport_AbstractSmtpTransport\_streamMessage(), and Swift_Transport_SendmailTransport\send().
| toString | ( | ) | 
Get this entire entity in its string form.
Implemented in Swift_Mime_SimpleMessage, Swift_Mime_SimpleMimeEntity, and Swift_Message.
Referenced by MboxTransport\send(), and Swift_Transport_MailTransport\send().
| const LEVEL_ALTERNATIVE = 4096 | 
An entity which nests with the same precedence as a mime part
Definition at line 25 of file MimeEntity.php.
| const LEVEL_MIXED = 256 | 
An entity which nests with the same precedence as an attachment
Definition at line 22 of file MimeEntity.php.
| const LEVEL_RELATED = 65536 | 
An entity which nests with the same precedence as embedded content
Definition at line 28 of file MimeEntity.php.
| const LEVEL_TOP = 16 | 
Main message document; there can only be one of these
Definition at line 19 of file MimeEntity.php.
 1.8.3