PHP Класс Gregwar\ImageBundle\Services\ImageHandling

Автор: Gregwar ([email protected])
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
__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