TYPO3
7.6
|
Private Attributes | |
$_mimeTypes = array() | |
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 |
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 inherited from Swift_Mime_SimpleMimeEntity | |
$_userContentType | |
An attachment, in a multipart message.
Definition at line 16 of file Mime/Attachment.php.
__construct | ( | Swift_Mime_HeaderSet | $headers, |
Swift_Mime_ContentEncoder | $encoder, | ||
Swift_KeyCache | $cache, | ||
Swift_Mime_Grammar | $grammar, | ||
$mimeTypes = array() |
|||
) |
Create a new Attachment with $headers, $encoder and $cache.
Swift_Mime_HeaderSet | $headers | |
Swift_Mime_ContentEncoder | $encoder | |
Swift_KeyCache | $cache | |
Swift_Mime_Grammar | $grammar | |
array | $mimeTypes | optional |
Definition at line 30 of file Mime/Attachment.php.
References Swift_Mime_SimpleMimeEntity\setContentType(), and setDisposition().
getDisposition | ( | ) |
Get the Content-Disposition of this attachment.
By default attachments have a disposition of "attachment".
Definition at line 57 of file Mime/Attachment.php.
References Swift_Mime_SimpleMimeEntity\_getHeaderFieldModel().
getFilename | ( | ) |
Get the filename of this attachment when downloaded.
Definition at line 85 of file Mime/Attachment.php.
References Swift_Mime_SimpleMimeEntity\_getHeaderParameter().
getNestingLevel | ( | ) |
Get the nesting level used for this attachment.
Always returns LEVEL_MIXED.
Implements Swift_Mime_MimeEntity.
Definition at line 45 of file Mime/Attachment.php.
getSize | ( | ) |
Get the file size of this attachment.
Definition at line 110 of file Mime/Attachment.php.
References Swift_Mime_SimpleMimeEntity\_getHeaderParameter().
setDisposition | ( | $disposition | ) |
Set the Content-Disposition of this attachment.
string | $disposition |
Definition at line 69 of file Mime/Attachment.php.
References Swift_Mime_SimpleMimeEntity\_setHeaderFieldModel(), and Swift_Mime_SimpleMimeEntity\getHeaders().
Referenced by Swift_Mime_EmbeddedFile\__construct(), and __construct().
setFile | ( | Swift_FileStream | $file, |
$contentType = null |
|||
) |
Set the file that this attachment is for.
Swift_FileStream | $file | |
string | $contentType | optional |
Definition at line 137 of file Mime/Attachment.php.
References Swift_FileStream\getPath(), Swift_Mime_SimpleMimeEntity\setBody(), Swift_Mime_SimpleMimeEntity\setContentType(), and setFilename().
setFilename | ( | $filename | ) |
Set the filename of this attachment.
string | $filename |
Definition at line 97 of file Mime/Attachment.php.
References $filename, and Swift_Mime_SimpleMimeEntity\_setHeaderParameter().
Referenced by Swift_Attachment\__construct(), Swift_EmbeddedFile\__construct(), and setFile().
setSize | ( | $size | ) |
Set the file size of this attachment.
int | $size |
Definition at line 122 of file Mime/Attachment.php.
References Swift_Mime_SimpleMimeEntity\_setHeaderParameter().
|
private |
Recognized MIME types
Definition at line 19 of file Mime/Attachment.php.