PHP Класс Contao\CoreBundle\Image\PictureFactory

Автор: Martin Auswöger ([email protected])
Наследование: implements Contao\CoreBundle\Image\PictureFactoryInterface
Показать файл Открыть проект

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

Метод Описание
__construct ( Contao\Image\PictureGeneratorInterface $pictureGenerator, Contao\CoreBundle\Image\ImageFactoryInterface $imageFactory, Contao\CoreBundle\Framework\ContaoFrameworkInterface $framework, boolean $bypassCache, array $imagineOptions ) Constructor.
create ( $path, $size = null )
setDefaultDensities ( $densities )

Приватные методы

Метод Описание
addImageAttributes ( Contao\Image\PictureInterface $picture, array $attributes ) : Contao\Image\PictureInterface Adds the image attributes.
createConfig ( integer | array | null $size ) : array>\array Creates a picture configuration.
createConfigItem ( ImageSizeModel | ImageSizeItemModel | null $imageSize ) : Contao\Image\PictureConfigurationItem Creates a picture configuration item.

Описание методов

__construct() публичный Метод

Constructor.
public __construct ( Contao\Image\PictureGeneratorInterface $pictureGenerator, Contao\CoreBundle\Image\ImageFactoryInterface $imageFactory, Contao\CoreBundle\Framework\ContaoFrameworkInterface $framework, boolean $bypassCache, array $imagineOptions )
$pictureGenerator Contao\Image\PictureGeneratorInterface
$imageFactory Contao\CoreBundle\Image\ImageFactoryInterface
$framework Contao\CoreBundle\Framework\ContaoFrameworkInterface
$bypassCache boolean
$imagineOptions array

create() публичный Метод

public create ( $path, $size = null )

setDefaultDensities() публичный Метод

public setDefaultDensities ( $densities )