AbstractAdapter
in package
implements
AdapterInterface
Base adapter implementation to handle image manipulation.
Interfaces, Classes, Traits and Enums
- AdapterInterface
- Basic interface for all image adapters.
Table of Contents
- $resource : object|resource|null
- __construct() : mixed
- Creates new instance of the image adapter.
- destroy() : void
- Destroys the image.
- getResource() : resource|object|null
- Get the raw resource.
- load() : AdapterInterface
- Loads an image resource.
- loadFromUrl() : AdapterInterface
- Loads an image from given URL.
Properties
$resource
protected
object|resource|null
$resource
Image resource/object of current image adapter
Methods
__construct()
Creates new instance of the image adapter.
public
__construct() : mixed
Return values
mixed —destroy()
Destroys the image.
public
destroy() : void
Return values
void —getResource()
Get the raw resource.
public
getResource() : resource|object|null
Return values
resource|object|null —load()
Loads an image resource.
public
load(mixed $resource) : AdapterInterface
Parameters
- $resource : mixed
Return values
AdapterInterface —loadFromUrl()
Loads an image from given URL.
public
loadFromUrl(string $url) : AdapterInterface
Parameters
- $url : string