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

Public Member Functions

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

Static Public Member Functions

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

Protected Member Functions

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

Static Protected Member Functions

static 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 100 of file CropVariantCollection.php.

◆ addCropVariant()

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

◆ applyRatioRestrictionToSelectedCropArea()

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

◆ asArray()

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

Definition at line 82 of file CropVariantCollection.php.

◆ create()

static TYPO3\CMS\Core\Imaging\ImageManipulation\CropVariantCollection::create ( string  $jsonString,
array  $tcaConfig = [] 
)
static

◆ createEmpty()

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

◆ getCropArea()

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

◆ getFocusArea()

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

◆ setCropVariants()

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

Member Data Documentation

◆ $cropVariants

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