PHP 클래스 Gregwar\ImageBundle\Services\ImageHandling

저자: Gregwar ([email protected])
파일 보기 프로젝트 열기: Gregwar/ImageBundle 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( string $cacheDirectory, integer $cacheDirMode, string $handlerClass, Symfony\Component\DependencyInjection\ContainerInterface $container, Symfony\Component\HttpKernel\KernelInterface | Symfony\Component\Config\FileLocatorInterface $fileLocator, boolean $throwException, string $fallbackImage )
create ( string $w, string $h ) : Gregwar\ImageBundle\ImageHandler Get a new image.
open ( string $file ) : Gregwar\ImageBundle\ImageHandler Get a manipulable image instance.

비공개 메소드들

메소드 설명
createInstance ( string $file, string | null $w = null, string | null $h = null ) : Gregwar\ImageBundle\ImageHandler Creates an instance defining the cache directory.

메소드 상세

__construct() 공개 메소드

public __construct ( string $cacheDirectory, integer $cacheDirMode, string $handlerClass, Symfony\Component\DependencyInjection\ContainerInterface $container, Symfony\Component\HttpKernel\KernelInterface | Symfony\Component\Config\FileLocatorInterface $fileLocator, boolean $throwException, string $fallbackImage )
$cacheDirectory string
$cacheDirMode integer
$handlerClass string
$container Symfony\Component\DependencyInjection\ContainerInterface
$fileLocator Symfony\Component\HttpKernel\KernelInterface | Symfony\Component\Config\FileLocatorInterface
$throwException boolean
$fallbackImage string

create() 공개 메소드

Get a new image.
public create ( string $w, string $h ) : Gregwar\ImageBundle\ImageHandler
$w string the width
$h string the height
리턴 Gregwar\ImageBundle\ImageHandler a manipulable image instance

open() 공개 메소드

Get a manipulable image instance.
public open ( string $file ) : Gregwar\ImageBundle\ImageHandler
$file string the image path
리턴 Gregwar\ImageBundle\ImageHandler a manipulable image instance