PHP Класс Swift_Mime_Attachment, Halite

Автор: Chris Corbyn
Наследование: extends Swift_Mime_SimpleMimeEntity
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
__construct ( Swift_Mime_HeaderSet $headers, Swift_Mime_ContentEncoder $encoder, Swift_KeyCache $cache, Swift_Mime_Grammar $grammar, array $mimeTypes = [] ) Create a new Attachment with $headers, $encoder and $cache.
getDisposition ( ) : string Get the Content-Disposition of this attachment.
getFilename ( ) : string Get the filename of this attachment when downloaded.
getNestingLevel ( ) : integer Get the nesting level used for this attachment.
getSize ( ) : integer Get the file size of this attachment.
setDisposition ( string $disposition ) : Swift_Mime_Attachment Set the Content-Disposition of this attachment.
setFile ( Swift_FileStream $file, string $contentType = null ) : Swift_Mime_Attachment Set the file that this attachment is for.
setFilename ( string $filename ) : Swift_Mime_Attachment Set the filename of this attachment.
setSize ( integer $size ) : Swift_Mime_Attachment Set the file size of this attachment.

Описание методов

__construct() публичный Метод

Create a new Attachment with $headers, $encoder and $cache.
public __construct ( Swift_Mime_HeaderSet $headers, Swift_Mime_ContentEncoder $encoder, Swift_KeyCache $cache, Swift_Mime_Grammar $grammar, array $mimeTypes = [] )
$headers Swift_Mime_HeaderSet
$encoder Swift_Mime_ContentEncoder
$cache Swift_KeyCache
$grammar Swift_Mime_Grammar
$mimeTypes array optional

getDisposition() публичный Метод

By default attachments have a disposition of "attachment".
public getDisposition ( ) : string
Результат string

getFilename() публичный Метод

Get the filename of this attachment when downloaded.
public getFilename ( ) : string
Результат string

getNestingLevel() публичный Метод

Always returns {@link LEVEL_MIXED}.
public getNestingLevel ( ) : integer
Результат integer

getSize() публичный Метод

Get the file size of this attachment.
public getSize ( ) : integer
Результат integer

setDisposition() публичный Метод

Set the Content-Disposition of this attachment.
public setDisposition ( string $disposition ) : Swift_Mime_Attachment
$disposition string
Результат Swift_Mime_Attachment

setFile() публичный Метод

Set the file that this attachment is for.
public setFile ( Swift_FileStream $file, string $contentType = null ) : Swift_Mime_Attachment
$file Swift_FileStream
$contentType string optional
Результат Swift_Mime_Attachment

setFilename() публичный Метод

Set the filename of this attachment.
public setFilename ( string $filename ) : Swift_Mime_Attachment
$filename string
Результат Swift_Mime_Attachment

setSize() публичный Метод

Set the file size of this attachment.
public setSize ( integer $size ) : Swift_Mime_Attachment
$size integer
Результат Swift_Mime_Attachment