PHP Class Neos\Media\Domain\Model\ThumbnailConfiguration

Show file Open project: neos/neos-development-collection Class Usage Examples

Protected Properties

Property Type Description
$allowCropping boolean
$allowUpScaling boolean
$async boolean
$behaviourFlag string
$height integer
$loggedDeprecation boolean
$logger Neos\Flow\Log\SystemLoggerInterface
$maximumHeight integer
$maximumWidth integer
$width integer

Public Methods

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

Protected Methods

Method Description
logDeprecation ( ) : void Log a deprecation message once

Method Details

__construct() public method

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 method

public getHash ( ) : string
return string

getHeight() public method

public getHeight ( ) : integer
return integer

getMaximumHeight() public method

public getMaximumHeight ( ) : integer
return integer

getMaximumWidth() public method

public getMaximumWidth ( ) : integer
return integer

getRatioMode() public method

public getRatioMode ( ) : boolean
return boolean

getWidth() public method

public getWidth ( ) : integer
return integer

isAsync() public method

public isAsync ( ) : boolean
return boolean

isCroppingAllowed() public method

public isCroppingAllowed ( ) : boolean
return boolean

isUpScalingAllowed() public method

public isUpScalingAllowed ( ) : boolean
return boolean

logDeprecation() protected method

Log a deprecation message once
protected logDeprecation ( ) : void
return void

toArray() public method

public toArray ( ) : array
return array

Property Details

$allowCropping protected property

protected bool $allowCropping
return boolean

$allowUpScaling protected property

protected bool $allowUpScaling
return boolean

$async protected property

protected bool $async
return boolean

$behaviourFlag protected property

protected string $behaviourFlag
return string

$height protected property

protected int $height
return integer

$loggedDeprecation protected static property

protected static bool $loggedDeprecation
return boolean

$logger protected property

protected SystemLoggerInterface,Neos\Flow\Log $logger
return Neos\Flow\Log\SystemLoggerInterface

$maximumHeight protected property

protected int $maximumHeight
return integer

$maximumWidth protected property

protected int $maximumWidth
return integer

$width protected property

protected int $width
return integer