Class Swift_Mime_SimpleMimeEntity
A MIME entity, in a multipart message.
- Swift_Mime_SimpleMimeEntity implements Swift_Mime_MimeEntity
Direct known subclasses
Indirect known subclasses
Swift_Attachment
,
Swift_EmbeddedFile
,
Swift_Image
,
Swift_Message
,
Swift_Mime_EmbeddedFile
,
Swift_Mime_SimpleMessage
,
Swift_MimePart
Author: Chris Corbyn
Located at vendors/swiftmailer/lib/classes/Swift/Mime/SimpleMimeEntity.php
Methods summary
public
|
#
__construct(
Create a new SimpleMimeEntity with $headers, $encoder and $cache. |
public
string
|
|
public
|
|
public
integer
|
|
public
string
|
|
public
|
|
public
string
|
#
getId( )
Get the CID of this entity. The CID will only be present in headers if a Content-ID header is present. |
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
|
#
_getHeaderFieldModel( mixed $field )
Get the model data (usually an array or a string) for $field. |
protected
|
|
protected
|
#
_getHeaderParameter( mixed $field, mixed $parameter )
Get the parameter value of $parameter on $field header. |
protected
|
#
_setHeaderParameter( mixed $field, mixed $parameter, mixed $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
|
Magic methods summary
Constants summary
Constants inherited from Swift_Mime_MimeEntity
LEVEL_ALTERNATIVE
,
LEVEL_MIXED
,
LEVEL_RELATED
,
LEVEL_TOP
Properties summary
private
mixed
|
$_headers |
#
A collection of Headers for this mime entity |
private
mixed
|
$_body |
#
The body as a string, or a stream |
private
mixed
|
$_encoder |
#
The encoder that encodes the body into a streamable format |
private
mixed
|
$_grammar |
#
The grammar to use for id validation |
private
mixed
|
$_boundary |
#
A mime bounary, if any is used |
private
array
|
$_compositeRanges |
#
Mime types to be used based on the nesting level |
private
array
|
$_compoundLevelFilters |
#
A set of filter rules to define what level an entity should be nested at |
private
integer
|
$_nestingLevel |
#
The nesting level of this entity |
private
mixed
|
$_cache |
#
A KeyCache instance used during encoding and streaming |
private
array
|
$_immediateChildren |
#
Direct descendants of this entity |
private
array
|
$_children |
#
All descendants of this entity |
private
integer
|
$_maxLineLength |
#
The maximum line length of the body of this entity |
private
array
|
$_alternativePartOrder |
#
The order in which alternative mime types should appear |
private
mixed
|
$_id |
#
The CID of this entity |
private
mixed
|
$_cacheKey |
#
The key used for accessing the cache |
protected
mixed
|
$_userContentType |