‪TYPO3CMS  10.4
TYPO3\CMS\Backend\Form\Element\ImageManipulationElement Class Reference
Inheritance diagram for TYPO3\CMS\Backend\Form\Element\ImageManipulationElement:
TYPO3\CMS\Backend\Form\Element\AbstractFormElement TYPO3\CMS\Backend\Form\AbstractNode TYPO3\CMS\Backend\Form\NodeInterface

Public Member Functions

 __construct (NodeFactory $nodeFactory, array $data)
 
array render ()
 

Protected Member Functions

File null getFile (array $row, $fieldName)
 
string getPreviewUrl (array $databaseRow, File $file)
 
array populateConfiguration (array $baseConfiguration)
 
array processConfiguration (array $config, string &$elementValue, File $file)
 
string getWizardUri ()
 
array getWizardPayload (array $cropVariants, File $image)
 
- ‪Protected Member Functions inherited from ‪TYPO3\CMS\Backend\Form\Element\AbstractFormElement
array renderFieldInformation ()
 
array renderFieldControl ()
 
array renderFieldWizard ()
 
bool hasNullCheckboxButNoPlaceholder ()
 
bool hasNullCheckboxWithPlaceholder ()
 
string formatValue ($format, $itemValue, $formatOptions=[])
 
int formMaxWidth ($size=48)
 
string checkBoxParams ($itemName, $formElementValue, $checkbox, $checkboxesCount, $additionalJavaScript='')
 
array calculateColumnMarkup (int $cols)
 
string appendValueToLabelInDebugMode ($label, $value)
 
LanguageService getLanguageService ()
 
BackendUserAuthentication getBackendUser ()
 
- ‪Protected Member Functions inherited from ‪TYPO3\CMS\Backend\Form\AbstractNode
array initializeResultArray ()
 
array mergeChildReturnIntoExistingResult (array $existing, array $childReturn, bool $mergeHtml=true)
 
string getValidationDataAsJsonString (array $config)
 

Protected Attributes

array $defaultFieldInformation
 
array $defaultFieldWizard
 
StandaloneView $templateView
 
UriBuilder $uriBuilder
 
- ‪Protected Attributes inherited from ‪TYPO3\CMS\Backend\Form\Element\AbstractFormElement
int $defaultInputWidth = 30
 
int $minimumInputWidth = 10
 
int $maxInputWidth = 50
 
IconFactory $iconFactory
 
- ‪Protected Attributes inherited from ‪TYPO3\CMS\Backend\Form\AbstractNode
NodeFactory $nodeFactory
 
array $data = array( )
 
array $defaultFieldInformation = array( )
 
array $defaultFieldControl = array( )
 
array $defaultFieldWizard = array( )
 

Static Protected Attributes

static array $defaultConfig
 

Private Attributes

string $wizardRouteName = 'ajax_wizard_image_manipulation'
 

Detailed Description

Generation of image manipulation FormEngine element. This is typically used in FAL relations to cut images.

Definition at line 37 of file ImageManipulationElement.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Backend\Form\Element\ImageManipulationElement::__construct ( NodeFactory  $nodeFactory,
array  $data 
)

Member Function Documentation

◆ getFile()

File null TYPO3\CMS\Backend\Form\Element\ImageManipulationElement::getFile ( array  $row,
  $fieldName 
)
protected

Get file object

Parameters
array$row
string$fieldName
Returns
‪File|null

Definition at line 214 of file ImageManipulationElement.php.

References TYPO3\CMS\Core\Utility\MathUtility\canBeInterpretedAsInteger().

Referenced by TYPO3\CMS\Backend\Form\Element\ImageManipulationElement\render().

◆ getPreviewUrl()

string TYPO3\CMS\Backend\Form\Element\ImageManipulationElement::getPreviewUrl ( array  $databaseRow,
File  $file 
)
protected
Parameters
array$databaseRow
File$file
Returns
‪string

Definition at line 235 of file ImageManipulationElement.php.

References $GLOBALS.

Referenced by TYPO3\CMS\Backend\Form\Element\ImageManipulationElement\render().

◆ getWizardPayload()

array TYPO3\CMS\Backend\Form\Element\ImageManipulationElement::getWizardPayload ( array  $cropVariants,
File  $image 
)
protected
Parameters
array$cropVariants
File$image
Returns
‪array

Definition at line 336 of file ImageManipulationElement.php.

References TYPO3\CMS\Core\Resource\AbstractFile\getUid().

Referenced by TYPO3\CMS\Backend\Form\Element\ImageManipulationElement\render().

◆ getWizardUri()

string TYPO3\CMS\Backend\Form\Element\ImageManipulationElement::getWizardUri ( )
protected
Returns
‪string

Definition at line 326 of file ImageManipulationElement.php.

Referenced by TYPO3\CMS\Backend\Form\Element\ImageManipulationElement\render().

◆ populateConfiguration()

array TYPO3\CMS\Backend\Form\Element\ImageManipulationElement::populateConfiguration ( array  $baseConfiguration)
protected

◆ processConfiguration()

array TYPO3\CMS\Backend\Form\Element\ImageManipulationElement::processConfiguration ( array  $config,
string &  $elementValue,
File  $file 
)
protected

◆ render()

Member Data Documentation

◆ $defaultConfig

array TYPO3\CMS\Backend\Form\Element\ImageManipulationElement::$defaultConfig
staticprotected

Default element configuration

Definition at line 47 of file ImageManipulationElement.php.

Referenced by TYPO3\CMS\Backend\Form\Element\ImageManipulationElement\populateConfiguration().

◆ $defaultFieldInformation

array TYPO3\CMS\Backend\Form\Element\ImageManipulationElement::$defaultFieldInformation
protected
Initial value:
= array(
'tcaDescription' => [
'renderType' => 'tcaDescription',
],
)

Default field information enabled for this element.

Definition at line 90 of file ImageManipulationElement.php.

◆ $defaultFieldWizard

array TYPO3\CMS\Backend\Form\Element\ImageManipulationElement::$defaultFieldWizard
protected
Initial value:
= array(
'localizationStateSelector' => [
'renderType' => 'localizationStateSelector',
],
'otherLanguageThumbnails' => [
'renderType' => 'otherLanguageThumbnails',
'after' => [
'localizationStateSelector'
],
],
'defaultLanguageDifferences' => [
'renderType' => 'defaultLanguageDifferences',
'after' => [
'otherLanguageThumbnails',
],
],
)

Default field wizards enabled for this element.

Definition at line 100 of file ImageManipulationElement.php.

◆ $templateView

StandaloneView TYPO3\CMS\Backend\Form\Element\ImageManipulationElement::$templateView
protected

Definition at line 120 of file ImageManipulationElement.php.

◆ $uriBuilder

UriBuilder TYPO3\CMS\Backend\Form\Element\ImageManipulationElement::$uriBuilder
protected

Definition at line 124 of file ImageManipulationElement.php.

◆ $wizardRouteName

string TYPO3\CMS\Backend\Form\Element\ImageManipulationElement::$wizardRouteName = 'ajax_wizard_image_manipulation'
private

Definition at line 41 of file ImageManipulationElement.php.