TYPO3
7.6
|
Public Member Functions | |
__construct (Swift_Mime_HeaderSet $headers, Swift_Mime_ContentEncoder $encoder, Swift_KeyCache $cache, Swift_Mime_Grammar $grammar) | |
generateId () | |
getHeaders () | |
getNestingLevel () | |
getContentType () | |
setContentType ($type) | |
getId () | |
setId ($id) | |
getDescription () | |
setDescription ($description) | |
getMaxLineLength () | |
setMaxLineLength ($length) | |
getChildren () | |
setChildren (array $children, $compoundLevel=null) | |
getBody () | |
setBody ($body, $contentType=null) | |
getEncoder () | |
setEncoder (Swift_Mime_ContentEncoder $encoder) | |
getBoundary () | |
setBoundary ($boundary) | |
charsetChanged ($charset) | |
encoderChanged (Swift_Mime_ContentEncoder $encoder) | |
toString () | |
__toString () | |
toByteStream (Swift_InputByteStream $is) | |
__destruct () | |
__clone () | |
Public Member Functions inherited from Swift_Mime_MimeEntity | |
setChildren (array $children) | |
Protected Member Functions | |
_bodyToString () | |
_bodyToByteStream (Swift_InputByteStream $is) | |
_getIdField () | |
_getHeaderFieldModel ($field) | |
_setHeaderFieldModel ($field, $model) | |
_getHeaderParameter ($field, $parameter) | |
_setHeaderParameter ($field, $parameter, $value) | |
_fixHeaders () | |
_getCache () | |
_getGrammar () | |
_clearCache () | |
getRandomId () | |
Protected Attributes | |
$_userContentType | |
Private Member Functions | |
_readStream (Swift_OutputByteStream $os) | |
_setEncoding ($encoding) | |
_assertValidBoundary ($boundary) | |
_setContentTypeInHeaders ($type) | |
_setNestingLevel ($level) | |
_getCompoundLevel ($children) | |
_getNeededChildLevel ($child, $compoundLevel) | |
_createChild () | |
_notifyEncoderChanged (Swift_Mime_ContentEncoder $encoder) | |
_notifyCharsetChanged ($charset) | |
_sortChildren () | |
_childSortAlgorithm ($a, $b) | |
_assertValidId ($id) | |
Private Attributes | |
$_headers | |
$_body | |
$_encoder | |
$_grammar | |
$_boundary | |
$_compositeRanges | |
$_compoundLevelFilters = array() | |
$_nestingLevel = self::LEVEL_ALTERNATIVE | |
$_cache | |
$_immediateChildren = array() | |
$_children = array() | |
$_maxLineLength = 78 | |
$_alternativePartOrder | |
$_id | |
$_cacheKey | |
Additional Inherited Members | |
Public Attributes inherited from Swift_Mime_MimeEntity | |
const | LEVEL_TOP = 16 |
const | LEVEL_MIXED = 256 |
const | LEVEL_ALTERNATIVE = 4096 |
const | LEVEL_RELATED = 65536 |
A MIME entity, in a multipart message.
Definition at line 16 of file SimpleMimeEntity.php.
__construct | ( | Swift_Mime_HeaderSet | $headers, |
Swift_Mime_ContentEncoder | $encoder, | ||
Swift_KeyCache | $cache, | ||
Swift_Mime_Grammar | $grammar | ||
) |
Create a new SimpleMimeEntity with $headers, $encoder and $cache.
Swift_Mime_HeaderSet | $headers | |
Swift_Mime_ContentEncoder | $encoder | |
Swift_KeyCache | $cache | |
Swift_Mime_Grammar | $grammar |
Definition at line 81 of file SimpleMimeEntity.php.
References getRandomId(), and setEncoder().
__destruct | ( | ) |
Empties it's own contents from the cache.
Definition at line 828 of file SimpleMimeEntity.php.
__clone | ( | ) |
Make a deep copy of object.
Definition at line 856 of file SimpleMimeEntity.php.
References $_encoder, $_headers, and setChildren().
__toString | ( | ) |
Returns a string representation of this object.
Definition at line 517 of file SimpleMimeEntity.php.
References toString().
|
private |
Definition at line 717 of file SimpleMimeEntity.php.
Referenced by setBoundary().
|
private |
Throws an Exception if the id passed does not comply with RFC 2822.
string | $id |
Swift_RfcComplianceException |
Definition at line 840 of file SimpleMimeEntity.php.
Referenced by getRandomId().
|
protected |
Write this entire entity to a Swift_InputByteStream.
Swift_InputByteStream |
Definition at line 540 of file SimpleMimeEntity.php.
References Swift_InputByteStream\bind(), getBoundary(), getMaxLineLength(), Swift_InputByteStream\unbind(), and Swift_InputByteStream\write().
Referenced by Swift_Message\doSign(), and toByteStream().
|
protected |
Get this entire entity as a string.
Definition at line 481 of file SimpleMimeEntity.php.
References getBody(), getMaxLineLength(), and Swift_KeyCache\MODE_WRITE.
Referenced by toString().
|
private |
Definition at line 807 of file SimpleMimeEntity.php.
|
protected |
Empty the KeyCache for this entity.
Definition at line 673 of file SimpleMimeEntity.php.
Referenced by setBody(), Swift_Mime_MimePart\setCharset(), and setEncoder().
|
private |
Definition at line 768 of file SimpleMimeEntity.php.
References $_cache, $_encoder, and $_grammar.
Referenced by setChildren().
|
protected |
Re-evaluate what content type and encoding should be used on this entity.
Definition at line 637 of file SimpleMimeEntity.php.
References _setEncoding(), _setHeaderParameter(), and getBoundary().
Referenced by setChildren().
|
protected |
Get the KeyCache used in this entity.
Definition at line 655 of file SimpleMimeEntity.php.
References $_cache.
Referenced by Swift_Mime_SimpleMessage\_becomeMimePart().
|
private |
Definition at line 738 of file SimpleMimeEntity.php.
Referenced by setChildren().
|
protected |
Get the grammar used for validation.
Definition at line 665 of file SimpleMimeEntity.php.
References $_grammar.
Referenced by Swift_Mime_SimpleMessage\_becomeMimePart().
|
protected |
Get the model data (usually an array or a string) for $field.
Definition at line 589 of file SimpleMimeEntity.php.
Referenced by Swift_Mime_SimpleMessage\getBcc(), Swift_Mime_SimpleMessage\getCc(), getContentType(), Swift_Mime_SimpleMessage\getDate(), getDescription(), Swift_Mime_Attachment\getDisposition(), Swift_Mime_SimpleMessage\getFrom(), getId(), Swift_Mime_SimpleMessage\getPriority(), Swift_Mime_SimpleMessage\getReadReceiptTo(), Swift_Mime_SimpleMessage\getReplyTo(), Swift_Mime_SimpleMessage\getReturnPath(), Swift_Mime_SimpleMessage\getSender(), Swift_Mime_SimpleMessage\getSubject(), and Swift_Mime_SimpleMessage\getTo().
|
protected |
Get the parameter value of $parameter on $field header.
Definition at line 613 of file SimpleMimeEntity.php.
Referenced by Swift_Mime_MimePart\getCharset(), Swift_Mime_MimePart\getDelSp(), Swift_Mime_Attachment\getFilename(), Swift_Mime_MimePart\getFormat(), and Swift_Mime_Attachment\getSize().
|
protected |
Get the name of the header that provides the ID of this entity.
Definition at line 581 of file SimpleMimeEntity.php.
|
private |
Definition at line 748 of file SimpleMimeEntity.php.
Referenced by setChildren().
|
private |
Definition at line 781 of file SimpleMimeEntity.php.
Referenced by charsetChanged().
|
private |
Definition at line 774 of file SimpleMimeEntity.php.
Referenced by encoderChanged(), and setEncoder().
|
private |
Definition at line 698 of file SimpleMimeEntity.php.
References Swift_OutputByteStream\read(), and Swift_OutputByteStream\setReadPointer().
Referenced by getBody().
|
private |
Definition at line 726 of file SimpleMimeEntity.php.
References _setHeaderFieldModel().
Referenced by setChildren(), and setContentType().
|
private |
Definition at line 710 of file SimpleMimeEntity.php.
References _setHeaderFieldModel().
Referenced by _fixHeaders(), and setEncoder().
|
protected |
Set the model data for $field.
Definition at line 599 of file SimpleMimeEntity.php.
Referenced by _setContentTypeInHeaders(), _setEncoding(), Swift_Mime_SimpleMessage\setBcc(), Swift_Mime_SimpleMessage\setCc(), Swift_Mime_SimpleMessage\setDate(), setDescription(), Swift_Mime_Attachment\setDisposition(), Swift_Mime_SimpleMessage\setFrom(), setId(), 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().
|
protected |
Set the parameter value of $parameter on $field header.
Definition at line 623 of file SimpleMimeEntity.php.
Referenced by Swift_Mime_MimePart\_fixHeaders(), _fixHeaders(), Swift_Mime_MimePart\setCharset(), Swift_Mime_MimePart\setDelSp(), Swift_Mime_Attachment\setFilename(), Swift_Mime_MimePart\setFormat(), and Swift_Mime_Attachment\setSize().
|
private |
Definition at line 733 of file SimpleMimeEntity.php.
|
private |
Definition at line 790 of file SimpleMimeEntity.php.
Referenced by setChildren().
charsetChanged | ( | $charset | ) |
Receive notification that the charset of this entity, or a parent entity has changed.
string | $charset |
Implements Swift_Mime_CharsetObserver.
Definition at line 447 of file SimpleMimeEntity.php.
References _notifyCharsetChanged().
encoderChanged | ( | Swift_Mime_ContentEncoder | $encoder | ) |
Receive notification that the encoder of this entity or a parent entity has changed.
Swift_Mime_ContentEncoder | $encoder |
Implements Swift_Mime_EncodingObserver.
Definition at line 458 of file SimpleMimeEntity.php.
References _notifyEncoderChanged().
generateId | ( | ) |
Generate a new Content-ID or Message-ID for this MIME entity.
Definition at line 120 of file SimpleMimeEntity.php.
References $_id, getRandomId(), and setId().
getBody | ( | ) |
Get the body of this entity as a string.
Implements Swift_Mime_MimeEntity.
Definition at line 350 of file SimpleMimeEntity.php.
References $_body, and _readStream().
Referenced by _bodyToString(), and Swift_Signers_SMimeSigner\createMessage().
getBoundary | ( | ) |
Get the boundary used to separate children in this entity.
Definition at line 415 of file SimpleMimeEntity.php.
References $_boundary.
Referenced by _bodyToByteStream(), and _fixHeaders().
getChildren | ( | ) |
Get all children added to this entity.
Implements Swift_Mime_MimeEntity.
Definition at line 268 of file SimpleMimeEntity.php.
References $_children.
Referenced by Swift_Mime_MimePart\_fixHeaders(), and Swift_Signers_SMimeSigner\createMessage().
getContentType | ( | ) |
Get the Content-type of this entity.
Implements Swift_Mime_MimeEntity.
Definition at line 154 of file SimpleMimeEntity.php.
References _getHeaderFieldModel().
Referenced by Swift_Signers_SMimeSigner\createMessage().
getDescription | ( | ) |
Get the description of this entity.
This value comes from the Content-Description header if set.
Definition at line 214 of file SimpleMimeEntity.php.
References _getHeaderFieldModel().
getEncoder | ( | ) |
Get the encoder used for the body of this entity.
Definition at line 385 of file SimpleMimeEntity.php.
References $_encoder.
Referenced by Swift_Mime_SimpleMessage\_becomeMimePart().
getHeaders | ( | ) |
Get the Swift_Mime_HeaderSet for this entity.
Implements Swift_Mime_MimeEntity.
Definition at line 132 of file SimpleMimeEntity.php.
References $_headers.
Referenced by Swift_Mime_Attachment\setDisposition(), and Swift_Signers_SMimeSigner\streamToMime().
getId | ( | ) |
Get the CID of this entity.
The CID will only be present in headers if a Content-ID header is present.
Implements Swift_Mime_MimeEntity.
Definition at line 183 of file SimpleMimeEntity.php.
References $_id, _getHeaderFieldModel(), and _getIdField().
Referenced by Swift_Mime_EmbeddedFile\__construct().
getMaxLineLength | ( | ) |
Get the maximum line length of the body of this entity.
Definition at line 242 of file SimpleMimeEntity.php.
References $_maxLineLength.
Referenced by _bodyToByteStream(), and _bodyToString().
getNestingLevel | ( | ) |
Get the nesting level of this entity.
Implements Swift_Mime_MimeEntity.
Definition at line 144 of file SimpleMimeEntity.php.
References $_nestingLevel.
|
protected |
Returns a random Content-ID or Message-ID.
Definition at line 683 of file SimpleMimeEntity.php.
References _assertValidId().
Referenced by __construct(), and generateId().
setBody | ( | $body, | |
$contentType = null |
|||
) |
Set the body of this entity, either as a string, or as an instance of Swift_OutputByteStream.
mixed | $body | |
string | $contentType | optional |
Implements Swift_Mime_MimeEntity.
Definition at line 366 of file SimpleMimeEntity.php.
References _clearCache(), and setContentType().
Referenced by Swift_Attachment\__construct(), Swift_EmbeddedFile\__construct(), and Swift_Mime_Attachment\setFile().
setBoundary | ( | $boundary | ) |
Set the boundary used to separate children in this entity.
string | $boundary |
Swift_RfcComplianceException |
Definition at line 433 of file SimpleMimeEntity.php.
References _assertValidBoundary().
Referenced by Swift_Signers_SMimeSigner\streamToMime().
setChildren | ( | array | $children, |
$compoundLevel = null |
|||
) |
Set all children of this entity.
Swift_Mime_MimeEntity[] | $children | |
int | $compoundLevel | For internal use only |
Definition at line 281 of file SimpleMimeEntity.php.
References $_userContentType, _createChild(), _fixHeaders(), _getCompoundLevel(), _getNeededChildLevel(), _setContentTypeInHeaders(), _sortChildren(), and elseif.
Referenced by __clone(), Swift_Signers_SMimeSigner\createMessage(), and Swift_Signers_SMimeSigner\signMessage().
setContentType | ( | $type | ) |
Set the Content-type of this entity.
string | $type |
Definition at line 166 of file SimpleMimeEntity.php.
References _setContentTypeInHeaders().
Referenced by Swift_Attachment\__construct(), Swift_EmbeddedFile\__construct(), Swift_MimePart\__construct(), Swift_Mime_Attachment\__construct(), Swift_Mime_MimePart\__construct(), Swift_Message\__construct(), setBody(), Swift_Mime_Attachment\setFile(), and Swift_Signers_SMimeSigner\streamToMime().
setDescription | ( | $description | ) |
Set the description of this entity.
This method sets a value in the Content-ID header.
string | $description |
Definition at line 228 of file SimpleMimeEntity.php.
References _setHeaderFieldModel().
setEncoder | ( | Swift_Mime_ContentEncoder | $encoder | ) |
Set the encoder used for the body of this entity.
Swift_Mime_ContentEncoder | $encoder |
Definition at line 397 of file SimpleMimeEntity.php.
References _clearCache(), _notifyEncoderChanged(), _setEncoding(), and Swift_Mime_ContentEncoder\getName().
Referenced by __construct(), and Swift_Signers_SMimeSigner\signMessage().
setId | ( | $id | ) |
Set the CID of this entity.
string | $id |
Definition at line 197 of file SimpleMimeEntity.php.
References _getIdField(), and _setHeaderFieldModel().
Referenced by Swift_Mime_EmbeddedFile\__construct(), Swift_Mime_SimpleMessage\__construct(), and generateId().
setMaxLineLength | ( | $length | ) |
Set the maximum line length of lines in this body.
Though not enforced by the library, lines should not exceed 1000 chars.
int | $length |
Definition at line 256 of file SimpleMimeEntity.php.
toByteStream | ( | Swift_InputByteStream | $is | ) |
Write this entire entity to a {
Swift_InputByteStream |
Implements Swift_Mime_MimeEntity.
Definition at line 527 of file SimpleMimeEntity.php.
References _bodyToByteStream(), Swift_InputByteStream\commit(), and Swift_InputByteStream\write().
toString | ( | ) |
Get this entire entity as a string.
Implements Swift_Mime_MimeEntity.
Definition at line 468 of file SimpleMimeEntity.php.
References _bodyToString().
Referenced by __toString().
|
private |
The order in which alternative mime types should appear
Definition at line 59 of file SimpleMimeEntity.php.
|
private |
The body as a string, or a stream
Definition at line 22 of file SimpleMimeEntity.php.
Referenced by getBody().
|
private |
A mime boundary, if any is used
Definition at line 31 of file SimpleMimeEntity.php.
Referenced by getBoundary().
|
private |
A KeyCache instance used during encoding and streaming
Definition at line 47 of file SimpleMimeEntity.php.
Referenced by _createChild(), and _getCache().
|
private |
The key used for accessing the cache
Definition at line 69 of file SimpleMimeEntity.php.
|
private |
All descendants of this entity
Definition at line 53 of file SimpleMimeEntity.php.
Referenced by getChildren().
|
private |
Mime types to be used based on the nesting level
Definition at line 34 of file SimpleMimeEntity.php.
|
private |
A set of filter rules to define what level an entity should be nested at
Definition at line 41 of file SimpleMimeEntity.php.
|
private |
The encoder that encodes the body into a streamable format
Definition at line 25 of file SimpleMimeEntity.php.
Referenced by __clone(), _createChild(), and getEncoder().
|
private |
The grammar to use for id validation
Definition at line 28 of file SimpleMimeEntity.php.
Referenced by _createChild(), and _getGrammar().
|
private |
A collection of Headers for this mime entity
Definition at line 19 of file SimpleMimeEntity.php.
Referenced by __clone(), and getHeaders().
|
private |
The CID of this entity
Definition at line 66 of file SimpleMimeEntity.php.
Referenced by generateId(), and getId().
|
private |
Direct descendants of this entity
Definition at line 50 of file SimpleMimeEntity.php.
|
private |
The maximum line length of the body of this entity
Definition at line 56 of file SimpleMimeEntity.php.
Referenced by getMaxLineLength().
|
private |
The nesting level of this entity
Definition at line 44 of file SimpleMimeEntity.php.
Referenced by getNestingLevel().
|
protected |
Definition at line 71 of file SimpleMimeEntity.php.
Referenced by setChildren().