PHP Class TippingCanoe\Imager\Repository\DbImage

Inheritance: implements TippingCanoe\Imager\Repository\Image
Mostrar archivo Open project: tippingcanoe/imager

Public Methods

Method Description
create ( $attributes ) : Image Creates a new Image object in the database.
getById ( integer $id ) : Image Gets an image object by it's id.
getBySlot ( $slot, TippingCanoe\Imager\Model\Imageable $imageable = null ) : Image

Method Details

create() public method

Creates a new Image object in the database.
public create ( $attributes ) : Image
$attributes
return TippingCanoe\Imager\Model\Image

getById() public method

Gets an image object by it's id.
public getById ( integer $id ) : Image
$id integer
return TippingCanoe\Imager\Model\Image

getBySlot() public method

public getBySlot ( $slot, TippingCanoe\Imager\Model\Imageable $imageable = null ) : Image
$slot
$imageable TippingCanoe\Imager\Model\Imageable
return TippingCanoe\Imager\Model\Image