PHP Class Swift_EmbeddedFile, Halite

Author: Chris Corbyn
Inheritance: extends Swift_Mime_EmbeddedFile
Afficher le fichier Open project: HaliteChallenge/Halite Class Usage Examples

Méthodes publiques

Méthode Description
__construct ( string | Swift_OutputByteStream $data = null, string $filename = null, string $contentType = null ) Create a new EmbeddedFile.
fromPath ( string $path ) : Swift_Mime_EmbeddedFile Create a new EmbeddedFile from a filesystem path.
newInstance ( string | Swift_OutputByteStream $data = null, string $filename = null, string $contentType = null ) : Swift_Mime_EmbeddedFile Create a new EmbeddedFile.

Method Details

__construct() public méthode

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 méthode

Create a new EmbeddedFile from a filesystem path.
public static fromPath ( string $path ) : Swift_Mime_EmbeddedFile
$path string
Résultat Swift_Mime_EmbeddedFile

newInstance() public static méthode

Create a new EmbeddedFile.
public static newInstance ( string | Swift_OutputByteStream $data = null, string $filename = null, string $contentType = null ) : Swift_Mime_EmbeddedFile
$data string | Swift_OutputByteStream
$filename string
$contentType string
Résultat Swift_Mime_EmbeddedFile