interface AdapterInterface

Describes standard adapter interface

Methods

mixed
getDimensions()

Should return object dimensions, if possible.

string
toImage(array $size = array(), string $path)

Convert object to a preview image, if possible.

string
getType()

Return the unique string type for this adapter

Details

at line line 18
mixed getDimensions()

Should return object dimensions, if possible.

Return NULL otherwise

Return Value

mixed

at line line 34
string toImage(array $size = array(), string $path)

Convert object to a preview image, if possible.

Return NULL if not possible

Size array MUST allow for either height and/or width to be set without flipping the heck out.

Keep in mind the return string path is temporary and should be processed accordingly

Parameters

array $size Contains width, height keys
string $path Path to source file

Return Value

string Path to sized file

at line line 40
string getType()

Return the unique string type for this adapter

Return Value

string Type