PHP Класс Swift_Attachment, Halite

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

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

Метод Описание
__construct ( string | Swift_OutputByteStream $data = null, string $filename = null, string $contentType = null ) Create a new Attachment.
fromPath ( string $path, string $contentType = null ) : Swift_Mime_Attachment Create a new Attachment from a filesystem path.
newInstance ( string | Swift_OutputByteStream $data = null, string $filename = null, string $contentType = null ) : Swift_Mime_Attachment Create a new Attachment.

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

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

Details may be optionally provided to the constructor.
public __construct ( string | Swift_OutputByteStream $data = null, string $filename = null, string $contentType = null )
$data string | Swift_OutputByteStream
$filename string
$contentType string

fromPath() публичный статический Метод

Create a new Attachment from a filesystem path.
public static fromPath ( string $path, string $contentType = null ) : Swift_Mime_Attachment
$path string
$contentType string optional
Результат Swift_Mime_Attachment

newInstance() публичный статический Метод

Create a new Attachment.
public static newInstance ( string | Swift_OutputByteStream $data = null, string $filename = null, string $contentType = null ) : Swift_Mime_Attachment
$data string | Swift_OutputByteStream
$filename string
$contentType string
Результат Swift_Mime_Attachment