PHP Class Swift_Image, Halite

Author: Chris Corbyn
Inheritance: extends Swift_EmbeddedFile
Mostra file 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 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 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 Image from a filesystem path.
public static fromPath ( string $path ) : Swift_Image
$path string
return Swift_Image

newInstance() public static method

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