PHP Class Neos\Media\Domain\Model\ThumbnailConfiguration

Afficher le fichier Open project: neos/neos-development-collection Class Usage Examples

Protected Properties

Свойство 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

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode Description
logDeprecation ( ) : void Log a deprecation message once

Method Details

__construct() public méthode

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 méthode

public getHash ( ) : string
Résultat string

getHeight() public méthode

public getHeight ( ) : integer
Résultat integer

getMaximumHeight() public méthode

public getMaximumHeight ( ) : integer
Résultat integer

getMaximumWidth() public méthode

public getMaximumWidth ( ) : integer
Résultat integer

getRatioMode() public méthode

public getRatioMode ( ) : boolean
Résultat boolean

getWidth() public méthode

public getWidth ( ) : integer
Résultat integer

isAsync() public méthode

public isAsync ( ) : boolean
Résultat boolean

isCroppingAllowed() public méthode

public isCroppingAllowed ( ) : boolean
Résultat boolean

isUpScalingAllowed() public méthode

public isUpScalingAllowed ( ) : boolean
Résultat boolean

logDeprecation() protected méthode

Log a deprecation message once
protected logDeprecation ( ) : void
Résultat void

toArray() public méthode

public toArray ( ) : array
Résultat array

Property Details

$allowCropping protected_oe property

protected bool $allowCropping
Résultat boolean

$allowUpScaling protected_oe property

protected bool $allowUpScaling
Résultat boolean

$async protected_oe property

protected bool $async
Résultat boolean

$behaviourFlag protected_oe property

protected string $behaviourFlag
Résultat string

$height protected_oe property

protected int $height
Résultat integer

$loggedDeprecation protected_oe static_oe property

protected static bool $loggedDeprecation
Résultat boolean

$logger protected_oe property

protected SystemLoggerInterface,Neos\Flow\Log $logger
Résultat Neos\Flow\Log\SystemLoggerInterface

$maximumHeight protected_oe property

protected int $maximumHeight
Résultat integer

$maximumWidth protected_oe property

protected int $maximumWidth
Résultat integer

$width protected_oe property

protected int $width
Résultat integer