TYPO3
7.6
|
Protected Member Functions | |
_fixHeaders () | |
_setNestingLevel ($level) | |
_convertString ($string) | |
Protected Member Functions inherited from Swift_Mime_SimpleMimeEntity | |
_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 | |
$_userFormat | |
$_userCharset | |
$_userDelSp | |
Protected Attributes inherited from Swift_Mime_SimpleMimeEntity | |
$_userContentType | |
Private Attributes | |
$_nestingLevel = self::LEVEL_ALTERNATIVE | |
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 part, in a multipart message.
Definition at line 16 of file Mime/MimePart.php.
__construct | ( | Swift_Mime_HeaderSet | $headers, |
Swift_Mime_ContentEncoder | $encoder, | ||
Swift_KeyCache | $cache, | ||
Swift_Mime_Grammar | $grammar, | ||
$charset = null |
|||
) |
Create a new MimePart with $headers, $encoder and $cache.
Swift_Mime_HeaderSet | $headers | |
Swift_Mime_ContentEncoder | $encoder | |
Swift_KeyCache | $cache | |
Swift_Mime_Grammar | $grammar | |
string | $charset |
Definition at line 39 of file Mime/MimePart.php.
References setCharset(), and Swift_Mime_SimpleMimeEntity\setContentType().
|
protected |
Encode charset when charset is not utf-8
Definition at line 196 of file Mime/MimePart.php.
References elseif, and getCharset().
Referenced by setBody().
|
protected |
Fix the content-type and encoding of this entity
Definition at line 175 of file Mime/MimePart.php.
References Swift_Mime_SimpleMimeEntity\_setHeaderParameter(), Swift_Mime_SimpleMimeEntity\getChildren(), setCharset(), setDelSp(), and setFormat().
|
protected |
Set the nesting level of this entity
Definition at line 190 of file Mime/MimePart.php.
charsetChanged | ( | $charset | ) |
Receive notification that the charset has changed on this document, or a parent document.
string | $charset |
Implements Swift_Mime_CharsetObserver.
Definition at line 169 of file Mime/MimePart.php.
References setCharset().
getCharset | ( | ) |
Get the character set of this entity.
Definition at line 75 of file Mime/MimePart.php.
References Swift_Mime_SimpleMimeEntity\_getHeaderParameter().
Referenced by _convertString(), and Swift_Signers_SMimeSigner\createMessage().
getDelSp | ( | ) |
Test if delsp is being used for this entity.
Definition at line 129 of file Mime/MimePart.php.
References Swift_Mime_SimpleMimeEntity\_getHeaderParameter().
getFormat | ( | ) |
Get the format of this entity (i.e. flowed or fixed).
Definition at line 104 of file Mime/MimePart.php.
References Swift_Mime_SimpleMimeEntity\_getHeaderParameter().
getNestingLevel | ( | ) |
Get the nesting level of this entity.
Implements Swift_Mime_MimeEntity.
Definition at line 158 of file Mime/MimePart.php.
References $_nestingLevel.
setBody | ( | $body, | |
$contentType = null , |
|||
$charset = null |
|||
) |
Set the body of this entity, either as a string, or as an instance of Swift_OutputByteStream.
mixed | $body | |
string | $contentType | optional |
string | $charset | optional |
Definition at line 58 of file Mime/MimePart.php.
References _convertString(), and setCharset().
Referenced by Swift_MimePart\__construct(), Swift_Message\__construct(), Swift_Message\restoreMessage(), Swift_Message\saveMessage(), and Swift_Signers_SMimeSigner\streamToMime().
setCharset | ( | $charset | ) |
Set the character set of this entity.
string | $charset |
Definition at line 87 of file Mime/MimePart.php.
References Swift_Mime_SimpleMimeEntity\_clearCache(), and Swift_Mime_SimpleMimeEntity\_setHeaderParameter().
Referenced by Swift_MimePart\__construct(), __construct(), Swift_Message\__construct(), _fixHeaders(), charsetChanged(), and setBody().
setDelSp | ( | $delsp = true | ) |
Turn delsp on or off for this entity.
bool | $delsp |
Definition at line 143 of file Mime/MimePart.php.
References Swift_Mime_SimpleMimeEntity\_setHeaderParameter().
Referenced by _fixHeaders().
setFormat | ( | $format | ) |
Set the format of this entity (flowed or fixed).
string | $format |
Definition at line 116 of file Mime/MimePart.php.
References Swift_Mime_SimpleMimeEntity\_setHeaderParameter().
Referenced by _fixHeaders().
|
private |
The nesting level of this MimePart
Definition at line 28 of file Mime/MimePart.php.
Referenced by getNestingLevel().
|
protected |
The charset last specified by the user
Definition at line 22 of file Mime/MimePart.php.
|
protected |
The delsp parameter last specified by the user
Definition at line 25 of file Mime/MimePart.php.
|
protected |
The format parameter last specified by the user
Definition at line 19 of file Mime/MimePart.php.