Class Swift_Mime_SimpleMimeEntity
A MIME entity, in a multipart message.
- Swift_Mime_SimpleMimeEntity implements Swift_Mime_MimeEntity
Indirect known subclasses
Swift_Attachment, Swift_EmbeddedFile, Swift_Image, Swift_Message, Swift_Mime_EmbeddedFile, Swift_Mime_SimpleMessage, Swift_MimePartAuthor: Chris Corbyn
Located at classes/swiftmailer/lib/classes/Swift/Mime/SimpleMimeEntity.php
public
|
#
__construct(
Create a new SimpleMimeEntity with $headers, $encoder and $cache. |
public
string
|
|
public
|
|
public
integer
|
|
public
string
|
|
public
|
|
public
string
|
|
public
|
|
public
string
|
#
getDescription( )
Get the description of this entity. This value comes from the Content-Description header if set. |
public
|
#
setDescription( string $description )
Set the description of this entity. This method sets a value in the Content-ID header. |
public
integer
|
|
public
|
#
setMaxLineLength( integer $length )
Set the maximum line length of lines in this body. Though not enforced by the library, lines should not exceed 1000 chars. |
public
array
|
|
public
|
|
public
string
|
|
public
|
#
setBody( mixed $body, string $contentType = null )
Set the body of this entity, either as a string, or as an instance of
|
public
|
|
public
|
#
setEncoder(
Set the encoder used for the body of this entity. |
public
string
|
|
public
|
|
public
|
#
charsetChanged( string $charset )
Receive notification that the charset of this entity, or a parent entity has changed. |
public
|
#
encoderChanged(
Receive notification that the encoder of this entity or a parent entity has changed. |
public
string
|
|
public
string
|
|
public
|
|
protected
|
|
protected
|
|
protected
|
|
protected
|
|
protected
|
#
_setHeaderParameter( $field, $parameter, $value )
Set the parameter value of $parameter on $field header. |
protected
|
|
protected
|
|
protected
|
|
protected
|
|
protected
string
|
|
private
|
|
private
|
|
private
|
|
private
|
|
private
|
|
private
|
|
private
|
|
private
|
|
private
|
|
private
|
|
private
|
|
private
|
|
public
|
|
private
|
LEVEL_ALTERNATIVE,
LEVEL_MIXED,
LEVEL_RELATED,
LEVEL_TOP
|
private
|
$_headers
A collection of Headers for this mime entity |
|
private
|
$_body
The body as a string, or a stream |
|
private
|
$_encoder
The encoder that encodes the body into a streamable format |
|
private
|
$_grammar
The grammar to use for id validation |
|
private
|
$_boundary
A mime bounary, if any is used |
|
private
array
|
$_compositeRanges
Mime types to be used based on the nesting level |
#
array(
'multipart/mixed' => array(self::LEVEL_TOP, self::LEVEL_MIXED),
'multipart/alternative' => array(self::LEVEL_MIXED, self::LEVEL_ALTERNATIVE),
'multipart/related' => array(self::LEVEL_ALTERNATIVE, self::LEVEL_RELATED)
)
|
private
array
|
$_compoundLevelFilters
A set of filter rules to define what level an entity should be nested at |
#
array()
|
private
integer
|
$_nestingLevel
The nesting level of this entity |
|
private
|
$_cache
A KeyCache instance used during encoding and streaming |
|
private
array
|
$_immediateChildren
Direct descendants of this entity |
#
array()
|
private
array
|
$_children
All descendants of this entity |
#
array()
|
private
integer
|
$_maxLineLength
The maximum line length of the body of this entity |
#
78
|
private
array
|
$_alternativePartOrder
The order in which alternative mime types should appear |
#
array(
'text/plain' => 1,
'text/html' => 2,
'multipart/related' => 3
)
|
private
|
$_id
The CID of this entity |
|
private
|
$_cacheKey
The key used for accessing the cache |
|
protected
|
$_userContentType
|