PHP Class Swift_Image, Halite

Author: Chris Corbyn
Inheritance: extends Swift_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_Image Create a new Image from a filesystem path.
newInstance ( string | Swift_OutputByteStream $data = null, string $filename = null, string $contentType = null ) : Swift_Image Create a new Image.

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 Image from a filesystem path.
public static fromPath ( string $path ) : Swift_Image
$path string
Résultat Swift_Image

newInstance() public static méthode

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