\Ceo\Core\AdaptersAdapterInterface

Describes standard adapter interface

Summary

Methods
Constants
getDimensions()
toImage()
getType()
No constants found
No protected methods found
N/A
No private methods found
N/A

Methods

getDimensions()

getDimensions() : mixed

Should return object dimensions, if possible.

Return NULL otherwise

Returns

mixed

toImage()

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

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

Returns

string —

Path to sized file

getType()

getType() : string

Return the unique string type for this adapter

Returns

string —

Type