PHP 클래스 Contao\CoreBundle\Image\ImageSizes

파일 보기 프로젝트 열기: contao/core-bundle 1 사용 예제들

공개 메소드들

메소드 설명
__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