PHP Class Swift_Attachment, Halite

Author: Chris Corbyn
Inheritance: extends Swift_Mime_Attachment
Mostrar archivo Open project: HaliteChallenge/Halite Class Usage Examples

Public Methods

Method Description
__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.

Method Details

__construct() public method

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() public static method

Create a new Attachment from a filesystem path.
public static fromPath ( string $path, string $contentType = null ) : Swift_Mime_Attachment
$path string
$contentType string optional
return Swift_Mime_Attachment

newInstance() public static method

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
return Swift_Mime_Attachment