Interface Swift_Mime_MimeEntity
A MIME entity, such as an attachment.
- Swift_Mime_MimeEntity implements Swift_Mime_CharsetObserver, Swift_Mime_EncodingObserver
Direct known implementers
Indirect known implementers
Swift_Attachment
,
Swift_EmbeddedFile
,
Swift_Image
,
Swift_Message
,
Swift_Mime_Attachment
,
Swift_Mime_EmbeddedFile
,
Swift_Mime_MimePart
,
Swift_Mime_SimpleMessage
,
Swift_MimePart
Author: Chris Corbyn
Located at vendors/swiftmailer/lib/classes/Swift/Mime/MimeEntity.php
Methods summary
public
integer
|
#
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. |
public
string
|
|
public
string
|
#
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. |
public
|
#
getChildren( )
Get all children nested inside this entity. These are not just the immediate children, but all children. |
public
|
#
setChildren( array $children )
Set all children nested inside this entity. This includes grandchildren. |
public
|
|
public
string
|
|
public
|
#
setBody( string $body, string $contentType = null )
Set the body content of this entity as a string. |
public
string
|
|
public
|
Methods inherited from Swift_Mime_CharsetObserver
Methods inherited from Swift_Mime_EncodingObserver
Magic methods summary
Constants summary
integer |
LEVEL_TOP |
16 |
#
Main message document; there can only be one of these |
integer |
LEVEL_MIXED |
256 |
#
An entity which nests with the same precedence as an attachment |
integer |
LEVEL_ALTERNATIVE |
4096 |
#
An entity which nests with the same precedence as a mime part |
integer |
LEVEL_RELATED |
65536 |
#
An entity which nests with the same precedence as embedded content |