PHP Class Gregwar\ImageBundle\Services\ImageHandling

Author: Gregwar ([email protected])
Mostrar archivo Open project: Gregwar/ImageBundle Class Usage Examples

Public Methods

Method Description
__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.

Private Methods

Method Description
createInstance ( string $file, string | null $w = null, string | null $h = null ) : Gregwar\ImageBundle\ImageHandler Creates an instance defining the cache directory.

Method Details

__construct() public method

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() public method

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

open() public method

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