PHP 클래스 TippingCanoe\Imager\Service

파일 보기 프로젝트 열기: tippingcanoe/imager

보호된 프로퍼티들

프로퍼티 타입 설명
$app Illuminate\Foundation\Application
$currentDriver TippingCanoe\Imager\Storage\Driver
$imageRepository TippingCanoe\Imager\Repository\Image
$intervention Intervention\Image\ImageManager
$storageDrivers TippingCanoe\Imager\Storage\Driver[]

공개 메소드들

메소드 설명
__construct ( TippingCanoe\Imager\Repository\Image $imageRepository, Intervention\Image\ImageManager $intervention, Illuminate\Foundation\Application $app, array $storageDrivers )
batch ( array $operations, array $files = null, TippingCanoe\Imager\Model\Imageable $imageable = null )
delete ( Image $image, array $filters = [] )
deleteById ( $id, array $filters = [] )
deleteBySlot ( $slot, TippingCanoe\Imager\Model\Imageable $imageable = null )
getById ( integer $id ) : Image Simply retrieves an image by id.
getBySlot ( $slot, TippingCanoe\Imager\Model\Imageable $imageable = null ) : Image
getPublicUri ( Image $image, array $filters = [] ) : string
getPublicUriById ( integer $id, array $filters = [] ) : string Returns an image URI based on the id of the original.
getPublicUriBySlot ( string $slot, TippingCanoe\Imager\Model\Imageable $imageable = null, array $filters = [] ) : string | null Returns an image URI based on the slot and imageable.
moveToSlot ( Image $image, $slot )
saveFromFile ( File $file, TippingCanoe\Imager\Model\Imageable $imageable = null, array $attributes = [] ) : null Saves a new image from a file found on the server's filesystem.
saveFromUri ( string $uri, TippingCanoe\Imager\Model\Imageable $imageable = null, array $attributes = [] ) : null Saves a new image from a file available via any of the standard PHP supported schemes.
useDriver ( $abstract ) Select which driver Imager uses by default.

보호된 메소드들

메소드 설명
createImageRecord ( File $image, array $attributes = [] ) : Image Create the database entry for an image.
getDriver ( null $abstract = null ) : TippingCanoe\Imager\Storage\Driver Gets the current or specified driver.
runFilters ( File $file, Image $image, array $filters = [] )
saveFile ( File $file, Image $image, array $filters = [] ) Pass a file save into the current Driver.

메소드 상세

__construct() 공개 메소드

public __construct ( TippingCanoe\Imager\Repository\Image $imageRepository, Intervention\Image\ImageManager $intervention, Illuminate\Foundation\Application $app, array $storageDrivers )
$imageRepository TippingCanoe\Imager\Repository\Image
$intervention Intervention\Image\ImageManager
$app Illuminate\Foundation\Application
$storageDrivers array

batch() 공개 메소드

public batch ( array $operations, array $files = null, TippingCanoe\Imager\Model\Imageable $imageable = null )
$operations array
$files array
$imageable TippingCanoe\Imager\Model\Imageable

createImageRecord() 보호된 메소드

Create the database entry for an image.
protected createImageRecord ( File $image, array $attributes = [] ) : Image
$image Symfony\Component\HttpFoundation\File\File
$attributes array
리턴 TippingCanoe\Imager\Model\Image

delete() 공개 메소드

public delete ( Image $image, array $filters = [] )
$image TippingCanoe\Imager\Model\Image
$filters array

deleteById() 공개 메소드

public deleteById ( $id, array $filters = [] )
$id
$filters array

deleteBySlot() 공개 메소드

public deleteBySlot ( $slot, TippingCanoe\Imager\Model\Imageable $imageable = null )
$imageable TippingCanoe\Imager\Model\Imageable

getById() 공개 메소드

Simply retrieves an image by id.
public getById ( integer $id ) : Image
$id integer
리턴 TippingCanoe\Imager\Model\Image

getBySlot() 공개 메소드

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

getDriver() 보호된 메소드

Gets the current or specified driver.
protected getDriver ( null $abstract = null ) : TippingCanoe\Imager\Storage\Driver
$abstract null
리턴 TippingCanoe\Imager\Storage\Driver

getPublicUri() 공개 메소드

public getPublicUri ( Image $image, array $filters = [] ) : string
$image TippingCanoe\Imager\Model\Image
$filters array
리턴 string

getPublicUriById() 공개 메소드

Returns an image URI based on the id of the original.
public getPublicUriById ( integer $id, array $filters = [] ) : string
$id integer
$filters array
리턴 string

getPublicUriBySlot() 공개 메소드

Returns an image URI based on the slot and imageable.
public getPublicUriBySlot ( string $slot, TippingCanoe\Imager\Model\Imageable $imageable = null, array $filters = [] ) : string | null
$slot string
$imageable TippingCanoe\Imager\Model\Imageable
$filters array
리턴 string | null

moveToSlot() 공개 메소드

public moveToSlot ( Image $image, $slot )
$image TippingCanoe\Imager\Model\Image

runFilters() 보호된 메소드

protected runFilters ( File $file, Image $image, array $filters = [] )
$file Symfony\Component\HttpFoundation\File\File
$image TippingCanoe\Imager\Model\Image
$filters array

saveFile() 보호된 메소드

Pass a file save into the current Driver.
protected saveFile ( File $file, Image $image, array $filters = [] )
$file Symfony\Component\HttpFoundation\File\File
$image TippingCanoe\Imager\Model\Image
$filters array

saveFromFile() 공개 메소드

Saves a new image from a file found on the server's filesystem.
public saveFromFile ( File $file, TippingCanoe\Imager\Model\Imageable $imageable = null, array $attributes = [] ) : null
$file Symfony\Component\HttpFoundation\File\File
$imageable TippingCanoe\Imager\Model\Imageable
$attributes array
리턴 null

saveFromUri() 공개 메소드

Saves a new image from a file available via any of the standard PHP supported schemes.
public saveFromUri ( string $uri, TippingCanoe\Imager\Model\Imageable $imageable = null, array $attributes = [] ) : null
$uri string
$imageable TippingCanoe\Imager\Model\Imageable
$attributes array
리턴 null

useDriver() 공개 메소드

Select which driver Imager uses by default.
public useDriver ( $abstract )
$abstract

프로퍼티 상세

$app 보호되어 있는 프로퍼티

protected Application,Illuminate\Foundation $app
리턴 Illuminate\Foundation\Application

$currentDriver 보호되어 있는 프로퍼티

protected Driver,TippingCanoe\Imager\Storage $currentDriver
리턴 TippingCanoe\Imager\Storage\Driver

$imageRepository 보호되어 있는 프로퍼티

protected Image,TippingCanoe\Imager\Repository $imageRepository
리턴 TippingCanoe\Imager\Repository\Image

$intervention 보호되어 있는 프로퍼티

protected ImageManager,Intervention\Image $intervention
리턴 Intervention\Image\ImageManager

$storageDrivers 보호되어 있는 프로퍼티

protected Driver[],TippingCanoe\Imager\Storage $storageDrivers
리턴 TippingCanoe\Imager\Storage\Driver[]