CropVariantCollection
class \
Table of Contents
Properties
Methods
- __construct() : mixed
- __toString() : mixed
- applyRatioRestrictionToSelectedCropArea() : CropVariantCollection
- asArray() : array
- create() : CropVariantCollection
- getCropArea() : Area
- getFocusArea() : Area
- addCropVariant() : mixed
- createEmpty() : CropVariantCollection
- setCropVariants() : mixed
Properties
$cropVariants
protected
CropVariant[]
$cropVariants
Methods
__construct()
public
__construct(CropVariant[] $cropVariants) : mixed
Parameters
- $cropVariants : CropVariant[]
Tags
__toString()
public
__toString() : mixed
applyRatioRestrictionToSelectedCropArea()
public
applyRatioRestrictionToSelectedCropArea(FileInterface $file) : CropVariantCollection
Parameters
- $file : FileInterface
Return values
CropVariantCollectionasArray()
public
asArray() : array
Internal
Return values
arraycreate()
public
static create(string $jsonString[, array $tcaConfig = [] ]) : CropVariantCollection
Parameters
- $jsonString : string
- $tcaConfig : array = []
Return values
CropVariantCollectiongetCropArea()
public
getCropArea([string $id = 'default' ]) : Area
Parameters
- $id : string = 'default'
Return values
AreagetFocusArea()
public
getFocusArea([string $id = 'default' ]) : Area
Parameters
- $id : string = 'default'
Return values
AreaaddCropVariant()
protected
addCropVariant(CropVariant $cropVariant) : mixed
Parameters
- $cropVariant : CropVariant
Tags
createEmpty()
protected
static createEmpty() : CropVariantCollection
Return values
CropVariantCollectionsetCropVariants()
protected
setCropVariants(CropVariant ...$cropVariants) : mixed
Parameters
- $cropVariants : CropVariant