PHP Класс Neos\Media\Domain\Model\ThumbnailConfiguration

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

Защищенные свойства (Protected)

Свойство Тип Описание
$allowCropping boolean
$allowUpScaling boolean
$async boolean
$behaviourFlag string
$height integer
$loggedDeprecation boolean
$logger Neos\Flow\Log\SystemLoggerInterface
$maximumHeight integer
$maximumWidth integer
$width integer

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

Метод Описание
__construct ( integer $width = null, integer $maximumWidth = null, integer $height = null, integer $maximumHeight = null, boolean $allowCropping = false, boolean $allowUpScaling = false, boolean $async = false )
getHash ( ) : string
getHeight ( ) : integer
getMaximumHeight ( ) : integer
getMaximumWidth ( ) : integer
getRatioMode ( ) : boolean
getWidth ( ) : integer
isAsync ( ) : boolean
isCroppingAllowed ( ) : boolean
isUpScalingAllowed ( ) : boolean
toArray ( ) : array

Защищенные методы

Метод Описание
logDeprecation ( ) : void Log a deprecation message once

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

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

public __construct ( integer $width = null, integer $maximumWidth = null, integer $height = null, integer $maximumHeight = null, boolean $allowCropping = false, boolean $allowUpScaling = false, boolean $async = false )
$width integer Desired width of the image
$maximumWidth integer Desired maximum width of the image
$height integer Desired height of the image
$maximumHeight integer Desired maximum height of the image
$allowCropping boolean Whether the image should be cropped if the given sizes would hurt the aspect ratio
$allowUpScaling boolean Whether the resulting image size might exceed the size of the original image
$async boolean Whether the thumbnail can be generated asynchronously

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

public getHash ( ) : string
Результат string

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

public getHeight ( ) : integer
Результат integer

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

public getMaximumHeight ( ) : integer
Результат integer

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

public getMaximumWidth ( ) : integer
Результат integer

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

public getRatioMode ( ) : boolean
Результат boolean

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

public getWidth ( ) : integer
Результат integer

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

public isAsync ( ) : boolean
Результат boolean

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

public isCroppingAllowed ( ) : boolean
Результат boolean

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

public isUpScalingAllowed ( ) : boolean
Результат boolean

logDeprecation() защищенный Метод

Log a deprecation message once
protected logDeprecation ( ) : void
Результат void

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

public toArray ( ) : array
Результат array

Описание свойств

$allowCropping защищенное свойство

protected bool $allowCropping
Результат boolean

$allowUpScaling защищенное свойство

protected bool $allowUpScaling
Результат boolean

$async защищенное свойство

protected bool $async
Результат boolean

$behaviourFlag защищенное свойство

protected string $behaviourFlag
Результат string

$height защищенное свойство

protected int $height
Результат integer

$loggedDeprecation защищенное статическое свойство

protected static bool $loggedDeprecation
Результат boolean

$logger защищенное свойство

protected SystemLoggerInterface,Neos\Flow\Log $logger
Результат Neos\Flow\Log\SystemLoggerInterface

$maximumHeight защищенное свойство

protected int $maximumHeight
Результат integer

$maximumWidth защищенное свойство

protected int $maximumWidth
Результат integer

$width защищенное свойство

protected int $width
Результат integer