GalleryAdapter
class GalleryAdapter extends Adapter implements AdapterInterface
Base Gallery adapter. The Gallery adapter provides the placeholder attachment type for gallery containers.
Methods
Locate the first adapter that's able to handle a file.
Gallery adapter will always return false.
No description
Adapter type
Get the original file dimensions, if possible.
Convert to preview image
Override previewUrl method Return container's first child preview URL
Override originalUrl method Return container's first child original URL
Details
in Adapter at line line 28
static mixed
adapterFor(array $file, string $path)
Locate the first adapter that's able to handle a file.
Each adapter determines its ability to handle a particular file
at line line 24
static boolean
canHandle(array $file, string $temp_path)
Gallery adapter will always return false.
at line line 29
__construct($file = null, $temp_path = null)
at line line 37
string
getType()
Adapter type
at line line 50
mixed
getDimensions()
Get the original file dimensions, if possible.
Returns NULL otherwise
at line line 61
string
toImage(array $size = array(), string $path = false)
Convert to preview image
at line line 71
string
previewUrl($attachment)
Override previewUrl method Return container's first child preview URL
at line line 116
string
originalUrl($attachment)
Override originalUrl method Return container's first child original URL