A MIME entity, in a multipart message.
package | Swift |
---|---|
subpackage | Mime |
author | Chris Corbyn |
__construct(\Swift_Mime_HeaderSet $headers, \Swift_Mime_ContentEncoder $encoder, \Swift_KeyCache $cache, \Swift_Mime_Grammar $grammar)
\Swift_Mime_HeaderSet
\Swift_Mime_ContentEncoder
\Swift_KeyCache
\Swift_Mime_Grammar
__destruct()
__toString() : string
charsetChanged(string $charset)
string
encoderChanged(\Swift_Mime_ContentEncoder $encoder)
\Swift_Mime_ContentEncoder
generateId() : string
string
getBody() : string
Returns NULL if no body has been set.
string
getBoundary() : string
string
getChildren() : array
These are not just the immediate children, but all children.
array
of Swift_Mime_EntitygetContentType() : string
string
getDescription() : string
This value comes from the Content-Description header if set.
string
getId() : string
The CID will only be present in headers if a Content-ID header is present.
string
getMaxLineLength() : int
int
getNestingLevel() : int
The lower the value, the more outermost the entity will be nested.
see | LEVEL_MIXED, LEVEL_RELATED, LEVEL_ALTERNATIVE |
---|
int
setBody(mixed $body, string $contentType) : \Swift_Mime_SimpleMimeEntity
setBoundary(string $boundary) : \Swift_Mime_SimpleMimeEntity
setChildren(array $children, int $compoundLevel) : \Swift_Mime_SimpleMimeEntity
This includes grandchildren.
array
Swiift_Mime_Entity instances
int
For internal use only
setDescription(string $description) : \Swift_Mime_SimpleMimeEntity
This method sets a value in the Content-ID header.
string
setEncoder(\Swift_Mime_ContentEncoder $encoder) : \Swift_Mime_SimpleMimeEntity
setMaxLineLength(int $length) : \Swift_Mime_SimpleMimeEntity
Though not enforced by the library, lines should not exceed 1000 chars.
int
toByteStream(\Swift_InputByteStream $is)
toString() : string
string
_clearCache()
_fixHeaders()
_getCache()
_getHeaderFieldModel($field)
_getHeaderParameter($field, $parameter)
_getIdField()
_setHeaderFieldModel($field, $model)
_setHeaderParameter($field, $parameter, $value)
getRandomId() : string
string
_assertValidBoundary($boundary)
_assertValidId(string $id)
_childSortAlgorithm($a, $b)
_createChild()
_getCompoundLevel($children)
_getNeededChildLevel($child, $compoundLevel)
_notifyCharsetChanged($charset)
_notifyEncoderChanged(\Swift_Mime_ContentEncoder $encoder)
_readStream(\Swift_OutputByteStream $os)
_setContentTypeInHeaders($type)
_setEncoding($encoding)
_setNestingLevel($level)
_sortChildren()
$_userContentType
$_alternativePartOrder
$_body
$_boundary
$_cache
$_cacheKey
$_children
$_compositeRanges
$_compoundLevelFilters
$_encoder
$_grammar
$_headers
$_id
$_immediateChildren
$_maxLineLength
$_nestingLevel
LEVEL_ALTERNATIVE
inherited_from | \Swift_Mime_MimeEntity::LEVEL_ALTERNATIVE |
---|
LEVEL_MIXED
inherited_from | \Swift_Mime_MimeEntity::LEVEL_MIXED |
---|
LEVEL_RELATED
inherited_from | \Swift_Mime_MimeEntity::LEVEL_RELATED |
---|
LEVEL_TOP
inherited_from | \Swift_Mime_MimeEntity::LEVEL_TOP |
---|