A MIME entity, such as an attachment.
package | Swift |
---|---|
subpackage | Mime |
author | Chris Corbyn |
charsetChanged(string $charset)
inherited_from | \Swift_Mime_CharsetObserver::charsetChanged() |
---|
string
getBody() : string
Returns NULL if no body has been set.
string
getContentType() : string
string
getId() : string
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.
string
getNestingLevel() : int
The lower the value, the more outermost the entity will be nested.
see | LEVEL_MIXED, LEVEL_RELATED, LEVEL_ALTERNATIVE |
---|
int
setBody(string $body, string $contentType)
string
string
optional
setChildren(array $children)
toByteStream(\Swift_InputByteStream $is)
toString() : string
string
LEVEL_ALTERNATIVE
LEVEL_MIXED
LEVEL_RELATED
LEVEL_TOP