XOOPS RMCommon Utilities
2.1.8.91RC
|
Public Member Functions | |
getBody () | |
getChildren () | |
getContentType () | |
getHeaders () | |
getId () | |
getNestingLevel () | |
setBody ($body, $contentType=null) | |
setChildren (array $children) | |
toByteStream (Swift_InputByteStream $is) | |
toString () | |
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_ALTERNATIVE = 4096 |
const | LEVEL_MIXED = 256 |
const | LEVEL_RELATED = 65536 |
const | LEVEL_TOP = 16 |
Definition at line 21 of file MimeEntity.php.
Swift_Mime_MimeEntity::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_Mime_SimpleMessage\toByteStream(), and Swift_Mime_SimpleMessage\toString().
Swift_Mime_MimeEntity::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_Mime_SimpleMessage\toByteStream(), and Swift_Mime_SimpleMessage\toString().
Swift_Mime_MimeEntity::getContentType | ( | ) |
Get the qualified content-type of this mime entity.
Implemented in Swift_Mime_SimpleMimeEntity.
Swift_Mime_MimeEntity::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_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().
Swift_Mime_MimeEntity::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(), and Swift_Mime_SimpleMessage\embed().
Swift_Mime_MimeEntity::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.
Swift_Mime_MimeEntity::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().
Swift_Mime_MimeEntity::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_Mime_SimpleMessage\toByteStream(), and Swift_Mime_SimpleMessage\toString().
Swift_Mime_MimeEntity::toByteStream | ( | Swift_InputByteStream | $is | ) |
Get this entire entity as a ByteStream.
Swift_InputByteStream | $is | to write to |
Implemented in Swift_Mime_SimpleMessage, and Swift_Mime_SimpleMimeEntity.
Referenced by Swift_Transport_AbstractSmtpTransport\_streamMessage(), and Swift_Transport_SendmailTransport\send().
Swift_Mime_MimeEntity::toString | ( | ) |
Get this entire entity in its string form.
Implemented in Swift_Mime_SimpleMessage, and Swift_Mime_SimpleMimeEntity.
Referenced by Swift_Transport_MailTransport\send().
const Swift_Mime_MimeEntity::LEVEL_ALTERNATIVE = 4096 |
An entity which nests with the same precedence as a mime part
Definition at line 32 of file MimeEntity.php.
const Swift_Mime_MimeEntity::LEVEL_MIXED = 256 |
An entity which nests with the same precedence as an attachment
Definition at line 29 of file MimeEntity.php.
const Swift_Mime_MimeEntity::LEVEL_RELATED = 65536 |
An entity which nests with the same precedence as embedded content
Definition at line 35 of file MimeEntity.php.
const Swift_Mime_MimeEntity::LEVEL_TOP = 16 |
Main message document; there can only be one of these
Definition at line 26 of file MimeEntity.php.