‪TYPO3CMS  10.4
TYPO3\CMS\Core\Imaging\ImageManipulation\CropVariantCollection Class Reference

Public Member Functions

 __construct (array $cropVariants)
 
array asArray ()
 
CropVariantCollection applyRatioRestrictionToSelectedCropArea (FileInterface $file)
 
 __toString ()
 
Area getCropArea (string $id='default')
 
Area getFocusArea (string $id='default')
 

Static Public Member Functions

static CropVariantCollection create (string $jsonString, array $tcaConfig=[])
 

Protected Member Functions

 setCropVariants (CropVariant ... $cropVariants)
 
 addCropVariant (CropVariant $cropVariant)
 

Static Protected Member Functions

static CropVariantCollection createEmpty ()
 

Protected Attributes

CropVariant[] $cropVariants
 

Detailed Description

Definition at line 22 of file CropVariantCollection.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Core\Imaging\ImageManipulation\CropVariantCollection::__construct ( array  $cropVariants)
Parameters
CropVariant[]$cropVariants
Exceptions

Definition at line 32 of file CropVariantCollection.php.

References TYPO3\CMS\Core\Imaging\ImageManipulation\CropVariantCollection\setCropVariants().

Member Function Documentation

◆ __toString()

TYPO3\CMS\Core\Imaging\ImageManipulation\CropVariantCollection::__toString ( )

Definition at line 110 of file CropVariantCollection.php.

◆ addCropVariant()

TYPO3\CMS\Core\Imaging\ImageManipulation\CropVariantCollection::addCropVariant ( CropVariant  $cropVariant)
protected

◆ applyRatioRestrictionToSelectedCropArea()

CropVariantCollection TYPO3\CMS\Core\Imaging\ImageManipulation\CropVariantCollection::applyRatioRestrictionToSelectedCropArea ( FileInterface  $file)

◆ asArray()

array TYPO3\CMS\Core\Imaging\ImageManipulation\CropVariantCollection::asArray ( )
Returns
‪array

Definition at line 88 of file CropVariantCollection.php.

◆ create()

◆ createEmpty()

static CropVariantCollection TYPO3\CMS\Core\Imaging\ImageManipulation\CropVariantCollection::createEmpty ( )
staticprotected

◆ getCropArea()

Area TYPO3\CMS\Core\Imaging\ImageManipulation\CropVariantCollection::getCropArea ( string  $id = 'default')

◆ getFocusArea()

Area TYPO3\CMS\Core\Imaging\ImageManipulation\CropVariantCollection::getFocusArea ( string  $id = 'default')
Parameters
string$id
Returns
Area

Definition at line 141 of file CropVariantCollection.php.

References TYPO3\CMS\Core\Imaging\ImageManipulation\Area\createEmpty().

◆ setCropVariants()

TYPO3\CMS\Core\Imaging\ImageManipulation\CropVariantCollection::setCropVariants ( CropVariant ...  $cropVariants)
protected

Member Data Documentation

◆ $cropVariants

CropVariant [] TYPO3\CMS\Core\Imaging\ImageManipulation\CropVariantCollection::$cropVariants
protected