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

Показать файл Открыть проект Примеры использования класса

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

Метод Описание
__construct ( Doctrine\DBAL\Connection $connection, Symfony\Component\EventDispatcher\EventDispatcherInterface $eventDispatcher, Contao\CoreBundle\Framework\ContaoFrameworkInterface $framework ) Constructor.
getAllOptions ( ) : array Returns the image sizes as options suitable for widgets.
getOptionsForUser ( BackendUser $user ) : array Returns the image sizes for the given user suitable for widgets.

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

Метод Описание
filterImageSizes ( array $sizes, array $allowedSizes, array &$filteredSizes, string $group ) Filters image sizes.
filterOptions ( array $allowedSizes ) : array Filters the options by the given allowed sizes and returns the result.
filterResizeModes ( array $sizes, array $allowedSizes, array &$filteredSizes, string $group ) Filters resize modes.
loadOptions ( ) Loads the options from the database.

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

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

Constructor.
public __construct ( Doctrine\DBAL\Connection $connection, Symfony\Component\EventDispatcher\EventDispatcherInterface $eventDispatcher, Contao\CoreBundle\Framework\ContaoFrameworkInterface $framework )
$connection Doctrine\DBAL\Connection
$eventDispatcher Symfony\Component\EventDispatcher\EventDispatcherInterface
$framework Contao\CoreBundle\Framework\ContaoFrameworkInterface

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

Returns the image sizes as options suitable for widgets.
public getAllOptions ( ) : array
Результат array

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

Returns the image sizes for the given user suitable for widgets.
public getOptionsForUser ( BackendUser $user ) : array
$user Contao\BackendUser
Результат array